[102147] trunk/dports/python/py-config/Portfile

jmr at macports.org jmr at macports.org
Mon Jan 28 08:28:49 PST 2013


Revision: 102147
          https://trac.macports.org/changeset/102147
Author:   jmr at macports.org
Date:     2013-01-28 08:28:49 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
py-config: use unified portgroup, license, noarch

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

Modified: trunk/dports/python/py-config/Portfile
===================================================================
--- trunk/dports/python/py-config/Portfile	2013-01-28 16:10:15 UTC (rev 102146)
+++ trunk/dports/python/py-config/Portfile	2013-01-28 16:28:49 UTC (rev 102147)
@@ -1,13 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-config
 version			1.2
 revision		1
-categories		python
+license			MIT
 platforms		darwin
+supported_archs	noarch
 maintainers		nomaintainer
 description		alternative ConfigParser module for python
 long_description	powerful alternative to the ConfigParser module \
@@ -15,18 +16,22 @@
 
 homepage		http://config-py.sourceforge.net/
 master_sites	sourceforge:config-py
-distname		config-py-1-2
+distname		config-py-[string map {. -} ${version}]
 checksums		md5 0deb5f48cb3c3f1067f347b8093a1f78
-use_zip			yes
 
-worksrcdir
+python.versions	24
 
-post-extract	{
-	file copy ${filespath}/setup.py ${worksrcpath}
-	reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
-}
+if {$subport != $name} {
+    use_zip			yes
+    extract.mkdir	yes
 
-post-destroot	{
-	xinstall -m 644 -W ${worksrcpath} readme.txt \
-		${destroot}${prefix}/share/doc/${name}
+    post-extract	{
+        file copy ${filespath}/setup.py ${worksrcpath}
+        reinplace "s|VERSION|${version}|" ${worksrcpath}/setup.py
+    }
+
+    post-destroot	{
+        xinstall -m 644 -W ${worksrcpath} readme.txt \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://localhost.localdomain/pipermail/macports-changes/attachments/20130128/16a814cc/attachment-0001.html>


More information about the macports-changes mailing list