[90953] trunk/dports/python
stromnov at macports.org
stromnov at macports.org
Mon Mar 19 08:23:54 PDT 2012
Revision: 90953
https://trac.macports.org/changeset/90953
Author: stromnov at macports.org
Date: 2012-03-19 08:23:53 -0700 (Mon, 19 Mar 2012)
Log Message:
-----------
py2*-levenshtein: unify
Modified Paths:
--------------
trunk/dports/python/py-levenshtein/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-levenshtein/
trunk/dports/python/py26-levenshtein/
trunk/dports/python/py27-levenshtein/
Modified: trunk/dports/python/py-levenshtein/Portfile
===================================================================
--- trunk/dports/python/py-levenshtein/Portfile 2012-03-19 14:02:15 UTC (rev 90952)
+++ trunk/dports/python/py-levenshtein/Portfile 2012-03-19 15:23:53 UTC (rev 90953)
@@ -1,30 +1,58 @@
+# -*- 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 python24 1.0
+PortSystem 1.0
+PortGroup python 1.0
-name py-levenshtein
-version 0.10.1
-categories python textproc
-platforms darwin freebsd
-maintainers nomaintainer
-description python module for fast computation of Levensthein distances
-long_description The Levenshtein Python C extension module contains \
- functions for fast computation of Levenshtein (edit) \
- distance, and edit operations, string similarity, \
- approximate median strings, and generally string \
- averaging, string sequence and set similarity. It \
- supports both normal and Unicode strings.
+name py-levenshtein
+version 0.10.2
+revision 0
+categories-append textproc
+license GPL
+platforms darwin freebsd
-homepage http://trific.ath.cx/resources/python/levenshtein/
-master_sites http://trific.ath.cx/Ftp/python/levenshtein/
-distname python-Levenshtein-${version}
-checksums md5 af9b9c69c4563e211b11dc5184a93872
-use_bzip2 yes
+maintainers nomaintainer
-post-destroot {
- xinstall -m 644 -W ${worksrcpath} COPYING NEWS README \
- ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 ${worksrcpath}/StringMatcher.py \
- ${destroot}${prefix}/share/doc/${name}/examples
+description Python module for fast computation of Levensthein distances.
+
+long_description The Levenshtein Python C extension module contains \
+ functions for fast computation of Levenshtein (edit) \
+ distance, and edit operations, string similarity, \
+ approximate median strings, and generally string \
+ averaging, string sequence and set similarity. It \
+ supports both normal and Unicode strings.
+
+homepage http://github.com/miohtama/python-Levenshtein
+master_sites http://pypi.python.org/packages/source/p/python-Levenshtein
+
+distname python-Levenshtein-${version}
+
+checksums rmd160 a08ebd7edc92cfb34ea822cbb6d87f4cd23b8581 \
+ sha256 49a3b3c3210157e2070eb46c0713e64f409efc8c9a7520632ddf16f8a9508bed
+
+python.versions 24 25 26 27
+
+if {$subport != $name} {
+ depends_lib port:py${python.version}-distribute
+
+ post-destroot {
+ set realname levenshtein
+ if {$subport == "py24-${realname}" || $subport == "py25-${realname}"} {
+ xinstall -d ${destroot}${prefix}/share/doc/${subport}/examples
+ xinstall -m 644 -W ${worksrcpath} COPYING NEWS README.rst \
+ ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 ${worksrcpath}/StringMatcher.py \
+ ${destroot}${prefix}/share/doc/${subport}/examples
+ } else {
+ xinstall -d ${destroot}${python.prefix}/share/doc/${realname}/examples
+ xinstall -m 644 -W ${worksrcpath} COPYING NEWS README.rst \
+ ${destroot}${python.prefix}/share/doc/${realname}
+ xinstall -m 644 ${worksrcpath}/StringMatcher.py \
+ ${destroot}${python.prefix}/share/doc/${realname}/examples
+ }
+ }
}
+
+livecheck.type regex
+livecheck.url ${master_sites}
+livecheck.regex "python-Levenshtein-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120319/bdbb2c23/attachment.html>
More information about the macports-changes
mailing list