[125730] trunk/dports/python

jmr at macports.org jmr at macports.org
Wed Sep 24 19:11:13 PDT 2014


Revision: 125730
          https://trac.macports.org/changeset/125730
Author:   jmr at macports.org
Date:     2014-09-24 19:11:13 -0700 (Wed, 24 Sep 2014)
Log Message:
-----------
py26-scikits-ann: use unified python portgroup, set license

Modified Paths:
--------------
    trunk/dports/python/py-scikits-ann/Portfile

Added Paths:
-----------
    trunk/dports/python/py-scikits-ann/

Removed Paths:
-------------
    trunk/dports/python/py26-scikits-ann/

Modified: trunk/dports/python/py-scikits-ann/Portfile
===================================================================
--- trunk/dports/python/py26-scikits-ann/Portfile	2014-09-24 23:46:16 UTC (rev 125725)
+++ trunk/dports/python/py-scikits-ann/Portfile	2014-09-25 02:11:13 UTC (rev 125730)
@@ -1,14 +1,15 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
+PortGroup           python 1.0
 
-name                py26-scikits-ann
+name                py-scikits-ann
 version             0.2
 revision 			1
 maintainers         nomaintainer
 
 categories-append   science
+license             LGPL-2.1+
 description         scikits.ann is a SWIG python wrapper for the Approximate Nearest Neighbor (ANN) Library
 long_description    ${description} \
                     scikits.ann provides an immutable kdtree implementation (via ANN) which can \
@@ -17,27 +18,32 @@
 platforms           darwin
 
 homepage            http://scikits.appspot.com/ann
-master_sites        http://pypi.python.org/packages/source/s/scikits.ann/
+master_sites        https://pypi.python.org/packages/source/s/scikits.ann/
 distname            scikits.ann-${version}.dev-r803
 
 checksums           md5     a0380cdc31fd705c15eb50f483bbe5fb \
                     sha1    731113c04686b5178cae58df90e7f7b511206305 \
                     rmd160  b51135fd25cdcd3b4d229186153589f08e8dfa36
 
-patchfiles          patch-ann_init.diff
+python.versions     26
 
-depends_lib         port:py26-numpy \
-                    port:py26-scikits-module \
-                    port:swig-python \
-                    port:libANN
+if {$subport ne $name} {
+    patchfiles          patch-ann_init.diff
 
-build.env-append    CFLAGS=-I${prefix}/include
+    depends_lib         port:py${python.version}-numpy \
+                        port:py${python.version}-scikits-module \
+                        port:swig-python \
+                        port:libANN
 
-livecheck.type      regex
-livecheck.url       ${homepage}
-livecheck.regex     <i>version (\[\.\\d\]+\\d)
+    build.env-append    CFLAGS=-I${prefix}/include
 
-post-destroot {
-    # scikits/__init__.py is provided by scikits-module
-    file delete ${destroot}${python.pkgd}/scikits/__init__.py
+    post-destroot {
+        # scikits/__init__.py is provided by scikits-module
+        file delete ${destroot}${python.pkgd}/scikits/__init__.py
+    }
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       ${homepage}
+    livecheck.regex     <i>version (\[\.\\d\]+\\d)
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140924/94c1a72e/attachment.html>


More information about the macports-changes mailing list