summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2013-07-18 09:03:13 +0000
committerHans de Graaff <graaff@gentoo.org>2013-07-18 09:03:13 +0000
commit209afd0a3efe8ef860ad20391afea082570c5707 (patch)
tree407e868e1edd0a5d1e054c937d1fd2f6cc74d6a0 /dev-libs/snowball-stemmer
parentVersion bump, drop old (diff)
downloadhistorical-209afd0a3efe8ef860ad20391afea082570c5707.tar.gz
historical-209afd0a3efe8ef860ad20391afea082570c5707.tar.bz2
historical-209afd0a3efe8ef860ad20391afea082570c5707.zip
Initial import. Thanks for Tianon in bug 447172 for providing ebuilds and patches.
Package-Manager: portage-2.1.12.2/cvs/Linux x86_64 Manifest-Sign-Key: 0x8883FA56A308A8D7!
Diffstat (limited to 'dev-libs/snowball-stemmer')
-rw-r--r--dev-libs/snowball-stemmer/ChangeLog12
-rw-r--r--dev-libs/snowball-stemmer/Manifest15
-rw-r--r--dev-libs/snowball-stemmer/files/libstemmer_c-shared-library.patch23
-rw-r--r--dev-libs/snowball-stemmer/metadata.xml7
-rw-r--r--dev-libs/snowball-stemmer/snowball-stemmer-0.20091122.ebuild53
5 files changed, 110 insertions, 0 deletions
diff --git a/dev-libs/snowball-stemmer/ChangeLog b/dev-libs/snowball-stemmer/ChangeLog
new file mode 100644
index 000000000000..c6ae4e0408ab
--- /dev/null
+++ b/dev-libs/snowball-stemmer/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-libs/snowball-stemmer
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/snowball-stemmer/ChangeLog,v 1.1 2013/07/18 09:03:07 graaff Exp $
+
+*snowball-stemmer-0.20091122 (18 Jul 2013)
+
+ 18 Jul 2013; Hans de Graaff <graaff@gentoo.org>
+ +snowball-stemmer-0.20091122.ebuild,
+ +files/libstemmer_c-shared-library.patch, +metadata.xml:
+ Initial import. Thanks for Tianon in bug 447172 for providing ebuilds and
+ patches.
+
diff --git a/dev-libs/snowball-stemmer/Manifest b/dev-libs/snowball-stemmer/Manifest
new file mode 100644
index 000000000000..c32039561721
--- /dev/null
+++ b/dev-libs/snowball-stemmer/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX libstemmer_c-shared-library.patch 850 SHA256 5646bdb4a407745ce7bc09802688b54ad2745d1bba7c2436f564e8a22501245b SHA512 36f96bf9661a71d7aa77619202d7c4d48cc494da6287ecf5a24ffa9963aefadf9f825ec52058534aca908e6c2641af71bfc1bf14ab880d9ba480add7a8cac12b WHIRLPOOL 1899f115328f0e0d5918162808fddb910d0b4c0389423b02a74f659827a7b5f760f018508686ddb2c14e99f9b2ba480df5a4224cc2aeb76d14a063f2b1644965
+DIST libstemmer_c-20091122.tgz 129207 SHA256 ad4e152379214480d599c86dd19421a36fce78cedd20fc324520c5bba0a512e7 SHA512 d1b2203dcc3d0f421526d3ec2f7e04889f93221222efe50501b4a1c7e74dfc51905141d4ada5a76feab5cec8dbc64f55dd55b53f6e89f658c67e72dc6667091d WHIRLPOOL 03baf5de80854a2726990d1f79e17a46342b0d8431a564805d78878bba1eba0c1aba6f4f53c64eb1a1946b50053632c32c9106305f0a53623068531f2b67b5c4
+EBUILD snowball-stemmer-0.20091122.ebuild 1413 SHA256 9f02e4a455641c8527f0d103c58b55e76c7594ff94553068de5bf2ae0728d656 SHA512 1e5bd0cc6bf8a00d784771bc64f49b1d511e79c9d697ab8ca3e25972c11fb20834f1b87eeabded90203ef369392f245928df1bed1d01d5cd32dfd00e3fa22978 WHIRLPOOL 04072aad8c19e4c3db546919485349811b2be9b72cfcd123b19ce3c4e830a58cfe33f98e7312482a79e64046a222ad920e0087a32d69eef37b89e59bf445983f
+MISC ChangeLog 503 SHA256 8af2cd5963e766da7cdeba895f190a8784f45af4cbc5b5403a8554563634525e SHA512 778e943839dbd43b8accef238257ccb4a4385f78f51b64572f165865ee4c0a6189d24148df87f31c57a4added9d51cb90142bc371a5e5a880de881cf66cefe7d WHIRLPOOL 23a5fa39ead0fe1487550748c15a1e9e97f3ab4c0f0afb0607a65f1fd9bad71bb0c25a2f4e617da47e2f9ad6913d3995218f7f71b803f83e459f197a945fdf7c
+MISC metadata.xml 201 SHA256 567efa3072f207835c25e63e08bef3f0c75bca8c9a2f03082be5fee6dc5f4b21 SHA512 e3bc16f4f91e48eb9969c00f5cda14c05419af072166d040f65e648f1e87f1c844cc2180e7f6d8a15e5ccba041071c6aff9d77c9545f70614c9e280469ab86fd WHIRLPOOL f8f4396364aecf252b6f1dd6483b1ba5e31d5d3dfc5b1866ff12d7ac3ee6d08bdc4d18ab29a3b4cc932977d69acd410dea918f9220086e4a709d54624f69899f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.20 (GNU/Linux)
+
+iF4EAREIAAYFAlHnr1EACgkQiIP6VqMIqNehjwD6A1UJkLax2THt3GMmDUf5inf2
+ln1xINSFil0USZabUTEA/0BkYTgg2DlI7RQOUgChuZsryu4SUYWwhh/76a1JyomC
+=NnR0
+-----END PGP SIGNATURE-----
diff --git a/dev-libs/snowball-stemmer/files/libstemmer_c-shared-library.patch b/dev-libs/snowball-stemmer/files/libstemmer_c-shared-library.patch
new file mode 100644
index 000000000000..ca27fc517705
--- /dev/null
+++ b/dev-libs/snowball-stemmer/files/libstemmer_c-shared-library.patch
@@ -0,0 +1,23 @@
+--- /home/graaff/Desktop/Makefile 2009-11-06 01:57:50.000000000 +0100
++++ Makefile 2013-07-18 10:57:32.482149252 +0200
+@@ -1,9 +1,13 @@
+ include mkinc.mak
+-CFLAGS=-Iinclude
+-all: libstemmer.o stemwords
+-libstemmer.o: $(snowball_sources:.c=.o)
+- $(AR) -cru $@ $^
+-stemwords: examples/stemwords.o libstemmer.o
+- $(CC) -o $@ $^
++CFLAGS+=-Iinclude -fPIC
++all: libstemmer.so libstemmer.a stemwords
++libstemmer.so: $(snowball_sources:.c=.o)
++ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,$@.0d -o $@.0d.0.0 $^
++ ln -s $@.0d.0.0 $@.0d
++ ln -s $@.0d.0.0 $@
++libstemmer.a: $(snowball_sources:.c=.o)
++ $(AR) -crs $@ $^
++stemwords: examples/stemwords.o libstemmer.so
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+ clean:
+- rm -f stemwords *.o src_c/*.o runtime/*.o libstemmer/*.o
++ rm -f stemwords libstemmer.so* libstemmer.a *.o src_c/*.o runtime/*.o libstemmer/*.o
diff --git a/dev-libs/snowball-stemmer/metadata.xml b/dev-libs/snowball-stemmer/metadata.xml
new file mode 100644
index 000000000000..c378f8d71389
--- /dev/null
+++ b/dev-libs/snowball-stemmer/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>graaff@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-libs/snowball-stemmer/snowball-stemmer-0.20091122.ebuild b/dev-libs/snowball-stemmer/snowball-stemmer-0.20091122.ebuild
new file mode 100644
index 000000000000..0a842bd624dc
--- /dev/null
+++ b/dev-libs/snowball-stemmer/snowball-stemmer-0.20091122.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/snowball-stemmer/snowball-stemmer-0.20091122.ebuild,v 1.1 2013/07/18 09:03:07 graaff Exp $
+
+EAPI=5
+
+inherit eutils versionator
+
+# The version number here has been added by Gentoo.
+# It is the date that http://snowball.tartarus.org/dist/libstemmer_c.tgz was
+# fetched.
+PVDATE=$(get_after_major_version)
+
+DESCRIPTION="This contains all you need to include the snowball stemming algorithms into a C project of your own."
+HOMEPAGE="http://snowball.tartarus.org/download.php"
+SRC_URI="mirror://gentoo/libstemmer_c-${PVDATE}.tgz"
+
+# This will probably be different if this ebuild ends up being used for both
+# Java and C.
+S="${WORKDIR}/libstemmer_c"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# This could be used to package both libstemmer_c and libstemmer_java together.
+IUSE="static-libs"
+
+src_prepare() {
+ epatch "${FILESDIR}/libstemmer_c-shared-library.patch"
+}
+
+src_compile() {
+ CC=$(tc-getCC) emake libstemmer.so stemwords || die "Make failed!"
+
+ if use static-libs; then
+ CC=$(tc-getCC) AR=$(tc-getAR) emake libstemmer.a || die "Make failed!"
+ fi
+}
+
+src_install() {
+ dodoc README
+
+ dobin stemwords
+
+ doheader include/libstemmer.h
+
+ dolib.so libstemmer.so.0d.0.0
+ dolib.so libstemmer.so.0d
+ dolib.so libstemmer.so
+
+ use static-libs && dolib.a libstemmer.a
+}