summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-01-14 20:30:01 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-01-14 20:30:01 +0000
commit2da1b67bc3ae696bc672532afb7eee50770995f5 (patch)
tree0de2bfb2bb5594e0b022cc06b270dd4690b5d750 /dev-util
parentversion bump, bug #398727 tracks changes. (diff)
downloadgentoo-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')
-rw-r--r--dev-util/catfish/ChangeLog10
-rw-r--r--dev-util/catfish/Manifest5
-rw-r--r--dev-util/catfish/catfish-0.3.2.ebuild65
-rw-r--r--dev-util/catfish/files/catfish-gentoo.patch68
-rw-r--r--dev-util/catfish/metadata.xml8
5 files changed, 156 insertions, 0 deletions
diff --git a/dev-util/catfish/ChangeLog b/dev-util/catfish/ChangeLog
new file mode 100644
index 000000000000..16519a974735
--- /dev/null
+++ b/dev-util/catfish/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-util/catfish
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/catfish/ChangeLog,v 1.1 2012/01/14 20:30:01 ssuominen Exp $
+
+*catfish-0.3.2 (14 Jan 2012)
+
+ 14 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> +catfish-0.3.2.ebuild,
+ +files/catfish-gentoo.patch:
+ Initial commit wrt #161730 by Wojciech Myrda (and others)
+
diff --git a/dev-util/catfish/Manifest b/dev-util/catfish/Manifest
new file mode 100644
index 000000000000..ec1f1ec6e721
--- /dev/null
+++ b/dev-util/catfish/Manifest
@@ -0,0 +1,5 @@
+AUX catfish-gentoo.patch 2518 RMD160 173717358c830ec6fd3df4dcd266dce2478b2cdb SHA1 6283db2a47ab9e8bc0bef5642b6b1611aa9f9a8f SHA256 bd66b75cd314d9a0b005693992bc5e829d2cf200d88488201cb02ecfeb8d45f0
+DIST catfish-0.3.2.tar.gz 35702 RMD160 5f26195a78456e69d988523905fdf3aebe06f782 SHA1 26893bc4fc5947e19289a0d82e214c035ca93936 SHA256 15266b1961ba64552b969c4c84752c931fd29412fe142835cbc3dde6385588f4
+EBUILD catfish-0.3.2.ebuild 1257 RMD160 4357a553b3c0a53e0fe3b45020b71a2a62331135 SHA1 7322b380062b890456296bc8f2e4b88c9195dcc1 SHA256 6d64d591e44cb84f2df9db13cdc8b9e66934d7b1f4ee4f15d9313ecf3dee3c91
+MISC ChangeLog 316 RMD160 653e421ca5b19cd47496ea0f0251bbf45a2d1948 SHA1 97e862915f97dcb836927ca53e75fab1b6b9a205 SHA256 ba1f938e20405d1a4163be36096842e5fdb34c759786adb77b44e12c050ea7d8
+MISC metadata.xml 243 RMD160 3b16a7e4ab8cc92ef91f0b9ef376a945c09b4872 SHA1 65c18273b1ab11556665b354ef96fd3a18c2d014 SHA256 d3e33171a7887443d3fe1cdcda61f2bfd9373ce3b9a1cc79a9d5bafeb743a8e4
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
+}
diff --git a/dev-util/catfish/files/catfish-gentoo.patch b/dev-util/catfish/files/catfish-gentoo.patch
new file mode 100644
index 000000000000..e2cc794d96de
--- /dev/null
+++ b/dev-util/catfish/files/catfish-gentoo.patch
@@ -0,0 +1,68 @@
+The Makefile.in part of this patch is not suitable for upstream!
+
+--- catfish.desktop
++++ catfish.desktop
+@@ -1,6 +1,5 @@
+ [Desktop Entry]
+ Version=1.0
+-Encoding=UTF-8
+ Type=Application
+ Name=Catfish
+ Comment=File search
+@@ -8,7 +7,7 @@
+ Comment[es]=Buscador de archivos
+ Comment[fi]=Etsi tiedostoja
+ Comment[fr]=Recherche de fichiers
+-Categories=GTK;Utility;Filesystem;
++Categories=GTK;Utility;System;Filesystem;
+ Exec=catfish
+ Icon=catfish
+ Terminal=false
+--- Makefile.in
++++ Makefile.in
+@@ -3,9 +3,9 @@
+ PYTHON=`which python`
+ LANGUAGE_FILES=$(patsubst po/%.po, locale/%/LC_MESSAGES/$(APPNAME).mo, $(wildcard po/*.po))
+ DESTDIR=
++LIBDIR=lib
+
+ all: $(LANGUAGE_FILES)
+- $(PYTHON) ./build.py build $(APPNAME)
+ sed -e s,%prefix%,$(PREFIX), $(APPNAME).in > $(APPNAME)
+ chmod +x $(APPNAME)
+
+@@ -14,29 +14,19 @@
+ msgfmt $< -o $@
+
+ install: all
+- install -d $(DESTDIR)/$(PREFIX)/bin
+- install $(APPNAME) $(DESTDIR)/$(PREFIX)/bin
+-
+- install -d $(DESTDIR)/$(PREFIX)/share/$(APPNAME)
+- install $(APPNAME).pyc $(DESTDIR)/$(PREFIX)/share/$(APPNAME)
+- install $(APPNAME).glade $(DESTDIR)/$(PREFIX)/share/$(APPNAME)
++ install -d $(DESTDIR)/$(PREFIX)/$(LIBDIR)/$(APPNAME)
++ install $(APPNAME).py $(DESTDIR)/$(PREFIX)/$(LIBDIR)/$(APPNAME)
++ install $(APPNAME).glade $(DESTDIR)/$(PREFIX)/$(LIBDIR)/$(APPNAME)
+
+ install -d $(DESTDIR)/$(PREFIX)/share/icons/hicolor/scalable/apps
+ install $(APPNAME).svg $(DESTDIR)/$(PREFIX)/share/icons/hicolor/scalable/apps
+- ln -sf $(DESTDIR)/$(PREFIX)/share/icons/hicolor/scalable/apps/$(APPNAME).svg $(DESTDIR)/$(PREFIX)/share/$(APPNAME)/$(APPNAME).svg
+-
+- install -d $(DESTDIR)/$(PREFIX)/share/doc/$(APPNAME)
+- install AUTHORS $(DESTDIR)/$(PREFIX)/share/doc/$(APPNAME)
+- install COPYING $(DESTDIR)/$(PREFIX)/share/doc/$(APPNAME)
+- install ChangeLog $(DESTDIR)/$(PREFIX)/share/doc/$(APPNAME)
+- install INSTALL $(DESTDIR)/$(PREFIX)/share/doc/$(APPNAME)
+- install README $(DESTDIR)/$(PREFIX)/share/doc/$(APPNAME)
++ ln -sf $(DESTDIR)/$(PREFIX)/share/icons/hicolor/scalable/apps/$(APPNAME).svg $(DESTDIR)/$(PREFIX)/$(LIBDIR)/$(APPNAME)/$(APPNAME).svg
+
+ install -d $(DESTDIR)/$(PREFIX)/share/applications
+ install --mode=644 $(APPNAME).desktop $(DESTDIR)/$(PREFIX)/share/applications
+
+ cp -rf locale $(DESTDIR)/$(PREFIX)/share
+- ln -sf $(DESTDIR)/$(PREFIX)/share/locale $(DESTDIR)/$(PREFIX)/share/$(APPNAME)/locale
++ ln -sf $(DESTDIR)/$(PREFIX)/share/locale $(DESTDIR)/$(PREFIX)/$(LIBDIR)/$(APPNAME)/locale
+
+ uninstall:
+ rm -f $(DESTDIR)/$(PREFIX)/share/applications/$(APPNAME).desktop
diff --git a/dev-util/catfish/metadata.xml b/dev-util/catfish/metadata.xml
new file mode 100644
index 000000000000..c2d865517c00
--- /dev/null
+++ b/dev-util/catfish/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>ssuominen@gentoo.org</email>
+ <name>Samuli Suominen</name>
+ </maintainer>
+</pkgmetadata>