diff options
author | Kevin F. Quinn <kevquinn@gentoo.org> | 2006-05-18 12:37:19 +0000 |
---|---|---|
committer | Kevin F. Quinn <kevquinn@gentoo.org> | 2006-05-18 12:37:19 +0000 |
commit | 122fe14e75c8c61485dc4393bbcdd55bd67d8658 (patch) | |
tree | 5e2b648c49285dacdf2d0484ccf7d7326b7b1c61 /app-text/hunspell | |
parent | added to ~mips for testing (diff) | |
download | historical-122fe14e75c8c61485dc4393bbcdd55bd67d8658.tar.gz historical-122fe14e75c8c61485dc4393bbcdd55bd67d8658.tar.bz2 historical-122fe14e75c8c61485dc4393bbcdd55bd67d8658.zip |
Build library as .so rather than .a; resolves bugs #133583 and #126452; thanks to Hanno Meyer-Thurow and Flameeyes.
Package-Manager: portage-2.1_rc1-r2
Diffstat (limited to 'app-text/hunspell')
-rw-r--r-- | app-text/hunspell/ChangeLog | 10 | ||||
-rw-r--r-- | app-text/hunspell/Manifest | 50 | ||||
-rw-r--r-- | app-text/hunspell/files/digest-hunspell-1.1.4-r1 | 3 | ||||
-rw-r--r-- | app-text/hunspell/files/hunspell-1.1.4-libtool.patch | 103 | ||||
-rw-r--r-- | app-text/hunspell/files/hunspell-1.1.4-renameexes.patch | 114 | ||||
-rw-r--r-- | app-text/hunspell/hunspell-1.1.4-r1.ebuild | 71 |
6 files changed, 343 insertions, 8 deletions
diff --git a/app-text/hunspell/ChangeLog b/app-text/hunspell/ChangeLog index 0cb2b779c275..2e99ca10e40b 100644 --- a/app-text/hunspell/ChangeLog +++ b/app-text/hunspell/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-text/hunspell # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/ChangeLog,v 1.8 2006/05/18 00:35:46 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/ChangeLog,v 1.9 2006/05/18 12:37:19 kevquinn Exp $ + +*hunspell-1.1.4-r1 (18 May 2006) + + 18 May 2006; Kevin F. Quinn <kevquinn@gentoo.org> + +files/hunspell-1.1.4-libtool.patch, + +files/hunspell-1.1.4-renameexes.patch, +hunspell-1.1.4-r1.ebuild: + Build library as .so rather than .a; resolves bugs #133583 and #126452. + Thanks to Hanno Meyer-Thurow and the ever-present Flameeyes. 18 May 2006; Gustavo Zacarias <gustavoz@gentoo.org> hunspell-1.1.4.ebuild: Stable on sparc diff --git a/app-text/hunspell/Manifest b/app-text/hunspell/Manifest index 1d2ce4a7c617..e8a3131d3188 100644 --- a/app-text/hunspell/Manifest +++ b/app-text/hunspell/Manifest @@ -1,17 +1,53 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 002544e5af8aa012a4aebbf3eb7a5a02 ChangeLog 1267 -MD5 be212ae19f7148ac918390ec3dd62956 files/digest-hunspell-1.1.3 244 -MD5 2acdba27673f2a9db779932d38020c9b files/digest-hunspell-1.1.4 244 +AUX hunspell-1.1.3-renameexes.patch 4612 RMD160 e4dc3ab77daf10f63852aca121d07d777ed96cf6 SHA1 7ff89b2282f45434eb895be091dc46701a94460b SHA256 0386079314e941d443d57e650bd2aa84a63605ec2fadead474e576e7bb923939 size 4612 MD5 1d6c3ebe073637dc68dc5b3036177cb5 files/hunspell-1.1.3-renameexes.patch 4612 +RMD160 e4dc3ab77daf10f63852aca121d07d777ed96cf6 files/hunspell-1.1.3-renameexes.patch 4612 +SHA256 0386079314e941d443d57e650bd2aa84a63605ec2fadead474e576e7bb923939 files/hunspell-1.1.3-renameexes.patch 4612 +AUX hunspell-1.1.4-libtool.patch 3865 RMD160 b87ea7a9a8d692313235678bd8239314c6b7e65f SHA1 cf4cb83f9a5e047c6b147155c8c765d31ee34393 SHA256 78fec5450650428c78785c405e289252473602e71848f88fa04c51e81f597b63 size 3865 +MD5 64f447479c8d8b0b4c72a07debda18b2 files/hunspell-1.1.4-libtool.patch 3865 +RMD160 b87ea7a9a8d692313235678bd8239314c6b7e65f files/hunspell-1.1.4-libtool.patch 3865 +SHA256 78fec5450650428c78785c405e289252473602e71848f88fa04c51e81f597b63 files/hunspell-1.1.4-libtool.patch 3865 +AUX hunspell-1.1.4-renameexes.patch 4615 RMD160 d987d3b2b83324f5da9fc0666aa97dc75fcd2005 SHA1 c04f8ed956d6910a8c821315832cefe20d8fec8e SHA256 91bdcb9bcbffeb11ff20fd09ac780b44af79d8be42be3163469d3c1c29649583 size 4615 +MD5 16643338835908b307ac0da96bd2dbdb files/hunspell-1.1.4-renameexes.patch 4615 +RMD160 d987d3b2b83324f5da9fc0666aa97dc75fcd2005 files/hunspell-1.1.4-renameexes.patch 4615 +SHA256 91bdcb9bcbffeb11ff20fd09ac780b44af79d8be42be3163469d3c1c29649583 files/hunspell-1.1.4-renameexes.patch 4615 +DIST hunspell-1.1.3.tar.gz 437469 RMD160 b04ed38e54b7773e805760906c5d242df1888d7c SHA256 f49f648c3f1d22d54f11206734e88632a66547e6c20dfb08a2aa747e3f70d86e size 437469 +DIST hunspell-1.1.4.tar.gz 438667 RMD160 a90ded6b996d8b2d575268e8a4b025e92b85f378 SHA256 8d39c03beb71ec1482d2fdbfc2d5b7690c8a70fb6da4885369752ee0d2e3a635 size 438667 +EBUILD hunspell-1.1.3.ebuild 1710 RMD160 0ea1abe5aad779201474b96dc6b8c45c337279f9 SHA1 4cd396da07111b9b2ef6adc7092682358c73ec72 SHA256 80bbba53fcb8822faa4e4ff42ab0627252181320ad0f417e57882432c44fe915 size 1710 MD5 6c27bd8351e45b24f183ddca92c7fba8 hunspell-1.1.3.ebuild 1710 +RMD160 0ea1abe5aad779201474b96dc6b8c45c337279f9 hunspell-1.1.3.ebuild 1710 +SHA256 80bbba53fcb8822faa4e4ff42ab0627252181320ad0f417e57882432c44fe915 hunspell-1.1.3.ebuild 1710 +EBUILD hunspell-1.1.4-r1.ebuild 2225 RMD160 6a3a919811f733cd37d292995e0fee49cd603977 SHA1 7950393249411432dc1684c34cbbfba2277cce93 SHA256 044b153974eb8cd6f8b7cb3acc85b220f35ee4def41e1a061e5c437ace09be7f size 2225 +MD5 c0628a3473d3894b039063a8efe1b99b hunspell-1.1.4-r1.ebuild 2225 +RMD160 6a3a919811f733cd37d292995e0fee49cd603977 hunspell-1.1.4-r1.ebuild 2225 +SHA256 044b153974eb8cd6f8b7cb3acc85b220f35ee4def41e1a061e5c437ace09be7f hunspell-1.1.4-r1.ebuild 2225 +EBUILD hunspell-1.1.4.ebuild 1893 RMD160 473544203aa7e9f7da814fd4c79d820df887bd92 SHA1 6f848924aa17e54c691c5bc1e2cd06c6d31f2969 SHA256 c6bbd230bd792555edae63813c8b69f1c35aa8979ca90b24065e6427e1d2d7ea size 1893 MD5 f0c20e82682324d4cb83e2c47dab52a9 hunspell-1.1.4.ebuild 1893 +RMD160 473544203aa7e9f7da814fd4c79d820df887bd92 hunspell-1.1.4.ebuild 1893 +SHA256 c6bbd230bd792555edae63813c8b69f1c35aa8979ca90b24065e6427e1d2d7ea hunspell-1.1.4.ebuild 1893 +MISC ChangeLog 1599 RMD160 1521271cf3281547169053d1790bd21a4ba5c8e7 SHA1 f88bfa7f67d66dd2715482c4f0bb19d02ed0034c SHA256 6c8caa321fb9070e33b9a62f19cc35513e3632416ad02013a4dabb37aa0fef70 size 1599 +MD5 be30c6b0b514859703ee15e1345b2abc ChangeLog 1599 +RMD160 1521271cf3281547169053d1790bd21a4ba5c8e7 ChangeLog 1599 +SHA256 6c8caa321fb9070e33b9a62f19cc35513e3632416ad02013a4dabb37aa0fef70 ChangeLog 1599 +MISC metadata.xml 222 RMD160 a74fc306077c440fea351793a03168651fb28f13 SHA1 45da96e6af3a3e7898ca55691d0e07583b6c75bf SHA256 5e7b34981ea08b001bd6eac085d6876fbeef6a4fdd91575e4e9f988cadf4f03f size 222 MD5 b86e3c93f969dbb4f433611cb0f6b0b0 metadata.xml 222 +RMD160 a74fc306077c440fea351793a03168651fb28f13 metadata.xml 222 +SHA256 5e7b34981ea08b001bd6eac085d6876fbeef6a4fdd91575e4e9f988cadf4f03f metadata.xml 222 +MD5 be212ae19f7148ac918390ec3dd62956 files/digest-hunspell-1.1.3 244 +RMD160 6a59fab8daa843fa7168320fedbd523d90ab4ad2 files/digest-hunspell-1.1.3 244 +SHA256 8e47ce611c7cb1cac7a0ab288ad9c297fd0888be9363455f75e189fcb6520034 files/digest-hunspell-1.1.3 244 +MD5 2acdba27673f2a9db779932d38020c9b files/digest-hunspell-1.1.4 244 +RMD160 ed8fcd1f97b2840c563fa8aeebadf1f943a42249 files/digest-hunspell-1.1.4 244 +SHA256 79ec82c9c39e4a5050b2167c57df3360dd2ce8108230df591025f2974c981300 files/digest-hunspell-1.1.4 244 +MD5 2acdba27673f2a9db779932d38020c9b files/digest-hunspell-1.1.4-r1 244 +RMD160 ed8fcd1f97b2840c563fa8aeebadf1f943a42249 files/digest-hunspell-1.1.4-r1 244 +SHA256 79ec82c9c39e4a5050b2167c57df3360dd2ce8108230df591025f2974c981300 files/digest-hunspell-1.1.4-r1 244 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2.2-ecc0.1.6 (GNU/Linux) +Version: GnuPG v1.4.2.2 (GNU/Linux) -iD8DBQFEa8GDKRy60XGEcJIRAgpjAJ9ALJECoLbgomNmJoRwlYLBJrRPtACffgbb -DXSo9J55QxQ6JQ3oRfsD7RU= -=96Om +iD8DBQFEbGyeZfNLSOUrp0sRAgpNAJ9cIEzb6fkgku5PdFxPjhwcRUR+pgCdFDae +GuVIlgCTyeuHV5fWRiMlbis= +=5ksj -----END PGP SIGNATURE----- diff --git a/app-text/hunspell/files/digest-hunspell-1.1.4-r1 b/app-text/hunspell/files/digest-hunspell-1.1.4-r1 new file mode 100644 index 000000000000..1bd701b1a28f --- /dev/null +++ b/app-text/hunspell/files/digest-hunspell-1.1.4-r1 @@ -0,0 +1,3 @@ +MD5 4cf2dfb89dd58392ad5a1183c69eb628 hunspell-1.1.4.tar.gz 438667 +RMD160 a90ded6b996d8b2d575268e8a4b025e92b85f378 hunspell-1.1.4.tar.gz 438667 +SHA256 8d39c03beb71ec1482d2fdbfc2d5b7690c8a70fb6da4885369752ee0d2e3a635 hunspell-1.1.4.tar.gz 438667 diff --git a/app-text/hunspell/files/hunspell-1.1.4-libtool.patch b/app-text/hunspell/files/hunspell-1.1.4-libtool.patch new file mode 100644 index 000000000000..e7915e032b11 --- /dev/null +++ b/app-text/hunspell/files/hunspell-1.1.4-libtool.patch @@ -0,0 +1,103 @@ +Index: hunspell-1.1.4/configure.ac +=================================================================== +--- hunspell-1.1.4.orig/configure.ac ++++ hunspell-1.1.4/configure.ac +@@ -23,7 +23,7 @@ AC_CONFIG_HEADER([config.h]) + # Checks for programs. + AC_PROG_CXX + AC_PROG_CC +-AC_PROG_RANLIB ++AC_PROG_LIBTOOL + + # Checks for libraries. + +Index: hunspell-1.1.4/src/hunspell/Makefile.am +=================================================================== +--- hunspell-1.1.4.orig/src/hunspell/Makefile.am ++++ hunspell-1.1.4/src/hunspell/Makefile.am +@@ -1,5 +1,5 @@ +-lib_LIBRARIES = libhunspell.a +-libhunspell_a_SOURCES=affentry.cxx affixmgr.cxx csutil.cxx \ ++lib_LTLIBRARIES = libhunspell.la ++libhunspell_la_SOURCES=affentry.cxx affixmgr.cxx csutil.cxx \ + dictmgr.cxx hashmgr.cxx hunspell.cxx \ + suggestmgr.cxx utf_info.cxx license.myspell license.hunspell + +Index: hunspell-1.1.4/src/hunspell/utf_info.cxx +=================================================================== +--- hunspell-1.1.4.orig/src/hunspell/utf_info.cxx ++++ hunspell-1.1.4/src/hunspell/utf_info.cxx +@@ -1,6 +1,6 @@ + #include "csutil.hxx" + /* fields: Unicode letter, toupper, tolower */ +-struct unicode_info utf_lst[] = { ++static struct unicode_info utf_lst[] = { + { 0x0041, 0x0041, 0x0061 }, + { 0x0042, 0x0042, 0x0062 }, + { 0x0043, 0x0043, 0x0063 }, +Index: hunspell-1.1.4/src/parsers/Makefile.am +=================================================================== +--- hunspell-1.1.4.orig/src/parsers/Makefile.am ++++ hunspell-1.1.4/src/parsers/Makefile.am +@@ -1,7 +1,8 @@ +-lib_LIBRARIES=libparsers.a +-libparsers_a_SOURCES=firstparser.cxx htmlparser.cxx \ ++lib_LTLIBRARIES=libparsers.la ++libparsers_la_SOURCES=firstparser.cxx htmlparser.cxx \ + latexparser.cxx manparser.cxx \ + textparser.cxx ++libparsers_la_LIBADD = ../hunspell/libhunspell.la + + #include_hunspelldir + include_HEADERS = firstparser.hxx \ +@@ -11,7 +12,6 @@ include_HEADERS = firstparser.hxx \ + textparser.hxx + + noinst_PROGRAMS=testparser +-testparser_SOURCES=firstparser.cxx firstparser.hxx htmlparser.cxx htmlparser.hxx latexparser.cxx latexparser.hxx manparser.cxx manparser.hxx testparser.cxx textparser.cxx textparser.hxx ++testparser_SOURCES=testparser.cxx ++testparser_LDADD = libparsers.la + +-# need mystrdup() +-LDADD = ../hunspell/libhunspell.a +Index: hunspell-1.1.4/src/tools/Makefile.am +=================================================================== +--- hunspell-1.1.4.orig/src/tools/Makefile.am ++++ hunspell-1.1.4/src/tools/Makefile.am +@@ -7,18 +7,18 @@ unmunch_SOURCES=unmunch.c + include_HEADERS=munch.h unmunch.h + + example_SOURCES=example.cxx +-example_LDADD = ../hunspell/libhunspell.a ++example_LDADD = ../hunspell/libhunspell.la + + hunspell_SOURCES=hunspell.cxx +-hunspell_LDADD = @LIBINTL@ ../hunspell/libhunspell.a \ +- ../parsers/libparsers.a @CURSESLIB@ @READLINELIB@ ++hunspell_LDADD = @LIBINTL@ ../hunspell/libhunspell.la \ ++ ../parsers/libparsers.la @CURSESLIB@ @READLINELIB@ + + hunmorph_SOURCES=hunmorph.cxx +-hunmorph_LDADD = ../hunspell/libhunspell.a ++hunmorph_LDADD = ../hunspell/libhunspell.la + #hunmorph_INCLUDES=-I${top_srcdir}/src/hunspell + + hunstem_SOURCES=hunstem.cxx +-hunstem_LDADD = ../hunspell/libhunspell.a ++hunstem_LDADD = ../hunspell/libhunspell.la + #hunstem_INCLUDES=-I${top_srcdir}/src/hunspell + + EXTRA_DIST=makealias +Index: hunspell-1.1.4/po/Makefile.in.in +=================================================================== +--- hunspell-1.1.4.orig/po/Makefile.in.in ++++ hunspell-1.1.4/po/Makefile.in.in +@@ -27,7 +27,7 @@ gettextsrcdir = $(datadir)/gettext/po + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ + MKINSTALLDIRS = @MKINSTALLDIRS@ +-mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac` ++mkinstalldirs = @MKINSTALLDIRS@ + + GMSGFMT = @GMSGFMT@ + MSGFMT = @MSGFMT@ diff --git a/app-text/hunspell/files/hunspell-1.1.4-renameexes.patch b/app-text/hunspell/files/hunspell-1.1.4-renameexes.patch new file mode 100644 index 000000000000..2e5c45cd7d46 --- /dev/null +++ b/app-text/hunspell/files/hunspell-1.1.4-renameexes.patch @@ -0,0 +1,114 @@ +diff -u -ur hunspell-1.1.3.orig/src/tools/Makefile.am hunspell-1.1.3/src/tools/Makefile.am +--- hunspell-1.1.3.orig/src/tools/Makefile.am 2006-01-27 19:32:19.000000000 +0100 ++++ hunspell-1.1.3/src/tools/Makefile.am 2006-01-27 19:33:05.000000000 +0100 +@@ -1,13 +1,13 @@ +-bin_PROGRAMS=munch unmunch example hunspell hunmorph hunstem ++bin_PROGRAMS=hunspell-munch hunspell-unmunch hunspell-example hunspell hunmorph hunstem + + INCLUDES=-I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers + +-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.la ++hunspell_example_SOURCES=example.cxx ++hunspell_example_LDADD = ../hunspell/libhunspell.la + + hunspell_SOURCES=hunspell.cxx + hunspell_LDADD = @LIBINTL@ ../hunspell/libhunspell.la \ +diff -u -ur hunspell-1.1.3.orig/src/tools/example.cxx hunspell-1.1.3/src/tools/example.cxx +--- hunspell-1.1.3.orig/src/tools/example.cxx 2006-01-27 19:32:19.000000000 +0100 ++++ hunspell-1.1.3/src/tools/example.cxx 2006-01-27 19:33:31.000000000 +0100 +@@ -24,21 +24,21 @@ + af = mystrdup(argv[1]); + } else { + fprintf(stderr,"correct syntax is:\n"); +- fprintf(stderr,"example affix_file dictionary_file file_of_words_to_check\n"); ++ fprintf(stderr,"hunspell-example affix_file dictionary_file file_of_words_to_check\n"); + exit(1); + } + if (argv[2]) { + df = mystrdup(argv[2]); + } else { + fprintf(stderr,"correct syntax is:\n"); +- fprintf(stderr,"example affix_file dictionary_file file_of_words_to_check\n"); ++ fprintf(stderr,"hunspell-example affix_file dictionary_file file_of_words_to_check\n"); + exit(1); + } + if (argv[3]) { + wtc = mystrdup(argv[3]); + } else { + fprintf(stderr,"correct syntax is:\n"); +- fprintf(stderr,"example affix_file dictionary_file file_of_words_to_check\n"); ++ fprintf(stderr,"hunspell-example affix_file dictionary_file file_of_words_to_check\n"); + exit(1); + } + +diff -u -ur hunspell-1.1.3.orig/src/tools/hunmorph.cxx hunspell-1.1.3/src/tools/hunmorph.cxx +--- hunspell-1.1.3.orig/src/tools/hunmorph.cxx 2006-01-27 19:32:19.000000000 +0100 ++++ hunspell-1.1.3/src/tools/hunmorph.cxx 2006-01-27 19:35:18.000000000 +0100 +@@ -26,7 +26,7 @@ + + for (i = 1; i < 3; i++) + if (!argv[i]) { +- fprintf(stderr, "correct syntax is:\nexample affix_file"); ++ fprintf(stderr, "correct syntax is:\nhunmorph affix_file"); + fprintf(stderr, " dictionary_file file_of_words_to_check\n"); + exit(1); + } +diff -u -ur hunspell-1.1.3.orig/src/tools/hunstem.cxx hunspell-1.1.3/src/tools/hunstem.cxx +--- hunspell-1.1.3.orig/src/tools/hunstem.cxx 2006-01-27 19:32:19.000000000 +0100 ++++ hunspell-1.1.3/src/tools/hunstem.cxx 2006-01-27 19:35:28.000000000 +0100 +@@ -25,7 +25,7 @@ + + for (i = 1; i < 3; i++) + if (!argv[i]) { +- fprintf(stderr, "correct syntax is:\nexample affix_file"); ++ fprintf(stderr, "correct syntax is:\nhunstem affix_file"); + fprintf(stderr, " dictionary_file file_of_words_to_check\n"); + exit(1); + } +diff -u -ur hunspell-1.1.3.orig/src/tools/munch.c hunspell-1.1.3/src/tools/munch.c +--- hunspell-1.1.3.orig/src/tools/munch.c 2006-01-27 19:32:19.000000000 +0100 ++++ hunspell-1.1.3/src/tools/munch.c 2006-01-27 19:33:56.000000000 +0100 +@@ -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); + } + +diff -u -ur hunspell-1.1.3.orig/src/tools/unmunch.c hunspell-1.1.3/src/tools/unmunch.c +--- hunspell-1.1.3.orig/src/tools/unmunch.c 2006-01-27 19:32:19.000000000 +0100 ++++ hunspell-1.1.3/src/tools/unmunch.c 2006-01-27 19:34:10.000000000 +0100 +@@ -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); + } + diff --git a/app-text/hunspell/hunspell-1.1.4-r1.ebuild b/app-text/hunspell/hunspell-1.1.4-r1.ebuild new file mode 100644 index 000000000000..644f3a84d42b --- /dev/null +++ b/app-text/hunspell/hunspell-1.1.4-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/hunspell-1.1.4-r1.ebuild,v 1.1 2006/05/18 12:37:19 kevquinn Exp $ + +inherit eutils multilib autotools libtool + +DESCRIPTION="Hunspell spell checker - an improved replacement for myspell in OOo." +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +HOMEPAGE="http://hunspell.sourceforge.net/" + +SLOT="0" +LICENSE="MPL-1.1 GPL-2 LGPL-2.1" +IUSE="ncurses readline" +KEYWORDS="~ppc ~sparc ~x86" + +DEPEND="readline? ( sys-libs/readline ) + ncurses? ( sys-libs/ncurses ) + sys-devel/gettext" + +src_unpack() { + unpack ${A} + cd ${S} + sed -i -e 's:tail +:tail -n +:' ${S}/tests/test.sh ||\ + die "Failed to fix-up tail for POSIX compliance" + # Rework to use libtool, so as to get shared libraries + # where appropriate, instead of the archive-only approach + # taken upstream. + epatch "${FILESDIR}/${P}-libtool.patch" + # Upstream package creates executables 'example', 'munch' + # and 'unmunch' which are too generic to be placed in + # /usr/bin - this patch prefixes them with 'hunspell-'. + # Also includes a small change for libtool. + epatch "${FILESDIR}/${P}-renameexes.patch" + + # Makefile.am modified, libtool added, hence autoreconfi + # and elibtoolize. + WANT_AUTOMAKE="1.9" eautoreconf + elibtoolize +} + +src_compile() { + # I wanted to put the include files in /usr/include/hunspell + # but this means the openoffice build won't find them. + econf \ + --includedir=/usr/include/hunspell \ + $(use_with readline readline) \ + $(use_with ncurses ui) \ + || die "econf failed" + + emake || die "emake failed" +} + +src_test() { + # One of the tests doesn't like LC_ALL being set to encodings + # capable of expressing beta-S, so we simply clear it. + # bug #125375 + LC_ALL="C" make check +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + dodoc AUTHORS ChangeLog NEWS README THANKS TODO + # hunspell is derived from myspell + dodoc AUTHORS.myspell README.myspell license.myspell +} + +pkg_postinst() { + einfo "To use this package you will also need a dictionary." + einfo "Hunspell uses myspell format dictionaries; find them" + einfo "in the app-dicts category as myspell-<LANG>." +} |