summaryrefslogtreecommitdiff
path: root/dev-libs/snowball-stemmer
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-libs/snowball-stemmer
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-libs/snowball-stemmer')
-rw-r--r--dev-libs/snowball-stemmer/Manifest2
-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
-rw-r--r--dev-libs/snowball-stemmer/snowball-stemmer-0.20140325.ebuild53
5 files changed, 138 insertions, 0 deletions
diff --git a/dev-libs/snowball-stemmer/Manifest b/dev-libs/snowball-stemmer/Manifest
new file mode 100644
index 00000000000..dd109db0cd6
--- /dev/null
+++ b/dev-libs/snowball-stemmer/Manifest
@@ -0,0 +1,2 @@
+DIST libstemmer_c-20091122.tgz 129207 SHA256 ad4e152379214480d599c86dd19421a36fce78cedd20fc324520c5bba0a512e7 SHA512 d1b2203dcc3d0f421526d3ec2f7e04889f93221222efe50501b4a1c7e74dfc51905141d4ada5a76feab5cec8dbc64f55dd55b53f6e89f658c67e72dc6667091d WHIRLPOOL 03baf5de80854a2726990d1f79e17a46342b0d8431a564805d78878bba1eba0c1aba6f4f53c64eb1a1946b50053632c32c9106305f0a53623068531f2b67b5c4
+DIST libstemmer_c-20140325.tgz 129506 SHA256 7694b0ec0a380670470587a559abb219c224b8047ed9e3078dccb8898a4a4afb SHA512 938eb12d4fe9e229f21536a6cb8a4322e0b664a7fbc15685e7ad46b4a6ccdfbefc55cc484f86bc738791d6f3e6d1b61ba777a4332a62cf76a8b0a5efd2c2762b WHIRLPOOL 24de2111859bc10c707e623d69ac13f4a5b5632a59ef2909657d0dde427b83ca73f8990dbd1f72a19ba6de0ab59f3a7503642ced6454e9888971c3e8884c66e9
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 00000000000..ca27fc51770
--- /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 00000000000..c378f8d7138
--- /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 00000000000..86c80cb31d2
--- /dev/null
+++ b/dev-libs/snowball-stemmer/snowball-stemmer-0.20091122.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
+
+# 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
+}
diff --git a/dev-libs/snowball-stemmer/snowball-stemmer-0.20140325.ebuild b/dev-libs/snowball-stemmer/snowball-stemmer-0.20140325.ebuild
new file mode 100644
index 00000000000..e9140921f76
--- /dev/null
+++ b/dev-libs/snowball-stemmer/snowball-stemmer-0.20140325.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils versionator
+
+# The version number here has been added by Gentoo since upstream does
+# not do any versioning. It is the latest date of files inside
+# http://snowball.tartarus.org/dist/libstemmer_c.tgz.
+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="http://dev.gentoo.org/~graaff/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="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
+
+# 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
+}