[101779] trunk/dports/python/py-lrucache/Portfile
jmr at macports.org
jmr at macports.org
Fri Jan 18 21:40:00 PST 2013
Revision: 101779
https://trac.macports.org/changeset/101779
Author: jmr at macports.org
Date: 2013-01-18 21:40:00 -0800 (Fri, 18 Jan 2013)
Log Message:
-----------
py-lrucache: use unified portgroup, license, noarch
Modified Paths:
--------------
trunk/dports/python/py-lrucache/Portfile
Modified: trunk/dports/python/py-lrucache/Portfile
===================================================================
--- trunk/dports/python/py-lrucache/Portfile 2013-01-19 05:22:40 UTC (rev 101778)
+++ trunk/dports/python/py-lrucache/Portfile 2013-01-19 05:40:00 UTC (rev 101779)
@@ -1,13 +1,14 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-lrucache
version 0.2
revision 1
-categories python
+license AFL-2.1
platforms darwin
+supported_archs noarch
maintainers nomaintainer
description least-recently-used cache module for python
long_description py-lrucache provides a simple but efficient \
@@ -16,20 +17,24 @@
implementation uses a heap and a dictionary to provide quick \
inserts, deletes, and references.
-homepage http://bad.dynu.ca/~evan/lrucache/
+homepage http://evan.prodromou.name/lrucache/
master_sites ${homepage}
distname lrucache-${version}
checksums md5 b55a8cc303c43c8a0f01ed25269d588a
-set cmd "PYTHONPATH=../build/lib ${python.bin}"
-test.run yes
-test.cmd ${cmd} assign.py && ${cmd} contain.py && ${cmd} delete.py \
- && ${cmd} instantiate.py && ${cmd} iterator.py \
- && ${cmd} lru.py && ${cmd} mtime.py
-test.dir ${worksrcpath}/test
-test.target
+python.versions 24
-post-destroot {
- xinstall -m 644 -W ${worksrcpath} Changelog Changelog-0.1 README.txt \
- afl-2.1.txt ${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+ set cmd "PYTHONPATH=../build/lib ${python.bin}"
+ test.run yes
+ test.cmd ${cmd} assign.py && ${cmd} contain.py && ${cmd} delete.py \
+ && ${cmd} instantiate.py && ${cmd} iterator.py \
+ && ${cmd} lru.py && ${cmd} mtime.py
+ test.dir ${worksrcpath}/test
+ test.target
+
+ post-destroot {
+ xinstall -m 644 -W ${worksrcpath} Changelog Changelog-0.1 README.txt \
+ afl-2.1.txt ${destroot}${prefix}/share/doc/${subport}
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130118/076d1cf3/attachment.html>
More information about the macports-changes
mailing list