[103573] trunk/dports/textproc/lilypond/Portfile
snc at macports.org
snc at macports.org
Fri Mar 1 12:07:24 PST 2013
Revision: 103573
https://trac.macports.org/changeset/103573
Author: snc at macports.org
Date: 2013-03-01 12:07:24 -0800 (Fri, 01 Mar 2013)
Log Message:
-----------
lilypond: ensure Python 2.7 is used, achieved by rigidly using MacPorts' Python 2.7
Modified Paths:
--------------
trunk/dports/textproc/lilypond/Portfile
Modified: trunk/dports/textproc/lilypond/Portfile
===================================================================
--- trunk/dports/textproc/lilypond/Portfile 2013-03-01 20:04:25 UTC (rev 103572)
+++ trunk/dports/textproc/lilypond/Portfile 2013-03-01 20:07:24 UTC (rev 103573)
@@ -5,6 +5,7 @@
name lilypond
version 2.16.2
+revision 1
set branch [join [lrange [split ${version} .] 0 1] .]
categories textproc
maintainers snc openmaintainer
@@ -39,7 +40,7 @@
port:texlive-metapost \
port:dblatex \
port:urw-fonts
-depends_run-append bin:python2.7:python27
+depends_run-append port:python27
compiler.blacklist clang
pre-fetch {
@@ -50,6 +51,8 @@
}
}
+configure.python ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
+
patchfiles patch-scripts-build-mf2pt1.pl.diff
post-patch {
reinplace s|__vector|lily_vector|g ${worksrcpath}/flower/include/std-vector.hh
@@ -78,15 +81,17 @@
scripts/build/pytt.py}
foreach file ${files} {
- reinplace {s|env python|env python2.7|} ${worksrcpath}/$file
- reinplace s|/usr/bin/python|/usr/bin/env\ python2.7| ${worksrcpath}/$file
+ reinplace s|/usr/bin/env\\\ python|${configure.python}| ${worksrcpath}/$file
+ reinplace s|/usr/bin/python|${configure.python}| ${worksrcpath}/$file
}
}
configure.args --with-ncsb-dir=${prefix}/share/fonts/urw-fonts \
--disable-documentation
-configure.env LTDL_LIBRARY_PATH=${prefix}/lib
+configure.env LTDL_LIBRARY_PATH=${prefix}/lib \
+ PYTHON_CONFIG=${configure.python}-config
+configure.python ${configure.python}
build.env LTDL_LIBRARY_PATH=${prefix}/lib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130301/81d2b6de/attachment.html>
More information about the macports-changes
mailing list