[121891] trunk/dports/python/py-chardet/Portfile
aronnax at macports.org
aronnax at macports.org
Thu Jul 10 12:24:10 PDT 2014
Revision: 121891
https://trac.macports.org/changeset/121891
Author: aronnax at macports.org
Date: 2014-07-10 12:24:10 -0700 (Thu, 10 Jul 2014)
Log Message:
-----------
py-chardet: update to 2.2.1
* adopt port
* fix whitespace, align to four spaces
* adjust homepage (old URL was defunct)
* remove Python 2.5 subport (no longer subported)
* add Python 3.2 and 3.3 subports
* fix livecheck
* add to textproc category
Modified Paths:
--------------
trunk/dports/python/py-chardet/Portfile
Modified: trunk/dports/python/py-chardet/Portfile
===================================================================
--- trunk/dports/python/py-chardet/Portfile 2014-07-10 18:58:58 UTC (rev 121890)
+++ trunk/dports/python/py-chardet/Portfile 2014-07-10 19:24:10 UTC (rev 121891)
@@ -1,26 +1,37 @@
# $Id$
-PortSystem 1.0
-PortGroup python 1.0
+PortSystem 1.0
+PortGroup python 1.0
-name py-chardet
-version 2.0.1
-categories-append devel
-license LGPL-2.1+
-platforms darwin
-supported_archs noarch
-maintainers nomaintainer
-description Universal character encoding detector
-long_description Character encoding auto-detection in Python. \
- As smart as your browser.
+set realname chardet
-homepage http://chardet.feedparser.org/
-master_sites http://chardet.feedparser.org/download/ \
- http://distfiles.macports.org/python/
-extract.suffix .tgz
-distname python2-chardet-${version}
-checksums md5 ec771971bab5dd1943a10362ebd2fd4c \
- sha1 d3240c8b7d04bd15d21feda76158223fa7f5f2bc \
- rmd160 054d940a152344f170758e928a484ac0f98df78f
+name py-${realname}
+version 2.2.1
+categories-append devel textproc
+license LGPL-2.1+
+platforms darwin
+supported_archs noarch
+maintainers aronnax openmaintainer
+description Universal character encoding detector
+long_description Character encoding auto-detection in Python. \
+ As smart as your browser.
-python.versions 25 26 27
+homepage https://pypi.python.org/pypi/${realname}/
+master_sites http://pypi.python.org/packages/source/[string index ${realname} 0]/${realname}
+distname ${realname}-${version}
+
+checksums md5 4a758402eaefd0331bdedc7ecb6f452c \
+ sha1 b59690c286ae2bc515da9b34eb30629d72f02e27 \
+ rmd160 f85631355c6ba46f18b1171029dbf3faf1586125
+
+python.versions 26 27 32 33
+
+if {${name} ne ${subport}} {
+ depends_build-append \
+ port:py${python.version}-setuptools
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.regex [format "%s-%s" ${realname} {(\d+(?:\.\d+)*)}]
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140710/d9858a0c/attachment.html>
More information about the macports-changes
mailing list