[40574] trunk/dports/textproc/wordnet/Portfile

pguyot at kallisys.net pguyot at kallisys.net
Tue Oct 7 06:32:37 PDT 2008


Revision: 40574
          http://trac.macports.org/changeset/40574
Author:   pguyot at kallisys.net
Date:     2008-10-07 06:32:35 -0700 (Tue, 07 Oct 2008)
Log Message:
-----------
textproc/wordnet: Reorganize files and provide a dynamic library (so does FreeBSD's port)

Modified Paths:
--------------
    trunk/dports/textproc/wordnet/Portfile

Modified: trunk/dports/textproc/wordnet/Portfile
===================================================================
--- trunk/dports/textproc/wordnet/Portfile	2008-10-07 11:13:31 UTC (rev 40573)
+++ trunk/dports/textproc/wordnet/Portfile	2008-10-07 13:32:35 UTC (rev 40574)
@@ -4,10 +4,11 @@
 
 name                wordnet
 version             3.0
+revision            1
 categories          textproc
 maintainers         pguyot at kallisys.net openmaintainer
 description         Lexical database for the English language
-long_description    WordNet\xAE is a large lexical database of English, developed \
+long_description    WordNet® is a large lexical database of English, developed \
                     under the direction of George A. Miller. Nouns, verbs, \
                     adjectives and adverbs are grouped into sets of cognitive \
                     synonyms (synsets), each expressing a distinct concept. \
@@ -28,6 +29,25 @@
 depends_lib         port:tcl \
                     port:tk
 
+post-patch {
+    reinplace "s|/usr/local/WordNet-3.0/dict|${prefix}/share/WordNet-3.0/dict|g" ${worksrcpath}/include/wn.h
+}
+
 configure.args      --mandir=${prefix}/share/man
+post-configure {
+    reinplace "s|${prefix}/dict|${prefix}/share/WordNet-3.0/dict|g" ${worksrcpath}/config.h
+}
 
-destroot.violate_mtree  yes
+# Build a shared library (so does FreeBSD's port).
+post-build {
+    system "gcc -fPIC -dynamic -fno-common -bundle -undefined suppress -flat_namespace ${worksrcpath}/lib/*.o -o ${worksrcpath}/lib/libWN.dylib"
+}
+
+destroot.args-append    dictdir=${prefix}/share/WordNet-3.0/dict \
+                        htmldir=${prefix}/share/WordNet-3.0/doc/html \
+                        psdir=${prefix}/share/WordNet-3.0/doc/ps \
+                        pdfdir=${prefix}/share/WordNet-3.0/doc/pdf
+
+post-destroot {
+    xinstall -m 644 ${worksrcpath}/lib/libWN.dylib ${destroot}${prefix}/lib/
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081007/6cc207a8/attachment.html 


More information about the macports-changes mailing list