source: trunk/dports/editors/frescobaldi/Portfile @ 136860

Last change on this file since 136860 was 136860, checked in by larryv@…, 4 years ago

frescobaldi{,-devel}: Update to 2.18.1 (#47875)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 136860 2015-05-28 15:18:35Z larryv@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           github 1.0
7
8github.setup        wbsoft frescobaldi 2.18.1 v
9conflicts           frescobaldi-devel
10categories          editors python
11maintainers         gmail.com:davide.liessi openmaintainer
12description         A LilyPond sheet music text editor
13long_description    Frescobaldi is an advanced text editor \
14                    to edit LilyPond sheet music files. \
15                    Features include an integrated PDF preview \
16                    and a powerful Score Wizard.
17homepage            http://www.frescobaldi.org/
18platforms           darwin
19license             GPL-2+
20
21checksums           rmd160  0cb60b3a6c127d2ac4b2d2b93bd5e8b7760ba9bc \
22                    sha256  7a97c23a8e4c366d3c541efae20fc62cbc67d16102b07ecb33a3e00af6585993
23
24subport frescobaldi-devel {
25    conflicts           frescobaldi
26    version             20150524
27    set devel_version   2.18.1
28}
29
30depends_run-append  port:portmidi
31
32python.default_version  27
33
34depends_build-append    port:py${python.default_version}-setuptools
35depends_lib-append      port:py${python.default_version}-ly
36
37# Can use either py*-pyqt4 or py*-pyqt4-devel.
38depends_run-append  path:share/py${python.default_version}-sip/PyQt4:py${python.default_version}-pyqt4 \
39                    port:py${python.default_version}-poppler-qt4
40
41variant app description {Make application bundle} {
42    depends_build-append    port:py${python.default_version}-py2app
43}
44default_variants    +app
45
46if {![variant_isset app]} {
47    supported_archs     noarch
48}
49
50build {
51    if {[variant_isset app]} {
52        if {[info exists devel_version]} {
53            set bundle_version    ${devel_version}-${version}
54        } else {
55            set bundle_version    ${version}
56        }
57
58        system -W ${worksrcpath} "${prefix}/bin/python${python.branch} \
59            macosx/mac-app.py -f -v ${bundle_version} -s ${prefix}/bin/frescobaldi"
60    }
61}
62
63post-destroot {
64    set share_destroot ${destroot}${prefix}/share
65    set share_python ${python.prefix}/share
66
67    set man_dir /man/man1
68    xinstall -d ${share_destroot}${man_dir}
69    ln -s ${share_python}${man_dir}/frescobaldi.1 ${share_destroot}${man_dir}
70
71    set desktop_dir /applications
72    xinstall -d ${share_destroot}${desktop_dir}
73    ln -s ${share_python}${desktop_dir}/frescobaldi.desktop ${share_destroot}${desktop_dir}
74
75    set icons_dir /icons/hicolor/scalable/apps
76    xinstall -d ${share_destroot}${icons_dir}
77    ln -s ${share_python}${icons_dir}/frescobaldi.svg ${share_destroot}${icons_dir}
78
79    set doc_dir ${share_destroot}/doc/${subport}
80    xinstall -d ${doc_dir}
81    xinstall -m 644 -W ${worksrcpath} \
82        COPYING \
83        ChangeLog \
84        README.md \
85        THANKS \
86        ${doc_dir}
87
88    if {[variant_isset app]} {
89        file copy ${worksrcpath}/dist/Frescobaldi.app ${destroot}${applications_dir}
90    }
91}
92
93python.link_binaries_suffix
94
95notes \
96"You may want to install FluidSynth and obtain a SoundFont\
97in order to have audio output from Frescobaldi's MIDI output.
98
99You will need to select FluidSynth's MIDI input port\
100in Frescobaldi's MIDI settings (in Preferences)\
101while FluidSynth is running."
Note: See TracBrowser for help on using the repository browser.