summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin F. Quinn <kevquinn@gentoo.org>2006-01-29 13:35:10 +0000
committerKevin F. Quinn <kevquinn@gentoo.org>2006-01-29 13:35:10 +0000
commitb65aa55fa1671b11a7d3c8c0426a67c6d596ecf0 (patch)
tree66a31f609420a7e74d5fca0a35e562d79b22415a /app-text/hunspell
parentdont use einstall (diff)
downloadgentoo-2-b65aa55fa1671b11a7d3c8c0426a67c6d596ecf0.tar.gz
gentoo-2-b65aa55fa1671b11a7d3c8c0426a67c6d596ecf0.tar.bz2
gentoo-2-b65aa55fa1671b11a7d3c8c0426a67c6d596ecf0.zip
Initial commit of hunspell (bug #114482)
(Portage version: 2.0.54)
Diffstat (limited to 'app-text/hunspell')
-rw-r--r--app-text/hunspell/ChangeLog11
-rw-r--r--app-text/hunspell/Manifest5
-rw-r--r--app-text/hunspell/files/digest-hunspell-1.1.31
-rw-r--r--app-text/hunspell/files/hunspell-1.1.3-renameexes.patch114
-rw-r--r--app-text/hunspell/hunspell-1.1.3.ebuild55
-rw-r--r--app-text/hunspell/metadata.xml6
6 files changed, 192 insertions, 0 deletions
diff --git a/app-text/hunspell/ChangeLog b/app-text/hunspell/ChangeLog
new file mode 100644
index 000000000000..c9aec7e6c3b8
--- /dev/null
+++ b/app-text/hunspell/ChangeLog
@@ -0,0 +1,11 @@
+# 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.1 2006/01/29 13:35:10 kevquinn Exp $
+
+*hunspell-1.1.3 (29 Jan 2006)
+
+ 29 Jan 2006; Kevin F. Quinn <kevquinn@gentoo.org>
+ +files/hunspell-1.1.3-renameexes.patch, +metadata.xml,
+ +hunspell-1.1.3.ebuild:
+ Initial commit of hunspell (bug #114482)
+
diff --git a/app-text/hunspell/Manifest b/app-text/hunspell/Manifest
new file mode 100644
index 000000000000..6240b1e51271
--- /dev/null
+++ b/app-text/hunspell/Manifest
@@ -0,0 +1,5 @@
+MD5 2fc9a80dcdaae2d0338f6e4d33832005 files/digest-hunspell-1.1.2 66
+MD5 2ee23fc18433d16280f97a3d381ae78a files/digest-hunspell-1.1.3 66
+MD5 1d6c3ebe073637dc68dc5b3036177cb5 files/hunspell-1.1.3-renameexes.patch 4612
+MD5 9180cdc007eee045ed4a9319ee01835a hunspell-1.1.3.ebuild 1610
+MD5 b86e3c93f969dbb4f433611cb0f6b0b0 metadata.xml 222
diff --git a/app-text/hunspell/files/digest-hunspell-1.1.3 b/app-text/hunspell/files/digest-hunspell-1.1.3
new file mode 100644
index 000000000000..db90b72c4dd6
--- /dev/null
+++ b/app-text/hunspell/files/digest-hunspell-1.1.3
@@ -0,0 +1 @@
+MD5 5074b388e3cec32255b27b24f75d7f36 hunspell-1.1.3.tar.gz 437469
diff --git a/app-text/hunspell/files/hunspell-1.1.3-renameexes.patch b/app-text/hunspell/files/hunspell-1.1.3-renameexes.patch
new file mode 100644
index 000000000000..4b1b3aec4372
--- /dev/null
+++ b/app-text/hunspell/files/hunspell-1.1.3-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.a
++hunspell_example_SOURCES=example.cxx
++hunspell_example_LDADD = ../hunspell/libhunspell.a
+
+ hunspell_SOURCES=hunspell.cxx
+ hunspell_LDADD = @LIBINTL@ ../hunspell/libhunspell.a \
+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.3.ebuild b/app-text/hunspell/hunspell-1.1.3.ebuild
new file mode 100644
index 000000000000..375701b48513
--- /dev/null
+++ b/app-text/hunspell/hunspell-1.1.3.ebuild
@@ -0,0 +1,55 @@
+# 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.3.ebuild,v 1.1 2006/01/29 13:35:10 kevquinn Exp $
+
+inherit eutils multilib
+
+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="~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"
+ # Upstream package creates executables 'example', 'munch'
+ # and 'unmunch' which are too generic to be placed in
+ # /usr/bin - this patch prefixes them with 'hunspell-'.
+ # It modifies a Makefile.am file, hence autoreconf.
+ epatch ${FILESDIR}/hunspell-1.1.3-renameexes.patch
+ autoreconf
+}
+
+src_compile() {
+ # I wanted to put the include files in /usr/include/hunspell
+ # but this means the openoffice build won't find them.
+ econf \
+ $(use_with readline readline) \
+ $(use_with ncurses ui) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "emake 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>."
+}
diff --git a/app-text/hunspell/metadata.xml b/app-text/hunspell/metadata.xml
new file mode 100644
index 000000000000..68a044041053
--- /dev/null
+++ b/app-text/hunspell/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>app-dicts</herd>
+<maintainer><email>kevquinn@gentoo.org</email></maintainer>
+</pkgmetadata>