[83414] trunk/dports/python
blair at macports.org
blair at macports.org
Wed Aug 31 16:06:09 PDT 2011
Revision: 83414
http://trac.macports.org/changeset/83414
Author: blair at macports.org
Date: 2011-08-31 16:06:09 -0700 (Wed, 31 Aug 2011)
Log Message:
-----------
py2?-anyjson: switch to using a single port with subports.
Modified Paths:
--------------
trunk/dports/python/py-anyjson/Portfile
Added Paths:
-----------
trunk/dports/python/py-anyjson/
Removed Paths:
-------------
trunk/dports/python/py25-anyjson/
trunk/dports/python/py26-anyjson/
trunk/dports/python/py27-anyjson/
Modified: trunk/dports/python/py-anyjson/Portfile
===================================================================
--- trunk/dports/python/py27-anyjson/Portfile 2011-08-31 20:52:15 UTC (rev 83413)
+++ trunk/dports/python/py-anyjson/Portfile 2011-08-31 23:06:09 UTC (rev 83414)
@@ -1,31 +1,42 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
-PortGroup python27 1.0
+PortGroup python 1.0
-name py27-anyjson
+name py-anyjson
version 0.3
categories python www
platforms darwin
+
maintainers blair
-homepage http://bitbucket.org/runeh/anyjson/
+
description Wrap the best available JSON implementation in a common API
+
long_description Anyjson wraps the best available JSON implementation \
in a common interface. Anyjson loads whichever is the \
fastest JSON module installed and provides a uniform API \
regardless of which JSON implementation is used.
+homepage http://bitbucket.org/runeh/anyjson/
master_sites http://pypi.python.org/packages/source/a/anyjson
+
distname anyjson-${version}
+
checksums md5 28124eeb1a96e6631ae67bcb7a30ef48 \
sha1 033847e68c8fe9518bc4bcafddc83d472fbc8842 \
rmd160 8fe112ffb412b8054c8504ce21632a12855856ea
-depends_build-append port:py27-distribute
+python.versions 25 26 27
+python.default_version 27
-# Depend upon cjson so that the best JSON module can be used.
-depends_lib-append port:py27-cjson
+if {$subport != $name} {
+ depends_build-append port:py${python.version}-distribute
+ # Depend upon cjson so that the best JSON module can be used.
+ depends_lib-append port:py${python.version}-cjson
+}
+
livecheck.type regex
livecheck.url http://pypi.python.org/pypi/anyjson
livecheck.regex {anyjson ([0-9]+\.[0-9]+(?:\.[0-9]+)?)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110831/bc13d284/attachment.html>
More information about the macports-changes
mailing list