blob: 8813d2976df5c5c9f43505efa3afa04c4ee3b98f (
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
48
49
50
51
52
53
54
55
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/gonzui/gonzui-1.2-r1.ebuild,v 1.2 2010/01/05 13:48:51 flameeyes Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit autotools eutils ruby
USE_RUBY="ruby18 ruby19"
DESCRIPTION="source code search engine"
HOMEPAGE="http://gonzui.sourceforge.net/"
SRC_URI="mirror://sourceforge/gonzui/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="ocaml perl"
RESTRICT="test"
DEPEND=">=virtual/ruby-1.8.2
>=sys-libs/db-4.2
>=dev-ruby/ruby-bdb-0.5.2
dev-ruby/ruby-progressbar
ocaml? ( dev-lang/ocaml )
perl? ( dev-perl/PPI )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gentoo.patch
cp "${FILESDIR}"/ebuild.rb "${S}"/langscan/ || die
eautoreconf
}
src_compile() {
econf
# bug #297463
emake -j1 || die "emake failed"
}
src_install() {
ruby_src_install
mv "${D}"/etc/gonzuirc.sample "${D}"/etc/gonzuirc
doinitd "${FILESDIR}"/gonzui || die
keepdir /var/lib/gonzui
keepdir /var/log/gonzui
}
pkg_postinst() {
elog "The database (gonzui.db) format has become incompatible with"
elog "older versions."
elog "Please restructure the database if you already have it."
}
|