[116568] trunk/dports/audio/xmms2/Portfile

raimue at macports.org raimue at macports.org
Tue Jan 28 15:47:34 PST 2014


Revision: 116568
          https://trac.macports.org/changeset/116568
Author:   raimue at macports.org
Date:     2014-01-28 15:47:34 -0800 (Tue, 28 Jan 2014)
Log Message:
-----------
audio/xmms2:
Use waf port group.
Add +python27 variant and make it default.

Modified Paths:
--------------
    trunk/dports/audio/xmms2/Portfile

Modified: trunk/dports/audio/xmms2/Portfile
===================================================================
--- trunk/dports/audio/xmms2/Portfile	2014-01-28 23:44:52 UTC (rev 116567)
+++ trunk/dports/audio/xmms2/Portfile	2014-01-28 23:47:34 UTC (rev 116568)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem              1.0
+PortGroup               waf 1.0
 
 name                    xmms2
 version                 0.8DrO_o
@@ -21,8 +22,7 @@
 checksums               rmd160  35513d7eddd5f79146cb8aa5c6c0bb35369619ec \
                         sha256  c77e41e7bd5788889d5a2f78331ca8c748b8721bd2e59f36c36ad4c7cae8694a
 
-depends_build           port:python26 \
-                        port:pkgconfig
+depends_build-append    port:pkgconfig
 
 depends_lib             path:lib/pkgconfig/glib-2.0.pc:glib2 \
                         port:gettext \
@@ -54,26 +54,16 @@
 patchfiles              patch-ffmpeg-2.0.diff \
                         patch-nellymoser.diff
 
-configure.python        ${prefix}/bin/python2.6
-
 post-patch {
     foreach f [glob -directory ${worksrcpath} waf waf-light wafadmin/*.py wafadmin/*/*.py waftools/ruby.py] {
-        reinplace -locale C "s|^#! */usr/bin/env python\$|#!${configure.python}|" ${f}
+        reinplace -locale C "s|^#! */usr/bin/env python\$|#!${waf.python}|" ${f}
     }
 }
 
-configure.cmd           ./waf configure
 configure.args          --conf-prefix=${prefix} \
                         --nocache \
                         --without-optionals python
 
-configure.universal_args-delete --disable-dependency-tracking
-
-build.cmd               ./waf
-build.target            build
-
-destroot.destdir        --destdir=${destroot}
-
 variant cpp description {C++ development support} {
     depends_lib-append port:boost
 }
@@ -120,8 +110,15 @@
 variant python26 description {Support for Python 2.6} {
     depends_lib-append      port:py26-pyrex
     configure.args-delete   --without-optionals python
+    configure.python        ${prefix}/bin/python2.6
 }
 
-default_variants    +python26
+variant python27 description {Support for Python 2.7} {
+    depends_lib-append      port:py27-pyrex
+    configure.args-delete   --without-optionals python
+    configure.python        ${prefix}/bin/python2.7
+}
 
+default_variants    +python27
+
 livecheck.regex         /${name}-(.+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140128/7a2f1518/attachment.html>


More information about the macports-changes mailing list