[82241] trunk/dports/python

eborisch at macports.org eborisch at macports.org
Thu Aug 11 06:38:25 PDT 2011


Revision: 82241
          http://trac.macports.org/changeset/82241
Author:   eborisch at macports.org
Date:     2011-08-11 06:38:25 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
py2[567]-pydicom: Move to python portgroup
py24-pydicom: New port

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

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

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

Modified: trunk/dports/python/py-pydicom/Portfile
===================================================================
--- trunk/dports/python/py27-pydicom/Portfile	2011-08-11 09:07:47 UTC (rev 82239)
+++ trunk/dports/python/py-pydicom/Portfile	2011-08-11 13:38:25 UTC (rev 82241)
@@ -2,10 +2,12 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python27 1.0
+PortGroup           python 1.0
 
-name                py27-pydicom
+name                py-pydicom
 version             0.9.5
+python.versions     24 25 26 27
+python.default_version 27
 revision            2
 platforms           darwin
 categories          python
@@ -29,17 +31,25 @@
                     sha1    cd8739c53e43b8ff2113debe70cea74e95340467 \
                     rmd160  d6f80a0fd632714359eb24b79b15a01aed16e570
 
-# Patches from upstream revision 156044badd:
-# See http://code.google.com/p/pydicom/issues/detail?id=96
-patchfiles          patch-dicom-UID.py.diff \
-                    patch-dicom-test-_write_stds.py.diff \
-                    patch-dicom-test-test_UID.py.diff
+if {${subport} != ${name}} {
+    # Patches from upstream revision 156044badd:
+    # See http://code.google.com/p/pydicom/issues/detail?id=96
+    patchfiles          patch-dicom-UID.py.diff \
+                        patch-dicom-test-_write_stds.py.diff \
+                        patch-dicom-test-test_UID.py.diff
 
-# Patches from upstream revision 861d859b4f:
-# See http://code.google.com/p/pydicom/issues/detail?id=97
-patchfiles-append   patch-dicom-filereader.py.diff
+    # Patches from upstream revision 861d859b4f:
+    # See http://code.google.com/p/pydicom/issues/detail?id=97
+    patchfiles-append   patch-dicom-filereader.py.diff
 
-depends_lib-append  port:py27-numpy
+    if {${python.version} != 24} {
+        set depversion      py${python.version}
+    } else {
+        set depversion      py 
+    }
 
+    depends_lib-append  port:${depversion}-numpy
+}
+
 livecheck.regex       {pydicom-(\d+(?:\.\d+)*).tar.gz}
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110811/22542682/attachment-0001.html>


More information about the macports-changes mailing list