[82643] trunk/dports/python
stromnov at macports.org
stromnov at macports.org
Wed Aug 17 04:12:08 PDT 2011
Revision: 82643
http://trac.macports.org/changeset/82643
Author: stromnov at macports.org
Date: 2011-08-17 04:12:06 -0700 (Wed, 17 Aug 2011)
Log Message:
-----------
py2*-polygon: unify
Modified Paths:
--------------
trunk/dports/python/py-polygon/Portfile
Added Paths:
-----------
trunk/dports/python/py-polygon/
Removed Paths:
-------------
trunk/dports/python/py26-polygon/
Modified: trunk/dports/python/py-polygon/Portfile
===================================================================
--- trunk/dports/python/py26-polygon/Portfile 2011-08-17 10:23:18 UTC (rev 82640)
+++ trunk/dports/python/py-polygon/Portfile 2011-08-17 11:12:06 UTC (rev 82643)
@@ -2,10 +2,15 @@
# $Id$
PortSystem 1.0
-PortGroup python26 1.0
+PortGroup python 1.0
-name py26-polygon
+name py-polygon
version 2.0.4
+revision 1
+categories-append devel math
+license LGPL
+platforms darwin
+
maintainers stromnov openmaintainer
description Python bindings for General Polygon Clipping Library
@@ -16,8 +21,6 @@
Polygon Clipping Library by Alan Murta and some extensions written \
in C and pure Python.
-platforms darwin
-
homepage http://polygon.origo.ethz.ch/
master_sites http://download.origo.ethz.ch/polygon/2890/
distname Polygon-${version}
@@ -27,15 +30,23 @@
sha1 aa734572c911c0ddb4b39d1bf21f8ecbfa3685c8 \
rmd160 dfb26325998f3e8b44ac36f6ef2c0be30b8d9fd9
+python.versions 25 26 27
+python.default_version 27
+
variant numpy description {Build with NumPy support} {
- depends_lib-append port:py26-numpy
+ depends_lib-append port:py${python.version}-numpy
patchfiles-append patch-setup.py.diff
}
-post-destroot {
- xinstall -m 644 -W ${worksrcpath}/doc \
- Examples.py Polygon.txt testpoly.gpf \
- ${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+ depends_lib-append port:py${python.version}-distribute
+
+ post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 -W ${worksrcpath}/doc \
+ Examples.py Polygon.txt testpoly.gpf \
+ ${destroot}${prefix}/share/doc/${subport}
+ }
}
livecheck.type regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110817/cf80e504/attachment.html>
More information about the macports-changes
mailing list