summaryrefslogtreecommitdiff
blob: 83c37e5c4195c65b01c992494c681be2650d8205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/namazu/namazu-2.0.12.ebuild,v 1.4 2004/06/24 22:45:24 agriffis Exp $

DESCRIPTION="Namazu is a full-text search engine"
SRC_URI="http://www.namazu.org/stable/${P}.tar.gz"
HOMEPAGE="http://www.namazu.org/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="nls cjk kakasi chasen tcltk"

DEPEND=">=dev-lang/perl-5.6.1
	>=dev-perl/File-MMagic-1.12
	nls? ( >=sys-devel/gettext-0.10.35 )
	cjk? ( >=app-i18n/nkf-1.71 )
	kakasi? ( >=dev-perl/Text-Kakasi-1.05 )
	chasen? ( >=dev-perl/Text-ChaSen-1.03 )
	tcltk? ( >=dev-lang/tk-8.3.3
		>=net-www/lynx-2.8.4 )"

src_compile() {
	local myconf="";

	use nls || myconf="${myconf} --disable-nls"
	use tcltk && myconf="${myconf} --enable-tknamazu"

	econf ${myconf} || die "./configure failed"

	mv filter/Makefile filter/Makefile.orig
	sed -e 's|\(rm -f \$(filterdir).*$\)|# \1|' filter/Makefile.orig > filter/Makefile
	emake || die
}

src_install () {
	make DESTDIR=${D} install || die

	rm ${D}/usr/share/namazu/etc/*

	insinto /usr/share/namazu/etc
	doins etc/namazu.png
	doins lisp/*.el

	dodoc AUTHORS COPYING CREDITS NEWS TODO THANKS
	dodoc ChangeLog* README* HACKING* INSTALL*
}