[40575] trunk/dports/textproc/wordnet

pguyot at kallisys.net pguyot at kallisys.net
Tue Oct 7 06:51:49 PDT 2008


Revision: 40575
          http://trac.macports.org/changeset/40575
Author:   pguyot at kallisys.net
Date:     2008-10-07 06:51:48 -0700 (Tue, 07 Oct 2008)
Log Message:
-----------
textproc/wordnet: fix the shared library

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

Added Paths:
-----------
    trunk/dports/textproc/wordnet/files/
    trunk/dports/textproc/wordnet/files/patch-lib-wnrtl.c.diff

Modified: trunk/dports/textproc/wordnet/Portfile
===================================================================
--- trunk/dports/textproc/wordnet/Portfile	2008-10-07 13:32:35 UTC (rev 40574)
+++ trunk/dports/textproc/wordnet/Portfile	2008-10-07 13:51:48 UTC (rev 40575)
@@ -4,7 +4,7 @@
 
 name                wordnet
 version             3.0
-revision            1
+revision            2
 categories          textproc
 maintainers         pguyot at kallisys.net openmaintainer
 description         Lexical database for the English language
@@ -28,6 +28,7 @@
 
 depends_lib         port:tcl \
                     port:tk
+patchfiles          patch-lib-wnrtl.c.diff
 
 post-patch {
     reinplace "s|/usr/local/WordNet-3.0/dict|${prefix}/share/WordNet-3.0/dict|g" ${worksrcpath}/include/wn.h
@@ -40,7 +41,7 @@
 
 # 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"
+    system "gcc -dynamiclib ${worksrcpath}/lib/*.o -o ${worksrcpath}/lib/libWN.dylib"
 }
 
 destroot.args-append    dictdir=${prefix}/share/WordNet-3.0/dict \

Added: trunk/dports/textproc/wordnet/files/patch-lib-wnrtl.c.diff
===================================================================
--- trunk/dports/textproc/wordnet/files/patch-lib-wnrtl.c.diff	                        (rev 0)
+++ trunk/dports/textproc/wordnet/files/patch-lib-wnrtl.c.diff	2008-10-07 13:51:48 UTC (rev 40575)
@@ -0,0 +1,11 @@
+--- lib/wnrtl.c.orig	2008-10-07 15:48:34.000000000 +0200
++++ lib/wnrtl.c	2008-10-07 15:47:43.000000000 +0200
+@@ -11,7 +11,7 @@
+ 
+ /* Search code variables and flags */
+ 
+-SearchResults wnresults;	/* structure containing results of search */
++SearchResults wnresults = {};	/* structure containing results of search */
+ 
+ int fnflag = 0;			/* if set, print lex filename after sense */
+ int dflag = 1;			/* if set, print definitional glosses */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081007/db121e5e/attachment.html 


More information about the macports-changes mailing list