Ticket #42745: Portfile-frescobaldi.diff

File Portfile-frescobaldi.diff, 3.8 KB (added by dliessi (Davide Liessi), 11 years ago)

fix checksums (2.0.14 was re-released due to a late bug fix)

  • Portfile

    old new  
    55PortGroup           python 1.0
    66PortGroup           github 1.0
    77
    8 github.setup        wbsoft frescobaldi 2.0.13 v
     8github.setup        wbsoft frescobaldi 2.0.14 v
    99conflicts           frescobaldi-devel
    1010categories          editors python
    1111maintainers         gmail.com:davide.liessi openmaintainer
    1212description         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.
     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.
    1517homepage            http://www.frescobaldi.org/
    1618platforms           darwin
    1719supported_archs     noarch
    1820license             GPL-2+
    1921
    20 checksums           rmd160  bf385c596e26e0c15b994b7b6bd4122711c5b9c4 \
    21                     sha256  5b272a65a329fe32d986edb28afb6a7361773ff895b13f26e3207ab268e9b955
     22checksums           rmd160  2d1a18d3137e1e8cead8736dfc02984b3bfef6e3 \
     23                    sha256  97e2582e14d565222bfe11cb677f81a67176ac96309c750d0c8f42f6ce1102f9
    2224
    2325subport frescobaldi-devel {
    24     github.setup        wbsoft frescobaldi 0cfa5eac4cdbe6136035cb3d2f9d5edf8f03d467
    25 
    2626    # github.setup also sets 'name frescobaldi', overriding the subport name.
    2727    # With 'name ${subport}', `port lint frescobaldi-devel` gives the following error:
    2828    # 'Error: Portfile directory frescobaldi does not match port name frescobaldi-devel'.
     
    3232    set PortInfo(name) ${subport}
    3333
    3434    conflicts           frescobaldi
    35     version             20140211
     35    version             20140306
    3636    set dev_version     2.0.14
    37 
    38     checksums           rmd160  640169b560cea175aa4d8d260dcb324948d65fb3 \
    39                         sha256  79cfea2e2c43dd6a3e752eeeab1142d8ff186798662057d27c2f46c94a255682
    4037}
    4138
    42 build {}
    43 
    4439depends_run-append  port:portmidi
    4540
    4641variant python26 conflicts python27 description {Use Python 2.6} {
     
    6459}
    6560default_variants    +app
    6661
     62build {
     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
    6776post-destroot {
    6877    set share_destroot ${destroot}${prefix}/share
    6978    set share_python ${python.prefix}/share
     
    9099        ${doc_dir}
    91100
    92101    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}
    115103    }
    116104}
    117105