[107720] trunk/dports/python/py-polygon
stromnov at macports.org
stromnov at macports.org
Thu Jul 4 09:58:09 PDT 2013
Revision: 107720
https://trac.macports.org/changeset/107720
Author: stromnov at macports.org
Date: 2013-07-04 09:58:09 -0700 (Thu, 04 Jul 2013)
Log Message:
-----------
py-polygon: update to version 3.0.6 (#39624)
Modified Paths:
--------------
trunk/dports/python/py-polygon/Portfile
trunk/dports/python/py-polygon/files/patch-setup.py.diff
Removed Paths:
-------------
trunk/dports/python/py-polygon/files/patch-setup.py-numpy.diff
Modified: trunk/dports/python/py-polygon/Portfile
===================================================================
--- trunk/dports/python/py-polygon/Portfile 2013-07-04 16:42:33 UTC (rev 107719)
+++ trunk/dports/python/py-polygon/Portfile 2013-07-04 16:58:09 UTC (rev 107720)
@@ -4,13 +4,17 @@
PortSystem 1.0
PortGroup python 1.0
-name py-polygon
-version 2.0.5
+set realname polygon
+
+name py-${realname}
+version 3.0.6
revision 0
categories-append devel math
+platforms darwin
license LGPL Noncommercial
-platforms darwin
+python.versions 25 26 27 32 33
+
maintainers stromnov openmaintainer
description Python bindings for General Polygon Clipping Library
@@ -22,14 +26,40 @@
in C and pure Python.
homepage http://www.j-raedler.de/projects/polygon
-master_sites https://github.com/jraedler/Polygon2/downloads
-distname Polygon-${version}
+master_sites http://bitbucket.org/jraedler/polygon3/downloads
-checksums rmd160 6593a9ea0c8b25cab29c9cbaaf5d37230364b32d \
- sha256 e0a111559eee27c8aee455cca6a1c5480a593ad5b0c11719a5cf066867d7a465
+distname Polygon3-${version}
-python.versions 25 26 27
+checksums rmd160 2bfe1173445e1b41f97a945b9a7df2282879e86f \
+ sha256 dea5b66870a9fd3031290f54f72d823c33bb8b8c21bec97c510d04df2608c637
+subport py25-${realname} {
+ version 2.0.6
+ revision 0
+ master_sites http://bitbucket.org/jraedler/polygon2/downloads
+ distname Polygon2-${version}
+ checksums rmd160 ee32123e4856bccc4137a06c21ea2e3135ef053b \
+ sha256 3e0e1a5125e892faa5964523de28c0349b573ed102547e12a1affc3fed2cac3b
+}
+
+subport py26-${realname} {
+ version 2.0.6
+ revision 0
+ master_sites http://bitbucket.org/jraedler/polygon2/downloads
+ distname Polygon2-${version}
+ checksums rmd160 ee32123e4856bccc4137a06c21ea2e3135ef053b \
+ sha256 3e0e1a5125e892faa5964523de28c0349b573ed102547e12a1affc3fed2cac3b
+}
+
+subport py27-${realname} {
+ version 2.0.6
+ revision 0
+ master_sites http://bitbucket.org/jraedler/polygon2/downloads
+ distname Polygon2-${version}
+ checksums rmd160 ee32123e4856bccc4137a06c21ea2e3135ef053b \
+ sha256 3e0e1a5125e892faa5964523de28c0349b573ed102547e12a1affc3fed2cac3b
+}
+
if {$subport != $name} {
use_zip yes
@@ -37,18 +67,19 @@
variant numpy description {Build with NumPy support} {
depends_lib-append port:py${python.version}-numpy
- patchfiles-append patch-setup.py-numpy.diff
+ patchfiles-delete patch-setup.py.diff
}
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath}/doc \
- Examples.py Polygon.txt testpoly.gpf \
+ Examples.py Polygon.txt Polygon.pdf testpoly.gpf \
${destroot}${prefix}/share/doc/${subport}
}
+
livecheck.type none
} else {
livecheck.type regex
livecheck.url ${master_sites}
- livecheck.regex "Polygon-(2+(?:\\.\\d+)*)${extract.suffix}"
+ livecheck.regex "Polygon\[23\]?-(\[23\]+(?:\\.\\d+)*)\.\[tz\]"
}
Deleted: trunk/dports/python/py-polygon/files/patch-setup.py-numpy.diff
===================================================================
--- trunk/dports/python/py-polygon/files/patch-setup.py-numpy.diff 2013-07-04 16:42:33 UTC (rev 107719)
+++ trunk/dports/python/py-polygon/files/patch-setup.py-numpy.diff 2013-07-04 16:58:09 UTC (rev 107720)
@@ -1,18 +0,0 @@
---- setup.py.orig 2013-01-14 15:52:45.000000000 +0400
-+++ setup.py 2013-01-14 15:53:22.000000000 +0400
-@@ -10,7 +10,14 @@
- # if withNumPy is True, set the include path for numpy/arrayobject.h
- # the example is for python on Windows:
- # numPyIncludePath='C:\\Python26\\Lib\\site-packages\\numpy\\core\\include'
--numPyIncludePath=''
-+if withNumPy:
-+ try:
-+ import numpy
-+ except ImportError:
-+ raise Exception("PYTHON interface requires numpy")
-+ numPyIncludePath = numpy.get_include()
-+else:
-+ numPyIncludePath = ''
-
- # defaultStyle may be used to set the default style to one of:
- # * STYLE_TUPLE to get tuples of points
Modified: trunk/dports/python/py-polygon/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-polygon/files/patch-setup.py.diff 2013-07-04 16:42:33 UTC (rev 107719)
+++ trunk/dports/python/py-polygon/files/patch-setup.py.diff 2013-07-04 16:58:09 UTC (rev 107720)
@@ -1,11 +1,11 @@
---- setup.py.orig 2013-01-14 15:51:29.000000000 +0400
-+++ setup.py 2013-01-14 15:51:38.000000000 +0400
-@@ -5,7 +5,7 @@
- # * faster adding of contours from NumPy arrays
- # * data style STYLE_NUMPY to get contours and TriStrips
- # as NumPy arrays
+--- setup.py.orig 2013-07-04 20:20:50.000000000 +0400
++++ setup.py 2013-07-04 20:21:16.000000000 +0400
+@@ -7,7 +7,7 @@
+ # as numpy arrays
+ # set this to False if you don't have numpy installed or you don't want to
+ # enable support for it,
-withNumPy=True
+withNumPy=False
- # if withNumPy is True, set the include path for numpy/arrayobject.h
- # the example is for python on Windows:
+ # defaultStyle may be used to set the default style to one of:
+ # * STYLE_TUPLE to get tuples of points
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130704/beae0502/attachment.html>
More information about the macports-changes
mailing list