Ticket #42745: Portfile-frescobaldi.diff
File Portfile-frescobaldi.diff, 3.8 KB (added by dliessi (Davide Liessi), 11 years ago) |
---|
-
Portfile
old new 5 5 PortGroup python 1.0 6 6 PortGroup github 1.0 7 7 8 github.setup wbsoft frescobaldi 2.0.1 3v8 github.setup wbsoft frescobaldi 2.0.14 v 9 9 conflicts frescobaldi-devel 10 10 categories editors python 11 11 maintainers gmail.com:davide.liessi openmaintainer 12 12 description A LilyPond sheet music text editor 13 long_description Frescobaldi is a LilyPond sheet music text editor. \ 14 It aims to be powerful, yet lightweight and easy to use. 13 long_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. 15 17 homepage http://www.frescobaldi.org/ 16 18 platforms darwin 17 19 supported_archs noarch 18 20 license GPL-2+ 19 21 20 checksums rmd160 bf385c596e26e0c15b994b7b6bd4122711c5b9c4\21 sha256 5b272a65a329fe32d986edb28afb6a7361773ff895b13f26e3207ab268e9b95522 checksums rmd160 2d1a18d3137e1e8cead8736dfc02984b3bfef6e3 \ 23 sha256 97e2582e14d565222bfe11cb677f81a67176ac96309c750d0c8f42f6ce1102f9 22 24 23 25 subport frescobaldi-devel { 24 github.setup wbsoft frescobaldi 0cfa5eac4cdbe6136035cb3d2f9d5edf8f03d46725 26 26 # github.setup also sets 'name frescobaldi', overriding the subport name. 27 27 # With 'name ${subport}', `port lint frescobaldi-devel` gives the following error: 28 28 # 'Error: Portfile directory frescobaldi does not match port name frescobaldi-devel'. … … 32 32 set PortInfo(name) ${subport} 33 33 34 34 conflicts frescobaldi 35 version 20140 21135 version 20140306 36 36 set dev_version 2.0.14 37 38 checksums rmd160 640169b560cea175aa4d8d260dcb324948d65fb3 \39 sha256 79cfea2e2c43dd6a3e752eeeab1142d8ff186798662057d27c2f46c94a25568240 37 } 41 38 42 build {}43 44 39 depends_run-append port:portmidi 45 40 46 41 variant python26 conflicts python27 description {Use Python 2.6} { … … 64 59 } 65 60 default_variants +app 66 61 62 build { 63 if {[variant_isset app]} { 64 if {${name} eq ${subport}} { 65 set bundle_version ${version} 66 } else { 67 set bundle_version ${dev_version}-dev-${version} 68 } 69 70 system "cd ${worksrcpath} && \ 71 ${prefix}/bin/python${python.branch} \ 72 macosx/mac-app.py -f -v ${bundle_version} -s ${prefix}/bin/frescobaldi" 73 } 74 } 75 67 76 post-destroot { 68 77 set share_destroot ${destroot}${prefix}/share 69 78 set share_python ${python.prefix}/share … … 90 99 ${doc_dir} 91 100 92 101 if {[variant_isset app]} { 93 if {${name} eq ${subport}} { 94 set bundle_version ${version} 95 } else { 96 set bundle_version ${dev_version}-dev-${version} 97 } 98 99 xinstall -m 644 -W ${filespath} mac-app.py ${workpath} 100 reinplace "s|%%VERSION%%|${bundle_version}|g" ${workpath}/mac-app.py 101 reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/mac-app.py 102 103 system "cd ${workpath} && ${prefix}/bin/python${python.branch} mac-app.py py2app" 104 105 set app_resources ${workpath}/dist/Frescobaldi.app/Contents/Resources 106 xinstall -m 644 -W ${worksrcpath}/macosx/icons frescobaldi.icns ${app_resources} 107 108 foreach l {cs de en es fr gl it nl pl pt ru tr uk} { 109 set app_lproj ${app_resources}/${l}.lproj 110 xinstall -d ${app_lproj} 111 xinstall -m 644 -W ${filespath} InfoPlist.strings ${app_lproj} 112 } 113 114 file copy ${workpath}/dist/Frescobaldi.app ${destroot}${applications_dir} 102 file copy ${worksrcpath}/dist/Frescobaldi.app ${destroot}${applications_dir} 115 103 } 116 104 } 117 105