summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2009-03-22 14:27:47 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2009-03-22 14:27:47 +0000
commit659668d175a35e7b4c07fa8c86f3fa9d7c34eaf1 (patch)
tree2971350470710e9cfc65ca8582e8c60ee82d49d3 /app-misc/gnomecatalog
parentAdd init script for shutting the UPS down on power failure. Thanks to Matt Wh... (diff)
downloadhistorical-659668d175a35e7b4c07fa8c86f3fa9d7c34eaf1.tar.gz
historical-659668d175a35e7b4c07fa8c86f3fa9d7c34eaf1.tar.bz2
historical-659668d175a35e7b4c07fa8c86f3fa9d7c34eaf1.zip
Bump to 0.3.4.2. Fix bug #263001.
Package-Manager: portage-2.2_rc25/cvs/Linux x86_64
Diffstat (limited to 'app-misc/gnomecatalog')
-rw-r--r--app-misc/gnomecatalog/ChangeLog10
-rw-r--r--app-misc/gnomecatalog/Manifest15
-rw-r--r--app-misc/gnomecatalog/files/gnomecatalog-0.3.4.2-dbus.patch109
-rw-r--r--app-misc/gnomecatalog/gnomecatalog-0.3.4.2.ebuild38
4 files changed, 169 insertions, 3 deletions
diff --git a/app-misc/gnomecatalog/ChangeLog b/app-misc/gnomecatalog/ChangeLog
index b64bad8990c2..f2935b9ee9f9 100644
--- a/app-misc/gnomecatalog/ChangeLog
+++ b/app-misc/gnomecatalog/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/gnomecatalog
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/gnomecatalog/ChangeLog,v 1.1 2008/01/19 17:15:05 bass Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/gnomecatalog/ChangeLog,v 1.2 2009/03/22 14:27:47 eva Exp $
+
+*gnomecatalog-0.3.4.2 (22 Mar 2009)
+
+ 22 Mar 2009; Gilles Dartiguelongue <eva@gentoo.org>
+ +files/gnomecatalog-0.3.4.2-dbus.patch, +gnomecatalog-0.3.4.2.ebuild:
+ Bump to 0.3.4.2. Fix bug #263001.
*gnomecatalog-0.3.3 (19 Jan 2008)
diff --git a/app-misc/gnomecatalog/Manifest b/app-misc/gnomecatalog/Manifest
index d75b51de3c9d..ca2c14e3d693 100644
--- a/app-misc/gnomecatalog/Manifest
+++ b/app-misc/gnomecatalog/Manifest
@@ -1,4 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX gnomecatalog-0.3.4.2-dbus.patch 3522 RMD160 e51f4900aa06875a9d62e051aca422b31ac5c414 SHA1 4a3b2b2130bcb99be39365da3207251fdda66686 SHA256 3818d5dc7692b9134d3b6f1d049ea4f0082b1eac110f582b9a27d77e04311b98
+DIST gnomecatalog-0.3.4.2.tar.bz2 58983 RMD160 9d4ed05f73f9ffdf6f201c00d8eb28287d1d2806 SHA1 5c378a05fcc9a53361fc165eec864e39a9fbc04e SHA256 4bd0352b994b9d63be3eb465db57dee38d4f87adff8c0b901687b735cc7dfa4e
DIST gnomecatalog_0.3.3.orig.tar.gz 127542 RMD160 b39b26233312b14436bf52bef03acecf6e5bd7f8 SHA1 ab36e2711ca8ed63483a9fccfbd1528782a7f315 SHA256 e773c055ecc2bc047e2d090b7b28e2dd476d5c27a2e02d869267d110ffcbcc84
EBUILD gnomecatalog-0.3.3.ebuild 667 RMD160 6ce6dfa780e52629608ddf643474769d4e86da2c SHA1 0f384c310044d4890fafff8a46d2bbff60b7d281 SHA256 76e0e81eb31e3dbe487f0e8aaa958122d8c27c97fd94d7c8a04b24e72e41dcc4
-MISC ChangeLog 334 RMD160 5ea4abe389d85c21a68a4a0ef4018f435e1179c0 SHA1 8c3d5fe273458673d85c2c760240d1dd79000961 SHA256 fc0136515a45e723f356d01a1f149c33d3324b82f9f71bbd7fb6011c3b6beb30
+EBUILD gnomecatalog-0.3.4.2.ebuild 928 RMD160 bd5b5e19e52bba3130242fb1baae68a0ba31f32b SHA1 6ba3c7a17d3591acc72eeb67c3dd2687f741c611 SHA256 2c8310786691126d892fb060e419ae1968f58db83816462f80c899561c2fabe6
+MISC ChangeLog 533 RMD160 229b95a9c0ad6ff68870a4e5d490d79d4b08ee54 SHA1 47deaa38f8795f2a57caaa6312cf4d168a2e77a3 SHA256 60f241b6ca0a57aa11a811b3008940af4cda5cfae7dae6ec26ab6345655a4df9
MISC metadata.xml 553 RMD160 67a495b0d4089bc48dd196c7d3adebf1fa10b357 SHA1 a0811ba82ddbdb001f530974ac57c48a519cb6ae SHA256 c635b48bb107242131ae07607b3304e536e4b463116d6ad8781e63de82f4bdcb
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.10 (GNU/Linux)
+
+iEUEARECAAYFAknGSukACgkQ1fmVwcYIWAbQLwCWNCaqH3I8JyaP44H8V4pbDe+b
+tQCgzT7ugecCqgcqiAYT36Snz0/NRVE=
+=S4o2
+-----END PGP SIGNATURE-----
diff --git a/app-misc/gnomecatalog/files/gnomecatalog-0.3.4.2-dbus.patch b/app-misc/gnomecatalog/files/gnomecatalog-0.3.4.2-dbus.patch
new file mode 100644
index 000000000000..705c148963a2
--- /dev/null
+++ b/app-misc/gnomecatalog/files/gnomecatalog-0.3.4.2-dbus.patch
@@ -0,0 +1,109 @@
+# https://sourceforge.net/tracker2/?func=detail&aid=2622610&group_id=118573&atid=681722
+--- a/gnomecatalog/data.py (revision 1)
++++ b/gnomecatalog/data.py (working copy)
+@@ -33,32 +33,34 @@
+
+ """ Leemos el disco y lo insertamos en la base de datos """
+ def import_disk(self):
+- path = self.config.get("source")
++
++ for path in utils.get_path():
++ #~ path = self.config.get("source")
+
+- database = storage.Sqlite(self.opened_database, self.app, True)
++ database = storage.Sqlite(self.opened_database, self.app, True)
+
+- if self.config.get("thumbnails") == "True":
+- if not os.path.exists(database.database + "_thumbs"):
+- os.mkdir(database.database + "_thumbs")
++ if self.config.get("thumbnails") == "True":
++ if not os.path.exists(database.database + "_thumbs"):
++ os.mkdir(database.database + "_thumbs")
+
+- """Importamos un nuevo disco"""
+- if not utils.is_mounted(path):
+- self.__path = path
+- self.__progress = self.app.progress_bar
+- utils.mount(path, self._mount_callback)
++ """Importamos un nuevo disco"""
++ if not utils.is_mounted(path):
++ self.__path = path
++ self.__progress = self.app.progress_bar
++ utils.mount(path, self._mount_callback)
+
+- disk = self.reader.read(path, self.app.progress_bar)
++ disk = self.reader.read(path, self.app.progress_bar)
+
+- if disk:
+- """ ahora insertamos los datos en la base de datos. """
+- disk = database.insert_disk(disk)
+- if self.config.get("eject") == "True": utils.eject(path)
+- self.app.set_guardar_state(True)
+-# self.load_data()
+-# self.treeDisk.select(disk)
+- # self.show_files_from_selected()
+- database.close()
+- return disk
++ if disk:
++ """ ahora insertamos los datos en la base de datos. """
++ disk = database.insert_disk(disk)
++ if self.config.get("eject") == "True": utils.eject(path)
++ self.app.set_guardar_state(True)
++ # self.load_data()
++ # self.treeDisk.select(disk)
++ # self.show_files_from_selected()
++ database.close()
++ return disk
+
+
+ """ Carga los discos de a base de datos en el treeview tree """
+--- a/gnomecatalog/utils.py (revision 1)
++++ b/gnomecatalog/utils.py (working copy)
+@@ -1,6 +1,28 @@
+ import os, commands, time
+ import gnomevfs, gtk
++import dbus, dbus.glib, sys, urllib
+
++
++def get_path():
++ path = []
++ bus = dbus.SystemBus()
++ hal_obj = bus.get_object ('org.freedesktop.Hal', '/org/freedesktop/Hal/Manager')
++ hal = dbus.Interface (hal_obj, 'org.freedesktop.Hal.Manager')
++ udis = hal.FindDeviceByCapability ('storage')
++ for udi in udis:
++ dev_obj = bus.get_object ('org.freedesktop.Hal', udi)
++ dev = dbus.Interface (dev_obj, 'org.freedesktop.Hal.Device')
++ if (dev.GetProperty ('storage.removable')):
++ block = dev.GetProperty ('block.device')
++ f = open ('/etc/mtab')
++ for line in f.readlines():
++ if (line.find (block) == 0):
++ mount = line.split()
++ path.append(mount[1].replace('\\040',' '))
++ f.close()
++ return path
++
++
+ def locate_file(path, type = "icons"):
+ prefixes = ['', 'usr/', 'usr/local/']
+ if type == "glade":
+--- a/gnomecatalog/ui/app.py (revision 1)
++++ b/gnomecatalog/ui/app.py (working copy)
+@@ -162,14 +162,6 @@
+ self.import_thread.start()
+ gobject.timeout_add(1000, self.wait_import_cb)
+
+-# t2 = threading.Thread(target=self.wait_import_cb)
+-# t2.setDaemon(True)
+-# t2.start()
+-
+-# gobject.idle_add(self.wait_import_cb, t)
+-
+- #dialogs.addDisk(self.data).loadDisk()
+-
+ def wait_import_cb(self):
+ if not self.import_thread.isAlive():
+ self.hbox_import.hide()
+
+
diff --git a/app-misc/gnomecatalog/gnomecatalog-0.3.4.2.ebuild b/app-misc/gnomecatalog/gnomecatalog-0.3.4.2.ebuild
new file mode 100644
index 000000000000..c572f86e4f1e
--- /dev/null
+++ b/app-misc/gnomecatalog/gnomecatalog-0.3.4.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/gnomecatalog/gnomecatalog-0.3.4.2.ebuild,v 1.1 2009/03/22 14:27:47 eva Exp $
+
+EAPI="2"
+
+inherit eutils python distutils
+
+DESCRIPTION="Cataloging software for CDs and DVDs."
+HOMEPAGE="http://gnomecatalog.sf.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=x11-libs/gtk+-2.4
+ >=gnome-base/libglade-2
+ dev-python/pyvorbis
+ >=dev-lang/python-2.5
+ dev-python/pysqlite:2
+ || (
+ >=dev-lang/python-2.5[xml]
+ dev-python/pyxml )
+ dev-python/kaa-metadata
+
+ dev-python/gconf-python
+ dev-python/libgnome-python
+ dev-python/gnome-vfs-python
+ dev-python/pygobject
+ >=dev-python/pygtk-2.4"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # Fix importing from a single folder in /media
+ epatch "${FILESDIR}/${P}-dbus.patch"
+}