[100647] trunk/dports/python/py-vorbis/Portfile

jmr at macports.org jmr at macports.org
Tue Dec 18 10:32:35 PST 2012


Revision: 100647
          https://trac.macports.org/changeset/100647
Author:   jmr at macports.org
Date:     2012-12-18 10:32:35 -0800 (Tue, 18 Dec 2012)
Log Message:
-----------
py-vorbis: move to unified portgroup, set license

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

Modified: trunk/dports/python/py-vorbis/Portfile
===================================================================
--- trunk/dports/python/py-vorbis/Portfile	2012-12-18 18:13:47 UTC (rev 100646)
+++ trunk/dports/python/py-vorbis/Portfile	2012-12-18 18:32:35 UTC (rev 100647)
@@ -1,12 +1,13 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-vorbis
 version			1.4
 revision		1
 categories		python audio
+license			LGPL-2
 platforms		darwin
 maintainers		nomaintainer
 description		Python module for Ogg Vorbis audio encoding and decoding
@@ -16,24 +17,29 @@
 master_sites	${homepage}
 distname		pyvorbis-${version}
 checksums		md5 b4921e792c0a74f75b9d3057df10ee7c
-patchfiles		patch-pyvorbiscodec.c.diff \
-				patch-pyvorbisfile.c.diff \
-				patch-pyvorbisinfo.c.diff \
-				patch-vorbismodule.c.diff \
-				patch-vorbismodule.h.diff \
-				patch-config_unix.py
 
-depends_lib-append	lib:libvorbis:libvorbis \
-				port:py-ogg
+python.versions	24
 
-use_configure	yes
-pre-configure	{
-	reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/config_unix.py
+if {$subport != $name} {
+    patchfiles		patch-pyvorbiscodec.c.diff \
+                    patch-pyvorbisfile.c.diff \
+                    patch-pyvorbisinfo.c.diff \
+                    patch-vorbismodule.c.diff \
+                    patch-vorbismodule.h.diff \
+                    patch-config_unix.py
+    
+    depends_lib-append	lib:libvorbis:libvorbis \
+                    port:py${python.version}-ogg
+    
+    use_configure	yes
+    pre-configure	{
+        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/config_unix.py
+    }
+    configure.cmd	${python.bin} config_unix.py
+    configure.pre_args
+    
+    post-destroot	{
+        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
+            NEWS ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-configure.cmd	${python.bin} config_unix.py
-configure.pre_args
-
-post-destroot	{
-	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
-		NEWS ${destroot}${prefix}/share/doc/${name}
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121218/d84cb399/attachment-0001.html>


More information about the macports-changes mailing list