[78455] trunk/dports/python

ryandesign at macports.org ryandesign at macports.org
Sun May 8 02:55:33 PDT 2011


Revision: 78455
          http://trac.macports.org/changeset/78455
Author:   ryandesign at macports.org
Date:     2011-05-08 02:55:30 -0700 (Sun, 08 May 2011)
Log Message:
-----------
py25-enchant: new port, based on py26-enchant 1.6.5; see #24473

Modified Paths:
--------------
    trunk/dports/python/py25-enchant/Portfile

Added Paths:
-----------
    trunk/dports/python/py25-enchant/
    trunk/dports/python/py25-enchant/files/
    trunk/dports/python/py25-enchant/files/patch-enchant-_enchant.py.diff

Modified: trunk/dports/python/py25-enchant/Portfile
===================================================================
--- trunk/dports/python/py26-enchant/Portfile	2011-05-08 06:30:44 UTC (rev 78453)
+++ trunk/dports/python/py25-enchant/Portfile	2011-05-08 09:55:30 UTC (rev 78455)
@@ -1,9 +1,9 @@
 # $Id$
 
 PortSystem              1.0
-PortGroup               python26 1.0
+PortGroup               python25 1.0
 
-name                    py26-enchant
+name                    py25-enchant
 version                 1.6.5
 categories              python textproc
 platforms               darwin
@@ -19,10 +19,16 @@
                         sha1    6f01b8657b64e970a11945c2a9b4d6d8023997bc \
                         rmd160  4e94bb26134f6d60b114cf40b3170dbf5fcb6e85
 
-depends_lib-append      port:py26-distribute port:enchant
+depends_lib-append      port:py25-distribute port:enchant
 
 supported_archs         noarch
 
+patchfiles              patch-enchant-_enchant.py.diff
+
+post-patch {
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/enchant/_enchant.py
+}
+
 livecheck.type          regex
 livecheck.url           ${homepage}
 livecheck.regex         Version (\\d+\\.\\d+\\.\\d+) released

Added: trunk/dports/python/py25-enchant/files/patch-enchant-_enchant.py.diff
===================================================================
--- trunk/dports/python/py25-enchant/files/patch-enchant-_enchant.py.diff	                        (rev 0)
+++ trunk/dports/python/py25-enchant/files/patch-enchant-_enchant.py.diff	2011-05-08 09:55:30 UTC (rev 78455)
@@ -0,0 +1,11 @@
+--- enchant/_enchant.py.orig	2010-12-13 18:22:06.000000000 -0600
++++ enchant/_enchant.py	2011-05-08 04:50:30.000000000 -0500
+@@ -69,7 +69,7 @@
+     yield find_library("libenchant-1")
+     if sys.platform == 'darwin':
+          # enchant lib installed by macports
+-         yield "/opt/local/lib/libenchant.dylib"
++         yield "@PREFIX@/lib/libenchant.dylib"
+ 
+ 
+ # On win32 we ship a bundled version of the enchant DLLs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110508/ab84350a/attachment.html>


More information about the macports-changes mailing list