[112652] trunk/dports/python/py-unittest2/Portfile
aronnax at macports.org
aronnax at macports.org
Mon Oct 28 15:46:10 PDT 2013
Revision: 112652
https://trac.macports.org/changeset/112652
Author: aronnax at macports.org
Date: 2013-10-28 15:46:10 -0700 (Mon, 28 Oct 2013)
Log Message:
-----------
py-unittest2: add Python 3 subports, change to noarch, assume maintainership
Modified Paths:
--------------
trunk/dports/python/py-unittest2/Portfile
Modified: trunk/dports/python/py-unittest2/Portfile
===================================================================
--- trunk/dports/python/py-unittest2/Portfile 2013-10-28 22:25:05 UTC (rev 112651)
+++ trunk/dports/python/py-unittest2/Portfile 2013-10-28 22:46:10 UTC (rev 112652)
@@ -6,10 +6,10 @@
name py-unittest2
version 0.5.1
+revision 1
license PSF
-maintainers nomaintainer
-python.versions 24 25 26 27
-python.default_version 24
+maintainers aronnax openmaintainer
+python.versions 24 25 26 27 30 31 32
description New features in the unittest library
@@ -20,13 +20,27 @@
import unittest2.
platforms darwin
+supported_archs noarch
homepage http://pypi.python.org/pypi/unittest2
-master_sites http://pypi.python.org/packages/source/u/unittest2/
-distname unittest2-${version}
-checksums rmd160 aa83b1d6dedaa71a9e6d3bed4028e855bef04821 \
- sha256 aa5de8cdf654d843379c97bd1ee240e86356d3355a97b147a6f3f4d149247a71
+if {${subport} != ${name}} {
+ if {${python.version} < 30} {
+ master_sites http://pypi.python.org/packages/source/u/unittest2/
+ distname unittest2-${version}
+ checksums md5 a0af5cac92bbbfa0c3b0e99571390e0f \
+ rmd160 aa83b1d6dedaa71a9e6d3bed4028e855bef04821 \
+ sha256 aa5de8cdf654d843379c97bd1ee240e86356d3355a97b147a6f3f4d149247a71
+ } else {
+ master_sites http://pypi.python.org/packages/source/u/unittest2py3k/
+ distname unittest2py3k-${version}
+
+ checksums md5 8824ff92044310d9365f90d892bf0f09 \
+ rmd160 119f837e7af015fc83e8967fa1388f8745d9895f \
+ sha256 78249c5f1ac508a34d9d131d43a89d77bf154186f3ea5f7a6b993d3f3535d403
+ }
+}
+
# Needed for Python 2.4 and 2.5 for destroot to succeed.
python.move_binaries no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131028/896ef1c3/attachment.html>
More information about the macports-changes
mailing list