summaryrefslogtreecommitdiff
blob: d844999dfa00794f464d229c1964de21b4adc536 (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 Technologies, Inc.
# 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.3 2004/03/12 08:47:53 mr_bones_ 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*
}