[107632] trunk/dports/python

jmr at macports.org jmr at macports.org
Wed Jul 3 04:33:54 PDT 2013


Revision: 107632
          https://trac.macports.org/changeset/107632
Author:   jmr at macports.org
Date:     2013-07-03 04:33:53 -0700 (Wed, 03 Jul 2013)
Log Message:
-----------
py25-mpdclient2: use unified portgroup

Modified Paths:
--------------
    trunk/dports/python/py-mpdclient2/Portfile

Added Paths:
-----------
    trunk/dports/python/py-mpdclient2/

Removed Paths:
-------------
    trunk/dports/python/py25-mpdclient2/

Modified: trunk/dports/python/py-mpdclient2/Portfile
===================================================================
--- trunk/dports/python/py25-mpdclient2/Portfile	2013-07-03 07:44:38 UTC (rev 107625)
+++ trunk/dports/python/py-mpdclient2/Portfile	2013-07-03 11:33:53 UTC (rev 107632)
@@ -1,12 +1,12 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python25 1.0
+PortGroup python 1.0
 
-name            py25-mpdclient2
+name            py-mpdclient2
 version         0.48
 description     Python MPD client library
-categories      audio
+categories-append      audio
 maintainers     sfiera
 long_description \
     Python library interfacing with MPD. Taken from Pygmy.
@@ -14,21 +14,24 @@
 distname        pygmy-${version}
 homepage        http://pygmy.berlios.de/
 platforms       darwin
-master_sites    ${homepage}files
+master_sites    ${homepage}files http://distfiles.macports.org/python/
 use_bzip2       yes
 checksums       md5 5cac04dbffff24a4b8f9ae0a77689a14 \
                 sha1 a7c39edd8018a3238611813de0f43ba4c6ad61d3 \
                 rmd160 064690b1d3ed52349d352d598e6fbdf89a4ced69
 
-build {
-    # force bytecode compilation of mpdclient2.py => mpdclient2.pyc
-    system "cd ${worksrcpath} && python -c 'import mpdclient2'"
+python.versions 25
+
+if {$subport ne $name} {
+    build {
+        # force bytecode compilation of mpdclient2.py => mpdclient2.pyc
+        system -W ${worksrcpath} "${python.bin} -c 'import mpdclient2'"
+    }
+    destroot {
+        xinstall -m 755 -d ${destroot}${python.pkgd}
+        xinstall -m 644 ${worksrcpath}/mpdclient2.py \
+            ${destroot}${python.pkgd}
+        xinstall -m 644 ${worksrcpath}/mpdclient2.pyc \
+            ${destroot}${python.pkgd}
+    }
 }
-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/lib/python2.5
-    xinstall -m 755 -d ${destroot}${prefix}/lib/python2.5/site-packages
-    xinstall -m 644 ${worksrcpath}/mpdclient2.py \
-        ${destroot}${prefix}/lib/python2.5/site-packages
-    xinstall -m 644 ${worksrcpath}/mpdclient2.pyc \
-        ${destroot}${prefix}/lib/python2.5/site-packages
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130703/b4fc4e62/attachment-0001.html>


More information about the macports-changes mailing list