[101780] trunk/dports/python/py-log4py/Portfile

jmr at macports.org jmr at macports.org
Fri Jan 18 21:48:17 PST 2013


Revision: 101780
          https://trac.macports.org/changeset/101780
Author:   jmr at macports.org
Date:     2013-01-18 21:48:17 -0800 (Fri, 18 Jan 2013)
Log Message:
-----------
py-log4py: use unified portgroup, license, noarch

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

Modified: trunk/dports/python/py-log4py/Portfile
===================================================================
--- trunk/dports/python/py-log4py/Portfile	2013-01-19 05:40:00 UTC (rev 101779)
+++ trunk/dports/python/py-log4py/Portfile	2013-01-19 05:48:17 UTC (rev 101780)
@@ -1,14 +1,16 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-log4py
 version			1.3
 revision		1
 categories		python devel
+license			MIT
 maintainers		nomaintainer
 platforms		darwin freebsd
+supported_archs	noarch
 description		log4py is a python logging module similar to log4j.
 long_description	log4py is a python logging module similar to log4j. It \
 				supports logging to files (including logfile rotation) or to \
@@ -20,15 +22,19 @@
 distname		log4py-${version}
 checksums		md5 dc250a8a899c7e70464d683dfc3bdc4f
 
-post-destroot	{
-	xinstall -m 644 -W ${worksrcpath}/doc AUTHORS COPYING ChangeLog \
-		LICENSE ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath}/doc/html footer.template \
-		header.template index.html indices.html \
-		log4py.FileAppender.html log4py.Logger.html log4py.css \
-		log4py.html ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath} readme.txt database/mysql.readme \
-		database/mysql.sql ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath} log4py-test.py log4py-classtest.py \
-		log4py.conf ${destroot}${prefix}/share/doc/${name}/examples
+python.versions	24
+
+if {$subport != $name} {
+    post-destroot	{
+        xinstall -m 644 -W ${worksrcpath}/doc AUTHORS COPYING ChangeLog \
+            LICENSE ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath}/doc/html footer.template \
+            header.template index.html indices.html \
+            log4py.FileAppender.html log4py.Logger.html log4py.css \
+            log4py.html ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} readme.txt database/mysql.readme \
+            database/mysql.sql ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} log4py-test.py log4py-classtest.py \
+            log4py.conf ${destroot}${prefix}/share/doc/${subport}/examples
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130118/fe9491ec/attachment.html>


More information about the macports-changes mailing list