diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-14 20:30:01 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-14 20:30:01 +0000 |
commit | 2da1b67bc3ae696bc672532afb7eee50770995f5 (patch) | |
tree | 0de2bfb2bb5594e0b022cc06b270dd4690b5d750 /dev-util/catfish/catfish-0.3.2.ebuild | |
parent | version bump, bug #398727 tracks changes. (diff) | |
download | gentoo-2-2da1b67bc3ae696bc672532afb7eee50770995f5.tar.gz gentoo-2-2da1b67bc3ae696bc672532afb7eee50770995f5.tar.bz2 gentoo-2-2da1b67bc3ae696bc672532afb7eee50770995f5.zip |
Initial commit wrt #161730 by Wojciech Myrda (and others)
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/catfish/catfish-0.3.2.ebuild')
-rw-r--r-- | dev-util/catfish/catfish-0.3.2.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-util/catfish/catfish-0.3.2.ebuild b/dev-util/catfish/catfish-0.3.2.ebuild new file mode 100644 index 000000000000..c29b6c48355c --- /dev/null +++ b/dev-util/catfish/catfish-0.3.2.ebuild @@ -0,0 +1,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.3.2.ebuild,v 1.1 2012/01/14 20:30:01 ssuominen Exp $ + +EAPI=4 +PYTHON_DEPEND="2:2.7" +inherit eutils gnome2-utils python + +DESCRIPTION="A frontend for find, (s)locate, doodle, tracker, beagle, strigi and pinot" +HOMEPAGE="http://software.twotoasts.de/index.php?/pages/catfish_summary.html" +SRC_URI="http://www.twotoasts.de/media/${PN}/${P}.tar.gz" + +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 + + 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 +} |