[106016] trunk/dports/python

jmr at macports.org jmr at macports.org
Mon May 13 06:00:34 PDT 2013


Revision: 106016
          https://trac.macports.org/changeset/106016
Author:   jmr at macports.org
Date:     2013-05-13 06:00:34 -0700 (Mon, 13 May 2013)
Log Message:
-----------
py26-tesser: use unified portgroup, license, noarch

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

Added Paths:
-----------
    trunk/dports/python/py-tesser/

Removed Paths:
-------------
    trunk/dports/python/py26-tesser/

Modified: trunk/dports/python/py-tesser/Portfile
===================================================================
--- trunk/dports/python/py26-tesser/Portfile	2013-05-13 07:45:49 UTC (rev 106009)
+++ trunk/dports/python/py-tesser/Portfile	2013-05-13 13:00:34 UTC (rev 106016)
@@ -1,11 +1,13 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
+PortGroup           python 1.0
 
-name                py26-tesser
+name                py-tesser
 version             0.0.1
+license             Apache-2
 platforms           darwin
+supported_archs     noarch
 maintainers         nomaintainer
 description         Optical Character Recognition module for Python
 long_description    pytesser is an ${description}
@@ -19,20 +21,22 @@
                     sha1    3eec1dced4d484dd34464e8a329b7b3c7b40d7b0 \
                     rmd160  4aeb1cf41978671524bb1c4be4b11e25bda6c1ae
 
-depends_lib         port:py26-pil bin:tesseract:tesseract
+python.versions     26
 
-use_configure       no
-build               {}
-destroot {
-    set instdir ${destroot}${python.pkgd}/tesseract
-    xinstall -d ${instdir}
-    xinstall -m 644 ${worksrcpath}/pytesser.py ${instdir}/__init__.py
-    xinstall -m 644 -W ${worksrcpath} \
-        util.py errors.py \
-        ${instdir}
-    set docdir ${destroot}${prefix}/share/doc/pytesser-${version}
-    xinstall -d ${docdir}
-    xinstall -m 644 -W ${worksrcpath} \
-        AUTHORS ChangeLog LICENSE NOTICE README \
-        ${docdir}
+if {$subport != $name} {
+    depends_lib         port:py${python.version}-pil bin:tesseract:tesseract
+    build               {}
+    destroot {
+        set instdir ${destroot}${python.pkgd}/tesseract
+        xinstall -d ${instdir}
+        xinstall -m 644 ${worksrcpath}/pytesser.py ${instdir}/__init__.py
+        xinstall -m 644 -W ${worksrcpath} \
+            util.py errors.py \
+            ${instdir}
+        set docdir ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d ${docdir}
+        xinstall -m 644 -W ${worksrcpath} \
+            AUTHORS ChangeLog LICENSE NOTICE README \
+            ${docdir}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130513/69464744/attachment.html>


More information about the macports-changes mailing list