summaryrefslogtreecommitdiff
blob: b8a3c546e037c8957df452a644a9af9015530560 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2
inherit cmake-utils multilib

DESCRIPTION="Yet another indexing tool."
HOMEPAGE="http://silentbob.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
# Note plugins support is disabled at sources...
#IUSE="plugins"
IUSE=""

RDEPEND=""
DEPEND="${RDEPEND}
	>=dev-util/cmake-2.6"

DOCS="AUTHORS README"

src_prepare() {
#	if ! use plugins; then
		sed '/^add_library.*plugins\/.*$/d' -i CMakeLists.txt
#	else
#		sed "s:/usr/lib/silent_bob/:/usr/$(get_libdir)/silent_bob/:" -i src/init.cxx
#	fi
}

src_install() {
	cmake-utils_src_install
	newdoc doc/FAQ_utf8 FAQ-ru_utf8 || die
#	_check_build_dir
#	pushd "${CMAKE_BUILD_DIR}" > /dev/null
#	if use plugins; then
#		insinto /usr/$(get_libdir)/silent_bob/
#		for lib in libplugin_*.so; do
#			doins ${lib} || die
#		done
#	fi
#	popd > /dev/null
}