[100413] trunk/dports/python

jmr at macports.org jmr at macports.org
Tue Dec 11 01:41:14 PST 2012


Revision: 100413
          https://trac.macports.org/changeset/100413
Author:   jmr at macports.org
Date:     2012-12-11 01:41:14 -0800 (Tue, 11 Dec 2012)
Log Message:
-----------
py*-enchant: unify, set license

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

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

Removed Paths:
-------------
    trunk/dports/python/py25-enchant/
    trunk/dports/python/py26-enchant/
    trunk/dports/python/py27-enchant/

Modified: trunk/dports/python/py-enchant/Portfile
===================================================================
--- trunk/dports/python/py27-enchant/Portfile	2012-12-11 03:56:52 UTC (rev 100410)
+++ trunk/dports/python/py-enchant/Portfile	2012-12-11 09:41:14 UTC (rev 100413)
@@ -1,12 +1,14 @@
 # $Id$
 
 PortSystem              1.0
-PortGroup               python27 1.0
+PortGroup               python 1.0
 
-name                    py27-enchant
+name                    py-enchant
 version                 1.6.5
 categories              python textproc
+license                 LGPL-2.1+
 platforms               darwin
+supported_archs         noarch
 maintainers             adfernandes openmaintainer
 homepage                http://www.rfk.id.au/software/pyenchant/
 description             A python interface to the enchant spell-checking library.
@@ -19,16 +21,19 @@
                         sha1    6f01b8657b64e970a11945c2a9b4d6d8023997bc \
                         rmd160  4e94bb26134f6d60b114cf40b3170dbf5fcb6e85
 
-depends_lib-append      port:py27-distribute port:enchant
+python.versions         25 26 27
 
-supported_archs         noarch
-
-patchfiles              patch-enchant-_enchant.py.diff
-
-post-patch {
-    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/enchant/_enchant.py
+if {$subport != $name} {
+    depends_lib-append      port:py${python.version}-distribute port:enchant
+    
+    patchfiles              patch-enchant-_enchant.py.diff
+    
+    post-patch {
+        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/enchant/_enchant.py
+    }
+    livecheck.type          none
+} else {
+    livecheck.type          regex
+    livecheck.url           ${homepage}
+    livecheck.regex         Version (\\d+\\.\\d+\\.\\d+) released
 }
-
-livecheck.type          regex
-livecheck.url           ${homepage}
-livecheck.regex         Version (\\d+\\.\\d+\\.\\d+) released
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121211/ca676965/attachment-0001.html>


More information about the macports-changes mailing list