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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 9 19:10:36 2012 UTC (22 months, 1 week ago) by armin76
Branch: MAIN
Changes since 1.1: +3 -3 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-r1.ebuild,v 1.1 2011/09/02 14:36:51 matsuu 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_configure() {
23 econf $(use_enable static-libs static)
24 if use perl ; then
25 cd "${S}"/perl
26 perl-module_src_configure
27 fi
28 }
29
30 src_compile() {
31 emake || die
32 if use perl ; then
33 cd "${S}"/perl
34 perl-module_src_compile
35 fi
36 }
37
38 src_test() {
39 emake check || die
40 if use perl ; then
41 cd "${S}"/perl
42 perl-module_src_test
43 fi
44 }
45
46 src_install () {
47 emake DESTDIR="${D}" install || die
48
49 dodoc AUTHORS ChangeLog NEWS README
50
51 if use perl ; then
52 cd "${S}"/perl
53 perl-module_src_install
54 newdoc README README.perl
55 fi
56
57 if ! use static-libs ; then
58 find "${ED}" -name '*.la' -delete
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20