summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2007-05-12 14:52:15 +0000
committerMichael Cummings <mcummings@gentoo.org>2007-05-12 14:52:15 +0000
commit941b47d9aeb837699c21cf098e2111cc10c38de8 (patch)
treef4f79cf2b59963a52ec675ef76277a6a9228f50c /dev-perl/Snowball-Norwegian/Snowball-Norwegian-1.2.ebuild
parentChange init script to have use dbus instead of after dbus as hcid doesn't wor... (diff)
downloadhistorical-941b47d9aeb837699c21cf098e2111cc10c38de8.tar.gz
historical-941b47d9aeb837699c21cf098e2111cc10c38de8.tar.bz2
historical-941b47d9aeb837699c21cf098e2111cc10c38de8.zip
Version bump
Package-Manager: portage-2.1.2.3
Diffstat (limited to 'dev-perl/Snowball-Norwegian/Snowball-Norwegian-1.2.ebuild')
-rw-r--r--dev-perl/Snowball-Norwegian/Snowball-Norwegian-1.2.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-perl/Snowball-Norwegian/Snowball-Norwegian-1.2.ebuild b/dev-perl/Snowball-Norwegian/Snowball-Norwegian-1.2.ebuild
new file mode 100644
index 000000000000..6e24b1def1f6
--- /dev/null
+++ b/dev-perl/Snowball-Norwegian/Snowball-Norwegian-1.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/Snowball-Norwegian/Snowball-Norwegian-1.2.ebuild,v 1.1 2007/05/12 14:39:49 mcummings Exp $
+
+inherit perl-module multilib
+
+DESCRIPTION="Porters stemming algorithm for Norwegian"
+HOMEPAGE="http://search.cpan.org/~asksh/"
+SRC_URI="mirror://cpan/authors/id/A/AS/ASKSH/${P}.tar.gz"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE=""
+
+SRC_TEST="do"
+
+
+DEPEND="dev-lang/perl"
+
+src_install() {
+ perl-module_src_install
+ local version
+ eval `perl '-V:version'`
+ perl_version=${version}
+ local myarch
+ eval `perl '-V:archname'`
+ myarch=${archname}
+
+ if [ -f ${D}/usr/$(get_libdir)/perl5/vendor_perl/${perl_version}/Lingua/Stem/Snowball/stemmer.pl ]; then
+ mv \
+ ${D}/usr/$(get_libdir)/perl5/vendor_perl/${perl_version}/Lingua/Stem/Snowball/stemmer.pl \
+ ${D}/usr/$(get_libdir)/perl5/vendor_perl/${perl_version}/Lingua/Stem/Snowball/no-stemmer.pl
+ fi
+}
+
+pkg_postinst() {
+ perl-module_pkg_postinst
+ elog "The stemmer.pl that ships with this distribution has been renamed to"
+ elog "no-stemmer.pl to avoid collisions with other Lingua::Stem packages."
+}