source: trunk/dports/editors/frescobaldi/Portfile

Last change on this file was 150933, checked in by mojca@…, 12 months ago

frescobaldi: switch to Python 3.5 (maintainer, fixes #51931)

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