[102834] trunk/dports/python

ryandesign at macports.org ryandesign at macports.org
Sat Feb 9 02:37:22 PST 2013


Revision: 102834
          https://trac.macports.org/changeset/102834
Author:   ryandesign at macports.org
Date:     2013-02-09 02:37:22 -0800 (Sat, 09 Feb 2013)
Log Message:
-----------
py-pyicu: unify; add py27 subport; update to 1.5; license MIT; fix livecheck

Modified Paths:
--------------
    trunk/dports/python/py-pyicu/Portfile
    trunk/dports/python/py-pyicu/files/patch-setup.py

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

Removed Paths:
-------------
    trunk/dports/python/py25-pyicu/
    trunk/dports/python/py26-pyicu/

Modified: trunk/dports/python/py-pyicu/Portfile
===================================================================
--- trunk/dports/python/py26-pyicu/Portfile	2013-02-09 07:31:51 UTC (rev 102832)
+++ trunk/dports/python/py-pyicu/Portfile	2013-02-09 10:37:22 UTC (rev 102834)
@@ -1,14 +1,14 @@
 # $Id$
 
 PortSystem      1.0
-PortGroup       python26 1.0
+PortGroup       python 1.0
 
-name            py26-pyicu
-version         0.8.1
-revision        4
+name            py-pyicu
+version         1.5
 categories-append   textproc
 platforms       darwin
 maintainers     nomaintainer
+license         MIT
 
 description     Python extension wrapping IBM's International \
                 Components for Unicode C++ library (ICU)
@@ -20,14 +20,23 @@
 master_sites    http://pypi.python.org/packages/source/P/PyICU/
 distname        PyICU-${version}
 
-depends_lib-append   port:icu
+checksums       rmd160  e063b3ba951b135503d9a3a2993ff8311ac404a2 \
+                sha256  7597ae80f8bbfed5ff321c6c3ed7200ef07d546a26ee8a08dc1ce578a9e33b04
 
-checksums       md5     789092993f84ccd6ba21d7346d6e093d \
-                sha1    f8f3c8821cb90442ba6637530592e91929efdf6d \
-                rmd160  af38047ab04824fab52f529454528cf7dd71d520
+python.versions 25 26 27
 
-patchfiles      patch-setup.py
+if {${name} != ${subport}} {
+    depends_lib-append  port:icu
 
-post-patch {
+    patchfiles          patch-setup.py
+
+    post-patch {
         reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup.py
+    }
+
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       [lindex ${master_sites} 0]
+    livecheck.regex     PyICU-(\[0-9.\]+)${extract.suffix}
 }

Modified: trunk/dports/python/py-pyicu/files/patch-setup.py
===================================================================
--- trunk/dports/python/py26-pyicu/files/patch-setup.py	2013-02-09 07:31:51 UTC (rev 102832)
+++ trunk/dports/python/py-pyicu/files/patch-setup.py	2013-02-09 10:37:22 UTC (rev 102834)
@@ -1,20 +1,28 @@
---- setup.py.orig	2009-07-14 15:18:20.000000000 +0400
-+++ setup.py	2009-07-14 15:21:18.000000000 +0400
-@@ -11,7 +11,7 @@
- ICU_VERSION = '3.8'   # version 3.6 is also supported
+--- setup.py.orig	2013-02-09 04:17:06.000000000 -0600
++++ setup.py	2013-02-09 04:24:46.000000000 -0600
+@@ -10,9 +10,9 @@
+ VERSION = '1.5'
  
  INCLUDES = {
--    'darwin': ['/usr/local/icu-%s/include' %(ICU_VERSION)],
+-    'darwin': ['/usr/local/include'],
+-    'linux': [],
+-    'freebsd7': ['/usr/local/include'],
 +    'darwin': ['@PREFIX@/include'],
-     'linux2': [],
-     'win32': [],
++    'linux': ['@PREFIX@/include'],
++    'freebsd7': ['@PREFIX@/include'],
+     'win32': ['c:/icu/include'],
+     'sunos5': [],
  }
-@@ -23,7 +23,7 @@
+@@ -35,9 +35,9 @@
  }
  
  LFLAGS = {
--    'darwin': ['-L/usr/local/icu-%s/lib' %(ICU_VERSION)],
+-    'darwin': ['-L/usr/local/lib'],
+-    'linux': [],
+-    'freebsd7': ['-L/usr/local/lib'],
 +    'darwin': ['-L at PREFIX@/lib'],
-     'linux2': [],
-     'win32': [],
++    'linux': ['-L at PREFIX@/lib'],
++    'freebsd7': ['-L at PREFIX@/lib'],
+     'win32': ['/LIBPATH:c:/icu/lib'],
+     'sunos5': [],
  }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130209/ae731e29/attachment.html>


More information about the macports-changes mailing list