/[gentoo-x86]/app-text/chasen/chasen-2.4.4-r2.ebuild
Gentoo

Contents of /app-text/chasen/chasen-2.4.4-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Jun 9 19:10:36 2012 UTC (2 years, 1 month ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Drop sparc keywords

(Portage version: 2.1.10.53/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/chasen/chasen-2.4.4-r2.ebuild,v 1.4 2012/04/16 12:49:41 ago Exp $
4
5 EAPI="4"
6 inherit perl-module
7
8 DESCRIPTION="Japanese Morphological Analysis System, ChaSen"
9 HOMEPAGE="http://chasen-legacy.sourceforge.jp/"
10 SRC_URI="mirror://sourceforge.jp//chasen-legacy/32224/${P}.tar.gz"
11
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="amd64 ppc ~ppc64 x86 ~sparc-solaris"
15 IUSE="perl static-libs"
16
17 DEPEND=">=dev-libs/darts-0.32"
18 RDEPEND="${DEPEND}
19 perl? ( !dev-perl/Text-ChaSen )"
20 PDEPEND=">=app-dicts/ipadic-2.7.0"
21
22 src_preapre() {
23 epatch "${FILESDIR}"/${P}-cve-2011-4000.patch
24 }
25
26 src_configure() {
27 econf $(use_enable static-libs static)
28 if use perl ; then
29 cd "${S}"/perl
30 perl-module_src_configure
31 fi
32 }
33
34 src_compile() {
35 emake || die
36 if use perl ; then
37 cd "${S}"/perl
38 perl-module_src_compile
39 fi
40 }
41
42 src_test() {
43 emake check || die
44 if use perl ; then
45 cd "${S}"/perl
46 perl-module_src_test
47 fi
48 }
49
50 src_install () {
51 emake DESTDIR="${D}" install || die
52
53 dodoc AUTHORS ChangeLog NEWS README
54
55 if use perl ; then
56 cd "${S}"/perl
57 perl-module_src_install
58 newdoc README README.perl
59 fi
60
61 if ! use static-libs ; then
62 find "${ED}" -name '*.la' -delete
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20