[112603] trunk/dports/python

snc at macports.org snc at macports.org
Sun Oct 27 13:14:51 PDT 2013


Revision: 112603
          https://trac.macports.org/changeset/112603
Author:   snc at macports.org
Date:     2013-10-27 13:14:51 -0700 (Sun, 27 Oct 2013)
Log Message:
-----------
py-BitArray2D: new submission, version 2.1, from maintainer, fixes #40534

Added Paths:
-----------
    trunk/dports/python/py-BitArray2D/
    trunk/dports/python/py-BitArray2D/Portfile

Added: trunk/dports/python/py-BitArray2D/Portfile
===================================================================
--- trunk/dports/python/py-BitArray2D/Portfile	                        (rev 0)
+++ trunk/dports/python/py-BitArray2D/Portfile	2013-10-27 20:14:51 UTC (rev 112603)
@@ -0,0 +1,67 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           python 1.0
+
+name                py-BitArray2D
+version             2.1
+categories-append   math
+platforms           darwin
+supported_archs     noarch
+
+maintainers         bo.ingv.it:Peter.Danecek openmaintainer
+
+license             PSF
+
+description         A memory-efficient packed representation for 2D bit arrays
+
+long_description    The BitArray2D class is for a memory-efficient packed \
+                    representation of 2D bit arrays and for logical and other \
+                    operations (such as blob dilations, erosions, etc.) on \
+                    such arrays. The implementation of the class takes \
+                    advantage of the facilities of the BitVector class for \
+                    the memory representation and for the allowed operations.
+
+homepage            https://engineering.purdue.edu/kak/dist2d/BitArray2D-${version}.html
+
+distname            BitArray2D-${version}
+master_sites        https://engineering.purdue.edu/kak/dist2d
+
+checksums           md5     24cac608e52df170a5163988b95d9fa3 \
+                    rmd160  6b25f62b9ea8ea7f4d680e31fa210d03574e1173 \
+                    sha256  d0875cb8384a76925981fec18b88bf66927b2dcddea104e954a7874351eb8877
+
+python.versions     26 27 31 32 33 34
+
+if {${subport} ne ${name}} {
+    depends_build-append  port:py${python.version}-setuptools
+
+    depends_lib-append    port:py${python.version}-BitVector
+
+    test.run            yes
+    test.cmd            ${python.bin} TestBitArray2D/Test.py
+    test.target         {}
+
+    # delete redundant files & avoid testing different version
+    pre-patch {
+        eval delete [ glob ${worksrcpath}/*/*.pyc ]            ;# purge *.pyc files
+        eval delete [ glob ${worksrcpath}/*/BitVector.py ]     ;# .
+        eval delete [ glob ${worksrcpath}/*/BitArray2D.py ]    ;# these copies
+
+        # use version installed by dependency instead
+        delete ${worksrcpath}/BitVector.py
+
+        # create link for testing
+        ln -s ../BitArray2D.py ${worksrcpath}/TestBitArray2D/BitArray2D.py
+    }
+
+    # Adding documentation & examples
+    post-destroot {
+        copy ${worksrcpath}/${distname}.html ${destroot}${prefix}/share/doc/${subport}
+ 
+        # Avoid creation of example directory
+        delete  ${destroot}${prefix}/share/doc/${subport}/examples
+        copy ${worksrcpath}/Examples ${destroot}${prefix}/share/doc/${subport}/examples
+    }
+}


Property changes on: trunk/dports/python/py-BitArray2D/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131027/fffabd71/attachment.html>


More information about the macports-changes mailing list