[100891] trunk/dports/python/py-swishe/Portfile

jmr at macports.org jmr at macports.org
Sun Dec 30 22:34:35 PST 2012


Revision: 100891
          https://trac.macports.org/changeset/100891
Author:   jmr at macports.org
Date:     2012-12-30 22:34:35 -0800 (Sun, 30 Dec 2012)
Log Message:
-----------
py-swishe: use unified portgroup, set license

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

Modified: trunk/dports/python/py-swishe/Portfile
===================================================================
--- trunk/dports/python/py-swishe/Portfile	2012-12-31 06:08:42 UTC (rev 100890)
+++ trunk/dports/python/py-swishe/Portfile	2012-12-31 06:34:35 UTC (rev 100891)
@@ -1,11 +1,12 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-swishe
 version			0.5
 categories		python www
+license			BSD
 platforms		darwin
 maintainers		nomaintainer
 description		python binding for swish-e
@@ -18,14 +19,17 @@
 distname		SwishE-${version}
 checksums		md5 915a03d1153b2ddd4e8340f9e180dcf8
 
-#depends_lib-append	port:swish-e
+python.versions	24
 
-build.env		CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
+if {$subport != $name} {
+    #depends_lib-append	port:swish-e
 
-post-destroot {
-	xinstall -m 644 -W ${worksrcpath} MANIFEST PKG-INFO README \
-		${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath}/examples a.py b.py c.py \
-		${destroot}${prefix}/share/doc/${name}/examples
+    build.env		CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
+
+    post-destroot {
+        xinstall -m 644 -W ${worksrcpath} MANIFEST PKG-INFO README \
+            ${destroot}${prefix}/share/doc/${name}
+        xinstall -m 644 -W ${worksrcpath}/examples a.py b.py c.py \
+            ${destroot}${prefix}/share/doc/${name}/examples
+    }
 }
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121230/cab87dad/attachment.html>


More information about the macports-changes mailing list