Skip to content
Permalink
Browse files

frescobaldi: update to 2.0.14 (https://trac.macports.org/ticket/42745)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@117651 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
ryandesign committed Mar 7, 2014
1 parent a7ae547 commit 58878de348d6c255bac966fbb951d011d6a007a4
Showing with 22 additions and 123 deletions.
  1. +22 −35 editors/frescobaldi/Portfile
  2. +0 −6 editors/frescobaldi/files/InfoPlist.strings
  3. +0 −82 editors/frescobaldi/files/mac-app.py
@@ -5,24 +5,24 @@ PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0

github.setup wbsoft frescobaldi 2.0.13 v
github.setup wbsoft frescobaldi 2.0.14 v
conflicts frescobaldi-devel
categories editors python
maintainers gmail.com:davide.liessi openmaintainer
description A LilyPond sheet music text editor
long_description Frescobaldi is a LilyPond sheet music text editor. \
It aims to be powerful, yet lightweight and easy to use.
long_description Frescobaldi is an advanced text editor \
to edit LilyPond sheet music files. \
Features include an integrated PDF preview \
and a powerful Score Wizard.
homepage http://www.frescobaldi.org/
platforms darwin
supported_archs noarch
license GPL-2+

checksums rmd160 bf385c596e26e0c15b994b7b6bd4122711c5b9c4 \
sha256 5b272a65a329fe32d986edb28afb6a7361773ff895b13f26e3207ab268e9b955
checksums rmd160 2d1a18d3137e1e8cead8736dfc02984b3bfef6e3 \
sha256 97e2582e14d565222bfe11cb677f81a67176ac96309c750d0c8f42f6ce1102f9

subport frescobaldi-devel {
github.setup wbsoft frescobaldi 0cfa5eac4cdbe6136035cb3d2f9d5edf8f03d467

# github.setup also sets 'name frescobaldi', overriding the subport name.
# With 'name ${subport}', `port lint frescobaldi-devel` gives the following error:
# 'Error: Portfile directory frescobaldi does not match port name frescobaldi-devel'.
@@ -32,15 +32,10 @@ subport frescobaldi-devel {
set PortInfo(name) ${subport}

conflicts frescobaldi
version 20140211
version 20140306
set dev_version 2.0.14

checksums rmd160 640169b560cea175aa4d8d260dcb324948d65fb3 \
sha256 79cfea2e2c43dd6a3e752eeeab1142d8ff186798662057d27c2f46c94a255682
}

build {}

depends_run-append port:portmidi

variant python26 conflicts python27 description {Use Python 2.6} {
@@ -64,6 +59,19 @@ variant app description {Make application bundle} {
}
default_variants +app

build {
if {[variant_isset app]} {
if {${name} eq ${subport}} {
set bundle_version ${version}
} else {
set bundle_version ${dev_version}-dev-${version}
}

system -W ${worksrcpath} "${prefix}/bin/python${python.branch} \
macosx/mac-app.py -f -v ${bundle_version} -s ${prefix}/bin/frescobaldi"
}
}

post-destroot {
set share_destroot ${destroot}${prefix}/share
set share_python ${python.prefix}/share
@@ -90,28 +98,7 @@ post-destroot {
${doc_dir}

if {[variant_isset app]} {
if {${name} eq ${subport}} {
set bundle_version ${version}
} else {
set bundle_version ${dev_version}-dev-${version}
}

xinstall -m 644 -W ${filespath} mac-app.py ${workpath}
reinplace "s|%%VERSION%%|${bundle_version}|g" ${workpath}/mac-app.py
reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/mac-app.py

system "cd ${workpath} && ${prefix}/bin/python${python.branch} mac-app.py py2app"

set app_resources ${workpath}/dist/Frescobaldi.app/Contents/Resources
xinstall -m 644 -W ${worksrcpath}/macosx/icons frescobaldi.icns ${app_resources}

foreach l {cs de en es fr gl it nl pl pt ru tr uk} {
set app_lproj ${app_resources}/${l}.lproj
xinstall -d ${app_lproj}
xinstall -m 644 -W ${filespath} InfoPlist.strings ${app_lproj}
}

file copy ${workpath}/dist/Frescobaldi.app ${destroot}${applications_dir}
file copy ${worksrcpath}/dist/Frescobaldi.app ${destroot}${applications_dir}
}
}

This file was deleted.

This file was deleted.

0 comments on commit 58878de

Please sign in to comment.
You can’t perform that action at this time.