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

Contents of /app-text/chasen/chasen-2.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Jun 9 19:10:36 2012 UTC (2 years, 3 months ago) by armin76
Branch: MAIN
Changes since 1.9: +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.0.ebuild,v 1.9 2012/05/06 19:05:27 halcy0n Exp $
4
5 inherit perl-app
6
7 MY_P="${P/_pre/-preview}"
8 S="${WORKDIR}/${MY_P}"
9
10 DESCRIPTION="Japanese Morphological Analysis System, ChaSen"
11 HOMEPAGE="http://chasen-legacy.sourceforge.jp/"
12 SRC_URI="mirror://sourceforge.jp//chasen-legacy/24693/${MY_P}.tar.gz"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="amd64 ppc ~ppc64 x86"
17 IUSE="perl"
18
19 DEPEND=">=dev-libs/darts-0.31"
20 RDEPEND="${DEPEND}
21 perl? ( !dev-perl/Text-ChaSen )"
22 PDEPEND=">=app-dicts/ipadic-2.7.0"
23
24 src_unpack() {
25 unpack ${A}
26
27 if use perl ; then
28 cd "${S}"/perl
29 sed -i -e '5a"LD" => "g++",' Makefile.PL || die
30 fi
31 }
32
33 src_compile() {
34 econf || die
35 emake || die
36 if use perl ; then
37 cd "${S}"/perl
38 perl-module_src_compile
39 fi
40 }
41
42 src_install () {
43 einstall || die
44
45 if use perl ; then
46 cd "${S}"/perl
47 perl-module_src_install
48 fi
49
50 cd "${S}"
51 dodoc AUTHORS ChangeLog NEWS README
52 }

  ViewVC Help
Powered by ViewVC 1.1.20