[102179] trunk/dports/python
jmr at macports.org
jmr at macports.org
Tue Jan 29 02:06:27 PST 2013
Revision: 102179
https://trac.macports.org/changeset/102179
Author: jmr at macports.org
Date: 2013-01-29 02:06:26 -0800 (Tue, 29 Jan 2013)
Log Message:
-----------
py*-nltk: unify
Modified Paths:
--------------
trunk/dports/python/py-nltk/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-nltk/
trunk/dports/python/py26-nltk/
trunk/dports/python/py27-nltk/
Modified: trunk/dports/python/py-nltk/Portfile
===================================================================
--- trunk/dports/python/py-nltk/Portfile 2013-01-29 10:00:29 UTC (rev 102178)
+++ trunk/dports/python/py-nltk/Portfile 2013-01-29 10:06:26 UTC (rev 102179)
@@ -2,10 +2,9 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-nltk
-epoch 1
version 2.0.1rc1
categories python textproc
platforms darwin
@@ -21,16 +20,20 @@
checksums sha1 4cd2b834875db6df2662a86a35f90d1e9bb8c1ce \
rmd160 2ae4a490b73a7d0dc49412a621ed8223761619ec
-depends_lib port:py24-numpy \
- port:py24-matplotlib \
- port:py24-yaml
+python.versions 24 25 26 27
-post-destroot {
- set docdir ${destroot}${prefix}/share/doc/${name}-${version}
- xinstall -d ${docdir}
- xinstall -m 644 -W ${worksrcpath} \
- LICENSE.txt \
- README.txt \
- INSTALL.txt \
- ${docdir}
+if {$subport != $name} {
+ depends_lib port:py${python.version}-numpy \
+ port:py${python.version}-matplotlib \
+ port:py${python.version}-yaml
+
+ post-destroot {
+ set docdir ${destroot}${prefix}/share/doc/${subport}
+ xinstall -d ${docdir}
+ xinstall -m 644 -W ${worksrcpath} \
+ LICENSE.txt \
+ README.txt \
+ INSTALL.txt \
+ ${docdir}
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130129/86f01b40/attachment.html>
More information about the macports-changes
mailing list