Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial build of package app-text/hunspell
Release 1.3.4
- Loading branch information
Showing
5 changed files
with
227 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
AUX hunspell-1.4-renameexes.patch 5161 SHA256 578d66786b132ebc7a4f6d7bf9d227590c57e0e138fa377078e8af8cc6cd7c18 SHA512 1413ac60a507e42c572f12e1af212c1a5229296abb64f567456227e035c52c8f87aa689bb4194e2710fb014e4dd2e206ae9daca3e15911aead894e9c5982a40b WHIRLPOOL 0ff224f4264891dd91cbe1ffa4f18ff6041a046f7e32b085db5726fd2e38f07714d84d9e337e6a61c3a72c0703a4562023cc02bc7c1bb399e2a494a4ab5d742c | ||
DIST v1.3.4.tar.gz 1004935 SHA256 55918522cb0041748507dd4f5aa92d043cef337aa589b9367c2221da084281ac SHA512 092818570f5eb152b2bf8d0964068510185304f41e1eb0946bf7589c640d21bff67d2b79b49f770e8c0baa9031ab449eefb9e3b0bce8a28e2fc4809007fefa99 WHIRLPOOL 0e7c1941d31824e3a8f93200b6b228f56b0e35f14498a138425b177bc5a47274d422cd7b1d4836ebdb74b449bf777129381382e7b66211f5e8d1507cc3becdf7 | ||
EBUILD hunspell-1.3.4.ebuild 2379 SHA256 70dca6c2dd076569bc43dfaa1518f71fa6b6ec776eb14a5093991d39e321036b SHA512 7005ef55e4507f434b75f4dd10a8a737feac21aa50db2b7109255a342e25dd3511037489ffba252e2721c327b5c5a439fd366450ec1d8fbdd509dad96701571e WHIRLPOOL d4a929c88b47e9a1617d7e99fe289f41a4520934cbc4d142cbd5d5fe5aff28c4650e182ccd95e1c99797c99c95056d33f619ad3d99165d5ec2e20abf8d53369a | ||
MISC metadata.xml 527 SHA256 22730719dfe8b3efd34889cd496f6c0508544433cf315e27aa49550a31d55bed SHA512 1defdc87b33619dd65f0852224aa0e86ed6520864e6cc3cac5b74f340ba325a7c6448c30574170bdf64b45288a2eab747e4cb205eab90e70a4ed9b5e468a8671 WHIRLPOOL 88188a8ea882fd7acd487bcae87e4c891597d5883d0c625f928c8c24e7ebcefc537ff28df46f5140ff2d38171d74753183d69a859721f785e88bed3460ff99b2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
=== modified file 'src/tools/Makefile.am' | ||
--- src/tools/Makefile.am 2011-05-24 15:55:29 +0000 | ||
+++ src/tools/Makefile.am 2011-05-24 15:58:36 +0000 | ||
@@ -1,4 +1,4 @@ | ||
-bin_PROGRAMS=analyze chmorph hunspell munch unmunch hzip hunzip | ||
+bin_PROGRAMS=hunspell-analyze hunspell-chmorph hunspell hunspell-munch hunspell-unmunch hzip hunzip | ||
|
||
INCLUDES=-I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers | ||
|
||
@@ -6,8 +6,8 @@ | ||
hunzip_SOURCES=hunzip.cxx | ||
hunzip_LDADD = ../hunspell/libhunspell-1.3.la | ||
|
||
-munch_SOURCES=munch.c munch.h | ||
-unmunch_SOURCES=unmunch.c unmunch.h | ||
+hunspell_munch_SOURCES=munch.c munch.h | ||
+hunspell_unmunch_SOURCES=unmunch.c unmunch.h | ||
|
||
example_SOURCES=example.cxx | ||
example_LDADD = ../hunspell/libhunspell-1.3.la | ||
@@ -16,11 +16,11 @@ | ||
hunspell_LDADD = @LIBINTL@ @LIBICONV@ ../parsers/libparsers.a \ | ||
../hunspell/libhunspell-1.3.la @CURSESLIB@ @READLINELIB@ | ||
|
||
-analyze_SOURCES=analyze.cxx | ||
-analyze_LDADD = ../hunspell/libhunspell-1.3.la | ||
+hunspell_analyze_SOURCES=analyze.cxx | ||
+hunspell_analyze_LDADD = ../hunspell/libhunspell-1.3.la | ||
|
||
-chmorph_SOURCES=chmorph.cxx | ||
-chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.3.la | ||
+hunspell_chmorph_SOURCES=chmorph.cxx | ||
+hunspell_chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.3.la | ||
|
||
noinst_PROGRAMS=example | ||
|
||
|
||
=== modified file 'src/tools/chmorph.cxx' | ||
--- src/tools/chmorph.cxx 2011-05-24 15:55:29 +0000 | ||
+++ src/tools/chmorph.cxx 2011-05-24 16:00:54 +0000 | ||
@@ -59,9 +59,9 @@ | ||
fprintf( | ||
stderr, | ||
- "chmorph - change affixes by morphological analysis and generation\n" | ||
- "correct syntax is:\nchmorph affix_file " | ||
+ "hunspell-chmorph - change affixes by morphological analysis and generation\n" | ||
+ "correct syntax is:\nhunspell-chmorph affix_file " | ||
"dictionary_file file_to_convert STRING1 STRING2\n" | ||
"STRINGS may be arbitrary parts of the morphological descriptions\n" | ||
- "example: chmorph hu.aff hu.dic hu.txt SG_2 SG_3 " | ||
+ "example: hunspell-chmorph hu.aff hu.dic hu.txt SG_2 SG_3 " | ||
" (convert informal Hungarian second person texts to formal third " | ||
"person texts)\n"); | ||
=== modified file 'src/tools/example.cxx' | ||
--- src/tools/example.cxx 2011-05-24 15:55:29 +0000 | ||
+++ src/tools/example.cxx 2011-05-24 15:55:37 +0000 | ||
@@ -56,6 +56,6 @@ | ||
if (argc < 4) { | ||
- fprintf(stderr, "example (now it works with more dictionary files):\n"); | ||
+ fprintf(stderr, "hunspell-example (now it works with more dictionary files):\n"); | ||
fprintf(stderr, | ||
- "example affix_file dictionary_file(s) file_of_words_to_check\n"); | ||
+ "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 2011-05-24 15:55:29 +0000 | ||
+++ src/tools/munch.c 2011-05-24 15:55:37 +0000 | ||
@@ -80,12 +80,12 @@ | ||
} 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 2011-05-24 15:55:29 +0000 | ||
+++ src/tools/unmunch.c 2011-05-24 15:55:37 +0000 | ||
@@ -76,10 +76,10 @@ | ||
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 2011-05-24 15:55:29 +0000 | ||
+++ tests/test.sh 2011-05-24 15:55:37 +0000 | ||
@@ -74,7 +74,7 @@ | ||
shopt -s expand_aliases | ||
|
||
alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/hunspell' | ||
-alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/analyze' | ||
+alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/hunspell-analyze' | ||
|
||
if [ "$VALGRIND" != "" ]; then | ||
rm -f $TEMPDIR/test.pid* | ||
@@ -83,7 +83,7 @@ | ||
fi | ||
|
||
alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell' | ||
- alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/analyze' | ||
+ alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell-analyze' | ||
fi | ||
|
||
# Tests good words |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
inherit eutils multilib autotools flag-o-matic versionator | ||
|
||
MY_P=${PN}-${PV/_beta/b} | ||
|
||
DESCRIPTION="Hunspell spell checker - an improved replacement for myspell in OOo" | ||
SRC_URI="https://github.com/hunspell/${PN}/archive/v${PV}.tar.gz" | ||
HOMEPAGE="http://hunspell.github.io/" | ||
|
||
SLOT="0" | ||
LICENSE="MPL-1.1 GPL-2 LGPL-2.1" | ||
IUSE="ncurses nls readline static-libs" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" | ||
|
||
RDEPEND=" | ||
ncurses? ( sys-libs/ncurses:* ) | ||
readline? ( sys-libs/readline:* )" | ||
DEPEND="${RDEPEND} | ||
sys-devel/gettext" | ||
|
||
# describe properly mi | ||
LANGS="af bg ca cs cy da de el en eo es et fo fr ga gl he hr hu ia id is it km | ||
ku lt lv mk ms nb nl nn pl pt pt_BR ro ru sk sl sq sv sw tn uk zu" | ||
|
||
DICT_DEP="app-dicts/myspell-en" | ||
for lang in ${LANGS}; do | ||
if [[ ${lang} == de ]] ; then | ||
DICT_DEP+=" linguas_de? ( | ||
|| ( | ||
app-dicts/myspell-de | ||
app-dicts/myspell-de-alt | ||
) | ||
)" | ||
else | ||
DICT_DEP+=" linguas_${lang}? ( app-dicts/myspell-${lang/pt_BR/pt-br} )" | ||
fi | ||
IUSE+=" linguas_${lang}" | ||
done | ||
PDEPEND="${DICT_DEP}" | ||
|
||
unset lang LANGS DICT_DEP | ||
|
||
S=${WORKDIR}/${MY_P} | ||
|
||
DOCS=( | ||
AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell | ||
AUTHORS.myspell README.myspell license.myspell | ||
) | ||
|
||
src_prepare() { | ||
# Upstream package creates some executables which names are too generic | ||
# to be placed in /usr/bin - this patch prefixes them with 'hunspell-'. | ||
# It modifies a Makefile.am file, hence eautoreconf. | ||
epatch "${FILESDIR}"/${PN}-1.4-renameexes.patch | ||
eautoreconf | ||
} | ||
|
||
src_configure() { | ||
# missing somehow, and I am too lazy to fix it properly | ||
[[ ${CHOST} == *-darwin* ]] && append-libs -liconv | ||
|
||
# I wanted to put the include files in /usr/include/hunspell. | ||
# You can do that, libreoffice can find them anywhere, just | ||
# ping me when you do so ; -- scarabeus | ||
econf \ | ||
$(use_enable nls) \ | ||
$(use_with ncurses ui) \ | ||
$(use_with readline readline) \ | ||
$(use_enable static-libs static) | ||
} | ||
|
||
src_install() { | ||
default | ||
|
||
prune_libtool_files --all | ||
|
||
#342449 | ||
pushd "${ED}"/usr/$(get_libdir)/ >/dev/null | ||
ln -s lib${PN}{-$(get_major_version).$(get_version_component_range 2).so.0.0.0,.so} | ||
popd >/dev/null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="person"> | ||
<email>elizabeth@interlinked.me</email> | ||
<name>Elizabeth Myers</name> | ||
<description>Proxied maintainer; set to assignee in all bugs</description> | ||
</maintainer> | ||
<maintainer type="project"> | ||
<email>proxy-maint@gentoo.org</email> | ||
<name>Proxy Maintainers</name> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="sourceforge">hunspell</remote-id> | ||
</upstream> | ||
</pkgmetadata> |