[102031] trunk/dports/python/py-ebay/Portfile

jmr at macports.org jmr at macports.org
Thu Jan 24 21:19:32 PST 2013


Revision: 102031
          https://trac.macports.org/changeset/102031
Author:   jmr at macports.org
Date:     2013-01-24 21:19:32 -0800 (Thu, 24 Jan 2013)
Log Message:
-----------
py-ebay: use unified portgroup, license, noarch

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

Modified: trunk/dports/python/py-ebay/Portfile
===================================================================
--- trunk/dports/python/py-ebay/Portfile	2013-01-25 04:24:16 UTC (rev 102030)
+++ trunk/dports/python/py-ebay/Portfile	2013-01-25 05:19:32 UTC (rev 102031)
@@ -1,13 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-ebay
 version			0.1.4
 revision		1
-categories		python
+license			MIT
 platforms		darwin
+supported_archs	noarch
 maintainers		nomaintainer
 description		Python library encapsulating the eBay API
 long_description	pyeBay is a Python library that encapsulates the eBay API. \
@@ -18,19 +19,23 @@
 master_sites	http://ebaydeveloper.typepad.com/
 distname		pyeBay-${version}
 checksums		md5 9092948a4bfdad76652bdc9d4ee0a314
-use_zip			yes
 
-worksrcdir
+python.versions	24
 
-post-extract	{
-	file rename ${workpath}/${distname} ${workpath}/eBay
-	file copy ${filespath}/setup.py ${workpath}
-	file copy ${filespath}/__init__.py ${workpath}/eBay
-	reinplace "s|__VERSION__|${version}|g" ${workpath}/eBay/__init__.py ${workpath}/setup.py
-	reinplace "s|__DOC__|${description}|g" ${workpath}/eBay/__init__.py
-}
+if {$subport != $name} {
+    use_zip			yes
 
-post-destroot	{
-	xinstall -m 644 -W ${workpath}/eBay LICENSE.TXT README.TXT ebay.ini \
-		${destroot}${prefix}/share/doc/${name}
+    post-extract	{
+        file mkdir ${worksrcpath}/eBay
+        eval file rename [glob -directory ${worksrcpath} *.py] ${worksrcpath}/eBay/
+        file copy ${filespath}/setup.py ${worksrcpath}
+        file copy ${filespath}/__init__.py ${worksrcpath}/eBay/
+        reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/eBay/__init__.py ${worksrcpath}/setup.py
+        reinplace "s|__DOC__|${description}|g" ${worksrcpath}/eBay/__init__.py
+    }
+
+    post-destroot	{
+        xinstall -m 644 -W ${worksrcpath} LICENSE.TXT README.TXT ebay.ini \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130124/926932f0/attachment.html>


More information about the macports-changes mailing list