[117000] trunk/dports/python/py-bitarray/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Feb 12 01:01:33 PST 2014


Revision: 117000
          https://trac.macports.org/changeset/117000
Author:   ryandesign at macports.org
Date:     2014-02-12 01:01:32 -0800 (Wed, 12 Feb 2014)
Log Message:
-----------
py-bitarray: fix livecheck; add variables and refactor to use them; add py34 subport; see #42439

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

Modified: trunk/dports/python/py-bitarray/Portfile
===================================================================
--- trunk/dports/python/py-bitarray/Portfile	2014-02-12 08:28:59 UTC (rev 116999)
+++ trunk/dports/python/py-bitarray/Portfile	2014-02-12 09:01:32 UTC (rev 117000)
@@ -4,7 +4,10 @@
 PortSystem          1.0
 PortGroup           python 1.0
 
-name                py-bitarray
+set _name           bitarray
+set _n              [string index ${_name} 0]
+
+name                py-${_name}
 version             0.8.1
 categories-append   math
 platforms           darwin
@@ -15,26 +18,31 @@
 
 description         A efficient implementation of arrays of booleans
 
-long_description    This module provides an object type which efficiently represents \
-                    an array of booleans. Bitarrays are sequence types and behave \
-                    very much like usual lists. Eight bits are represented by one byte \
-                    in a contiguous block of memory. The user can select between two \
-                    representations: little-endian and big-endian. Most of the \
-                    functionality is implemented in C. Methods for accessing the \
-                    machine representation are provided.
+long_description    \
+    This module provides an object type which efficiently represents an array \
+    of booleans. Bitarrays are sequence types and behave very much like usual \
+    lists. Eight bits are represented by one byte in a contiguous block of \
+    memory. The user can select between two representations: little-endian \
+    and big-endian. Most of the functionality is implemented in C. \
+    Methods for accessing the machine representation are provided.
 
-homepage            https://github.com/ilanschnell/bitarray
+homepage            https://github.com/ilanschnell/${_name}
 
-distname            bitarray-${version}
-master_sites        http://pypi.python.org/packages/source/b/bitarray/
+distname            ${_name}-${version}
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
 
 checksums           md5     3825184f54f4d93508a28031b4c65d3b \
                     rmd160  58c2a2665c2759f23bf1ab096de8c34bf7fcfcbb \
                     sha256  7da501356e48a83c61f479393681c1bc4b94e5a34ace7e08cb29e7dd9290ab18
 
-python.versions     26 27 31 32
+python.versions     26 27 32 33 34
 
+livecheck.type      none
+
 if {${name} ne ${subport}} {
     depends_build         port:py${python.version}-setuptools
+} else {
+    livecheck.type      regex
+    livecheck.url       [lindex ${master_sites} 0]
+    livecheck.regex     ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
 }
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140212/44f23e12/attachment.html>


More information about the macports-changes mailing list