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

Last change on this file since 142815 was 142815, checked in by jmr@…, 3 years ago

various ports: remove redundant clearing of python.link_binaries_suffix, the portgroup now handles this

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 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 142815 2015-11-24 03:22:35Z jmr@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.version}-setuptools
35depends_lib-append      port:py${python.version}-ly
36
37# Can use either py*-pyqt4 or py*-pyqt4-devel.
38depends_run-append  path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4 \
39                    port:py${python.version}-poppler-qt4
40
41variant app description {Make application bundle} {
42    depends_build-append    port:py${python.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
93notes \
94"You may want to install FluidSynth and obtain a SoundFont\
95in order to have audio output from Frescobaldi's MIDI output.
96
97You will need to select FluidSynth's MIDI input port\
98in Frescobaldi's MIDI settings (in Preferences)\
99while FluidSynth is running."
Note: See TracBrowser for help on using the repository browser.