blob: fb56271eacc8b64c28aa6690d19bddd475f8057b (
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
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/catfish/catfish-0.4.0.2.ebuild,v 1.1 2012/10/05 17:53:01 ssuominen Exp $
EAPI=4
PYTHON_DEPEND="2:2.7"
inherit eutils gnome2-utils multilib python
DESCRIPTION="A frontend for find, (s)locate, doodle, tracker, beagle, strigi and pinot"
HOMEPAGE="http://launchpad.net/catfish-search http://twotoasts.de/index.php/catfish/"
SRC_URI="http://launchpad.net/${PN}-search/${PV%.*.*}/${PV}/+download/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-python/dbus-python
>=dev-python/pygtk-2
dev-python/pyxdg"
DEPEND="${RDEPEND}
sys-devel/gettext"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-gentoo.patch-r1
python_convert_shebangs 2 {build,catfish}.py
cat <<-EOF > "${T}"/${PN}
#!/bin/sh
cd /usr/$(get_libdir)/${PN}
python2 ${PN}.pyc "\$@"
EOF
}
src_configure() {
./configure --prefix=/usr || die
}
src_install() {
emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
dobin "${T}"/${PN}
dodoc AUTHORS ChangeLog README TODO
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
python_mod_optimize /usr/$(get_libdir)/${PN}
gnome2_icon_cache_update
}
pkg_postrm() {
python_mod_cleanup /usr/$(get_libdir)/${PN}
gnome2_icon_cache_update
}
|