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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | PortGroup github 1.0 |
---|
7 | |
---|
8 | github.setup wbsoft frescobaldi 2.0.11 v |
---|
9 | categories editors python |
---|
10 | maintainers gmail.com:davide.liessi openmaintainer |
---|
11 | description A LilyPond sheet music text editor |
---|
12 | long_description Frescobaldi is a LilyPond sheet music text editor. \ |
---|
13 | It aims to be powerful, yet lightweight and easy to use. |
---|
14 | homepage http://www.frescobaldi.org/ |
---|
15 | platforms darwin |
---|
16 | supported_archs noarch |
---|
17 | license GPL-2+ |
---|
18 | |
---|
19 | checksums rmd160 5033eef310d5b68de3951cf07517416436f47cb7 \ |
---|
20 | sha256 478177a1292e1232df7fb11cae3a28e67af2186191ad1f976e390029e331139c |
---|
21 | |
---|
22 | build {} |
---|
23 | |
---|
24 | depends_run-append port:portmidi |
---|
25 | |
---|
26 | variant python26 conflicts python27 description {Use Python 2.6} { |
---|
27 | python.default_version 26 |
---|
28 | depends_run-append port:py${python.default_version}-pyqt4 \ |
---|
29 | port:py${python.default_version}-python-poppler-qt4 |
---|
30 | } |
---|
31 | variant python27 conflicts python26 description {Use Python 2.7} { |
---|
32 | python.default_version 27 |
---|
33 | depends_run-append port:py${python.default_version}-pyqt4 \ |
---|
34 | port:py${python.default_version}-python-poppler-qt4 |
---|
35 | } |
---|
36 | if {![variant_isset python26]} { |
---|
37 | default_variants +python27 |
---|
38 | } |
---|
39 | |
---|
40 | variant app description {Make application bundle} { |
---|
41 | depends_build-append port:py${python.default_version}-cx_Freeze |
---|
42 | } |
---|
43 | default_variants +app |
---|
44 | |
---|
45 | post-destroot { |
---|
46 | set share_destroot ${destroot}${prefix}/share |
---|
47 | set share_python ${python.prefix}/share |
---|
48 | |
---|
49 | set man_dir /man/man1 |
---|
50 | xinstall -d ${share_destroot}${man_dir} |
---|
51 | ln -s ${share_python}${man_dir}/frescobaldi.1 ${share_destroot}${man_dir} |
---|
52 | |
---|
53 | set desktop_dir /applications |
---|
54 | xinstall -d ${share_destroot}${desktop_dir} |
---|
55 | ln -s ${share_python}${desktop_dir}/frescobaldi.desktop ${share_destroot}${desktop_dir} |
---|
56 | |
---|
57 | set icons_dir /icons/hicolor/scalable/apps |
---|
58 | xinstall -d ${share_destroot}${icons_dir} |
---|
59 | ln -s ${share_python}${icons_dir}/frescobaldi.svg ${share_destroot}${icons_dir} |
---|
60 | |
---|
61 | set doc_dir ${share_destroot}/doc/${subport} |
---|
62 | xinstall -d ${doc_dir} |
---|
63 | xinstall -m 644 -W ${worksrcpath} \ |
---|
64 | COPYING \ |
---|
65 | ChangeLog \ |
---|
66 | README \ |
---|
67 | THANKS \ |
---|
68 | ${doc_dir} |
---|
69 | |
---|
70 | if {[variant_isset app]} { |
---|
71 | set app_contents ${destroot}${applications_dir}/Frescobaldi.app/Contents |
---|
72 | set app_macos ${app_contents}/MacOS |
---|
73 | set app_resources ${app_contents}/Resources |
---|
74 | |
---|
75 | foreach l {cs de en es fr gl it nl pl pt ru tr uk} { |
---|
76 | set app_lproj ${app_resources}/${l}.lproj |
---|
77 | xinstall -d ${app_lproj} |
---|
78 | xinstall -m 644 -W ${filespath} InfoPlist.strings ${app_lproj} |
---|
79 | } |
---|
80 | |
---|
81 | xinstall -m 644 -W ${filespath} Info.plist ${app_contents} |
---|
82 | reinplace "s|%VERSION%|${version}|g" ${app_contents}/Info.plist |
---|
83 | |
---|
84 | xinstall -d ${app_macos} |
---|
85 | exec ${prefix}/bin/cxfreeze-${python.branch} \ |
---|
86 | ${destroot}${python.prefix}/bin/frescobaldi \ |
---|
87 | --target-dir ${app_macos} --no-copy-deps --target-name Frescobaldi |
---|
88 | |
---|
89 | xinstall -m 644 -W ${filespath} frescobaldi.icns ${app_resources} |
---|
90 | } |
---|
91 | } |
---|
92 | |
---|
93 | python.link_binaries_suffix |
---|
94 | |
---|
95 | notes \ |
---|
96 | "You may want to install FluidSynth and obtain a SoundFont |
---|
97 | in order to have audio output from Frescobaldi's MIDI output. |
---|
98 | |
---|
99 | You will need to select FluidSynth's MIDI input port |
---|
100 | in Frescobaldi's MIDI settings (in Preferences) |
---|
101 | while FluidSynth is running." |
---|