[75468] trunk/dports/textproc/lilypond/Portfile

snc at macports.org snc at macports.org
Tue Jan 25 17:42:48 PST 2011


Revision: 75468
          http://trac.macports.org/changeset/75468
Author:   snc at macports.org
Date:     2011-01-25 17:42:47 -0800 (Tue, 25 Jan 2011)
Log Message:
-----------
lilypond: ensure we use a specific python, #25040

Modified Paths:
--------------
    trunk/dports/textproc/lilypond/Portfile

Modified: trunk/dports/textproc/lilypond/Portfile
===================================================================
--- trunk/dports/textproc/lilypond/Portfile	2011-01-26 01:27:58 UTC (rev 75467)
+++ trunk/dports/textproc/lilypond/Portfile	2011-01-26 01:42:47 UTC (rev 75468)
@@ -5,7 +5,7 @@
 
 name                lilypond
 version             2.12.3
-revision            3
+revision            4
 set branch          [join [lrange [split ${version} .] 0 1] .]
 categories          textproc
 maintainers         snc openmaintainer
@@ -23,7 +23,9 @@
 checksums           sha1    f36072d5f57b2a3d3877e82879be375d548aa951 \
                     rmd160  275b34b2517780a8c94d9c0a38c3f42b22d49703
 
-depends_build       port:pkgconfig
+depends_build       port:t1utils \
+                    port:texi2html \
+                    port:pkgconfig
 depends_lib         port:fontforge \
                     port:ghostscript \
                     port:mftrace \
@@ -36,6 +38,24 @@
 
 post-patch {
     reinplace s|__vector|lily_vector|g ${worksrcpath}/flower/include/std-vector.hh
+    fs-traverse file ${worksrcpath} {
+        if {[file isfile $file]} {
+            if {[variant_isset python25]} {
+                reinplace {s|env python|env python2.5|} $file
+                reinplace {s|bin/python|bin/python2.5|} $file
+            }
+
+            if {[variant_isset python26]} {
+                reinplace {s|env python|env python2.6|} $file
+                reinplace {s|bin/python|bin/python2.6|} $file
+            }
+ 
+            if {[variant_isset python27]} {
+                reinplace {s|env python|env python2.7|} $file
+                reinplace {s|bin/python|bin/python2.7|} $file
+            }
+        }
+    }
 }
 
 configure.args  --with-ncsb-dir=${prefix}/share/fonts/urw-fonts \
@@ -53,6 +73,22 @@
     reinplace "s|@@PREFIX@@|${prefix}|g" ${destroot}${prefix}/bin/lilypond
 }
 
+variant python25 conflicts python26 python27 {
+    depends_run-append  port:py25-socket-ssl
+}
+
+variant python26 conflicts python25 python27 {
+    depends_run-append  port:python26
+}
+
+variant python27 conflicts python25 python26 {
+    depends_run-append  port:python27
+}
+
+if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} {
+    default_variants +python27
+}
+
 variant docs description {Build documentation files} {
     configure.args-delete   --disable-documentation
     configure.args-append   --enable-documentation
@@ -64,8 +100,6 @@
     configure.args-append   --enable-gui
 }
 
-default_variants    +docs
-
 livecheck.type  regex
 livecheck.url   [lindex ${master_sites} 0]
 livecheck.regex "${name}-(\\d\\.\\d+\\.\\d)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110125/853b285c/attachment.html>


More information about the macports-changes mailing list