[100767] trunk/dports/python/py-wordnet/Portfile

jmr at macports.org jmr at macports.org
Sun Dec 23 13:46:25 PST 2012


Revision: 100767
          https://trac.macports.org/changeset/100767
Author:   jmr at macports.org
Date:     2012-12-23 13:46:25 -0800 (Sun, 23 Dec 2012)
Log Message:
-----------
py-wordnet: use unified portgroup, license, noarch

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

Modified: trunk/dports/python/py-wordnet/Portfile
===================================================================
--- trunk/dports/python/py-wordnet/Portfile	2012-12-23 16:43:44 UTC (rev 100766)
+++ trunk/dports/python/py-wordnet/Portfile	2012-12-23 21:46:25 UTC (rev 100767)
@@ -1,13 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-wordnet
 version			1.4
 revision		1
-categories		python
+license			Artistic-1 MIT
 platforms		darwin freebsd
+supported_archs	noarch
 maintainers		nomaintainer
 description		Python interface to the (included) WordNet database
 long_description	PyWordNet is a Python interface to the WordNet \
@@ -17,28 +18,33 @@
 
 homepage		http://pywordnet.sourceforge.net/
 master_sites	sourceforge:pywordnet:source \
-				ftp://ftp.cogsci.princeton.edu/pub/wordnet/1.7.1:data
-distfiles		pywordnet-${version}${extract.suffix}:source \
-				WordNet-1.7.1${extract.suffix}:data
-checksums		pywordnet-${version}${extract.suffix} \
-					md5 791c796699d4c2cd6bd37ec32a232561 \
-				WordNet-1.7.1${extract.suffix} \
-					md5 5c8e569339cf7d8e727d884234365508
-patchfiles		patch-wordnet.py.diff
+				http://wordnetcode.princeton.edu/1.7.1:data
 
-worksrcdir		pywordnet-${version}
+python.versions	24
 
-post-patch	{
-	reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/wordnet.py
+if {$subport != $name} {
+    distfiles		pywordnet-${version}${extract.suffix}:source \
+                    WordNet-1.7.1${extract.suffix}:data
+    checksums		pywordnet-${version}${extract.suffix} \
+                        md5 791c796699d4c2cd6bd37ec32a232561 \
+                    WordNet-1.7.1${extract.suffix} \
+                        md5 5c8e569339cf7d8e727d884234365508
+    patchfiles		patch-wordnet.py.diff
+    
+    worksrcdir		pywordnet-${version}
+    
+    post-patch	{
+        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/wordnet.py
+    }
+    
+    post-destroot	{
+        xinstall -d -m 755 ${destroot}${prefix}/share/${subport}
+        xinstall -m 644 -W ${workpath}/WordNet-1.7.1/dict adj.exc adv.exc \
+            cntlist cntlist.rev data.adj data.adv data.noun data.verb \
+            index.adj index.adv index.noun index.sense index.verb lexnames \
+            noun.exc sentidx.vrb sents.vrb verb.exc \
+            ${destroot}${prefix}/share/${subport}
+        xinstall -m 644 -W ${build.dir} CHANGES.txt INSTALL.txt LICENSE.txt \
+            README.txt index.html ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-
-post-destroot	{
-	xinstall -d -m 755 ${destroot}${prefix}/share/${name}
-	xinstall -m 644 -W ${workpath}/WordNet-1.7.1/dict adj.exc adv.exc \
-		cntlist cntlist.rev data.adj data.adv data.noun data.verb \
-		index.adj index.adv index.noun index.sense index.verb lexnames \
-		noun.exc sentidx.vrb sents.vrb verb.exc \
-		${destroot}${prefix}/share/${name}
-	xinstall -m 644 -W ${build.dir} CHANGES.txt INSTALL.txt LICENSE.txt \
-		README.txt index.html ${destroot}${prefix}/share/doc/${name}
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121223/82d0f85c/attachment.html>


More information about the macports-changes mailing list