[115851] trunk/dports/python/py-nltk
hum at macports.org
hum at macports.org
Sun Jan 12 17:51:17 PST 2014
Revision: 115851
https://trac.macports.org/changeset/115851
Author: hum at macports.org
Date: 2014-01-12 17:51:16 -0800 (Sun, 12 Jan 2014)
Log Message:
-----------
py-nltk: use py-setuptools instead of downloading distribute; see #42097.
Modified Paths:
--------------
trunk/dports/python/py-nltk/Portfile
Added Paths:
-----------
trunk/dports/python/py-nltk/files/
trunk/dports/python/py-nltk/files/patch-setup.py.diff
Modified: trunk/dports/python/py-nltk/Portfile
===================================================================
--- trunk/dports/python/py-nltk/Portfile 2014-01-13 00:21:59 UTC (rev 115850)
+++ trunk/dports/python/py-nltk/Portfile 2014-01-13 01:51:16 UTC (rev 115851)
@@ -23,10 +23,13 @@
python.versions 26 27
if {${name} ne ${subport}} {
+ depends_build port:py${python.version}-setuptools
depends_lib port:py${python.version}-numpy \
port:py${python.version}-yaml \
port:py${python.version}-matplotlib
+ patchfiles patch-setup.py.diff
+
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
Added: trunk/dports/python/py-nltk/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-nltk/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py-nltk/files/patch-setup.py.diff 2014-01-13 01:51:16 UTC (rev 115851)
@@ -0,0 +1,12 @@
+--- setup.py.orig 2012-11-07 04:04:29.000000000 -0800
++++ setup.py 2014-01-11 14:11:40.000000000 -0800
+@@ -19,9 +19,6 @@
+ with open(version_file) as fh:
+ nltk_version = fh.read().strip()
+
+-import distribute_setup
+-distribute_setup.use_setuptools()
+-
+ from setuptools import setup, find_packages
+
+ #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140112/d6c34485/attachment.html>
More information about the macports-changes
mailing list