[101891] trunk/dports/python/py-importchecker/Portfile

jmr at macports.org jmr at macports.org
Sun Jan 20 18:56:02 PST 2013


Revision: 101891
          https://trac.macports.org/changeset/101891
Author:   jmr at macports.org
Date:     2013-01-20 18:56:02 -0800 (Sun, 20 Jan 2013)
Log Message:
-----------
py-importchecker: use unified portgroup, license, noarch

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

Modified: trunk/dports/python/py-importchecker/Portfile
===================================================================
--- trunk/dports/python/py-importchecker/Portfile	2013-01-21 02:44:45 UTC (rev 101890)
+++ trunk/dports/python/py-importchecker/Portfile	2013-01-21 02:56:02 UTC (rev 101891)
@@ -1,13 +1,15 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-importchecker
 version			1.0
 revision		1
 categories		python devel
+license			BSD
 platforms		darwin
+supported_archs	noarch
 maintainers		nomaintainer
 description		python module/script to find unused imports in python code
 long_description	importchecker is a script/module that can determine \
@@ -19,16 +21,23 @@
 
 homepage		http://www.zope.org/Members/faassen/importchecker
 master_sites	${homepage}/importchecker-${version}/
-distfiles		importchecker-${version}.tgz
 checksums		md5 e78e4cd3288206e858154ddbfa3a9b3b
 
-worksrcdir		importchecker
+python.versions	24
 
-post-destroot	{
-	xinstall -m 755 ${filespath}/importchecker ${destroot}${prefix}/bin
-	reinplace "s|__PYTHON__|${python.bin}|g" \
-		${destroot}${prefix}/bin/importchecker
-	xinstall -m 644 -W ${worksrcpath} CREDITS.txt HISTORY.txt INSTALL.txt \
-		LICENSE.txt README.txt version.txt \
-		${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+    distfiles		importchecker-${version}.tgz
+    worksrcdir		importchecker
+
+    pre-destroot {
+        xinstall -d ${destroot}${python.prefix}/bin
+        xinstall -m 755 ${filespath}/importchecker ${destroot}${python.prefix}/bin
+        reinplace "s|__PYTHON__|${python.bin}|" \
+            ${destroot}${python.prefix}/bin/importchecker
+    }
+    post-destroot	{
+        xinstall -m 644 -W ${worksrcpath} CREDITS.txt HISTORY.txt INSTALL.txt \
+            LICENSE.txt README.txt version.txt \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130120/ca3a5780/attachment.html>


More information about the macports-changes mailing list