[38659] trunk/dports/textproc/hunspell

raimue at macports.org raimue at macports.org
Sun Jul 27 16:43:47 PDT 2008


Revision: 38659
          http://trac.macosforge.org/projects/macports/changeset/38659
Author:   raimue at macports.org
Date:     2008-07-27 16:43:46 -0700 (Sun, 27 Jul 2008)
Log Message:
-----------
textproc/hunspell:
Add 'hunspell-' as prefix to binaries; run autoreconf (also fixes mtree violation).
Closes #15991 (with permission from maintainer).

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

Added Paths:
-----------
    trunk/dports/textproc/hunspell/files/patch-hunspell-renameexes.diff

Modified: trunk/dports/textproc/hunspell/Portfile
===================================================================
--- trunk/dports/textproc/hunspell/Portfile	2008-07-27 23:03:32 UTC (rev 38658)
+++ trunk/dports/textproc/hunspell/Portfile	2008-07-27 23:43:46 UTC (rev 38659)
@@ -5,7 +5,7 @@
 
 name                        hunspell
 version                     1.2.2
-revision                    1
+revision                    2
 categories                  textproc
 maintainers                 openmaintainer jochen
 description                 Spell checker and morphological analyzer
@@ -25,8 +25,13 @@
 
 depends_lib                 port:gettext port:ncurses port:readline
 
-patchfiles                  patch-hunspell.cxx.diff
+patchfiles                  patch-hunspell.cxx.diff \
+                            patch-hunspell-renameexes.diff
 
+pre-configure {
+    system "cd ${worksrcpath} && autoreconf"
+}
+
 configure.cflags-append     -DLIBDIR=\\"$prefix/share/hunspell:/usr/share/myspell\\"
 configure.cxxflags-append   -DLIBDIR=\\"$prefix/share/hunspell:/usr/share/myspell\\"
 configure.args              --with-ui --with-readline

Added: trunk/dports/textproc/hunspell/files/patch-hunspell-renameexes.diff
===================================================================
--- trunk/dports/textproc/hunspell/files/patch-hunspell-renameexes.diff	                        (rev 0)
+++ trunk/dports/textproc/hunspell/files/patch-hunspell-renameexes.diff	2008-07-27 23:43:46 UTC (rev 38659)
@@ -0,0 +1,115 @@
+=== modified file 'src/tools/Makefile.am'
+--- src/tools/Makefile.am	2008-05-04 15:53:24 +0000
++++ src/tools/Makefile.am	2008-05-04 15:55:45 +0000
+@@ -1,4 +1,4 @@
+-bin_PROGRAMS=analyze chmorph example hunspell munch unmunch hzip hunzip
++bin_PROGRAMS=hunspell-analyze hunspell-chmorph hunspell-example hunspell hunspell-munch hunspell-unmunch hzip hunzip
+ 
+ INCLUDES=-I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers
+ 
+@@ -6,23 +6,23 @@
+ hunzip_SOURCES=hunzip.cxx
+ hunzip_LDADD = ../hunspell/libhunspell-1.2.la
+ 
+-munch_SOURCES=munch.c
+-unmunch_SOURCES=unmunch.c
++hunspell_munch_SOURCES=munch.c
++hunspell_unmunch_SOURCES=unmunch.c
+ include_HEADERS=munch.h unmunch.h
+ 
+-example_SOURCES=example.cxx
+-example_LDADD = ../hunspell/libhunspell-1.2.la
++hunspell_example_SOURCES=example.cxx
++hunspell_example_LDADD = ../hunspell/libhunspell-1.2.la
+ 
+ hunspell_SOURCES=hunspell.cxx
+ hunspell_LDADD = @LIBINTL@ ../hunspell/libhunspell-1.2.la \
+ 	../parsers/libparsers.a @CURSESLIB@ @READLINELIB@
+ 
+-analyze_SOURCES=analyze.cxx
+-analyze_LDADD = ../hunspell/libhunspell-1.2.la
+-
+-chmorph_SOURCES=chmorph.cxx
+-chmorph_LDADD = ../hunspell/libhunspell-1.2.la ../parsers/libparsers.a
+-
+-noinst_PROGRAMS=example
++hunspell_analyze_SOURCES=analyze.cxx
++hunspell_analyze_LDADD = ../hunspell/libhunspell-1.2.la
++
++hunspell_chmorph_SOURCES=chmorph.cxx
++hunspell_chmorph_LDADD = ../hunspell/libhunspell-1.2.la ../parsers/libparsers.a
++
++noinst_PROGRAMS=hunspell-example
+ 
+ EXTRA_DIST=makealias affixcompress
+
+=== modified file 'src/tools/example.cxx'
+--- src/tools/example.cxx	2008-05-04 15:53:24 +0000
++++ src/tools/example.cxx	2008-05-04 15:54:12 +0000
+@@ -17,8 +17,8 @@
+     /* first parse the command line options */
+ 
+     if (argc < 4) {
+-        fprintf(stderr,"example (now it works with more dictionary files):\n"); 
+-        fprintf(stderr,"example affix_file dictionary_file(s) file_of_words_to_check\n");
++        fprintf(stderr,"hunspell-example (now it works with more dictionary files):\n"); 
++        fprintf(stderr,"hunspell-example affix_file dictionary_file(s) file_of_words_to_check\n");
+         exit(1);
+     }
+   
+
+=== modified file 'src/tools/munch.c'
+--- src/tools/munch.c	2008-05-04 15:53:24 +0000
++++ src/tools/munch.c	2008-05-04 15:56:18 +0000
+@@ -42,14 +42,14 @@
+        wf = mystrdup(argv[1]);
+   } else {
+     fprintf(stderr,"correct syntax is:\n"); 
+-    fprintf(stderr,"munch word_list_file affix_file\n");
++    fprintf(stderr,"hunspell-munch word_list_file affix_file\n");
+     exit(1);
+   }
+   if (argv[2]) {
+        af = mystrdup(argv[2]);
+   } else {
+     fprintf(stderr,"correct syntax is:\n"); 
+-    fprintf(stderr,"munch word_list_file affix_file\n");
++    fprintf(stderr,"hunspell-munch word_list_file affix_file\n");
+     exit(1);
+   }
+ 
+
+=== modified file 'src/tools/unmunch.c'
+--- src/tools/unmunch.c	2008-05-04 15:53:24 +0000
++++ src/tools/unmunch.c	2008-05-04 15:56:39 +0000
+@@ -39,14 +39,14 @@
+        wf = mystrdup(argv[1]);
+   } else {
+     fprintf(stderr,"correct syntax is:\n"); 
+-    fprintf(stderr,"unmunch dic_file affix_file\n");
++    fprintf(stderr,"hunspell-unmunch dic_file affix_file\n");
+     exit(1);
+   }
+   if (argv[2]) {
+        af = mystrdup(argv[2]);
+   } else {
+     fprintf(stderr,"correct syntax is:\n"); 
+-    fprintf(stderr,"unmunch dic_file affix_file\n");
++    fprintf(stderr,"hunspell-unmunch dic_file affix_file\n");
+     exit(1);
+   }
+ 
+
+=== modified file 'tests/test.sh'
+--- tests/test.sh	2008-05-04 15:53:24 +0000
++++ tests/test.sh	2008-05-04 15:57:07 +0000
+@@ -34,7 +34,7 @@
+ shopt -s expand_aliases
+ 
+ alias hunspell='../src/tools/hunspell'
+-alias analyze='../src/tools/analyze'
++alias analyze='../src/tools/hunspell-analyze'
+ 
+ if [ "$VALGRIND" != "" ]; then
+   rm -f $TEMPDIR/test.pid*
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080727/8ca83172/attachment.html 


More information about the macports-changes mailing list