diff options
Diffstat (limited to 'app-misc/specto')
-rw-r--r-- | app-misc/specto/Manifest | 6 | ||||
-rw-r--r-- | app-misc/specto/files/specto-0.4.1-icon-theme.patch | 30 | ||||
-rw-r--r-- | app-misc/specto/metadata.xml | 12 | ||||
-rw-r--r-- | app-misc/specto/specto-0.4.1-r1.ebuild | 39 |
4 files changed, 87 insertions, 0 deletions
diff --git a/app-misc/specto/Manifest b/app-misc/specto/Manifest new file mode 100644 index 000000000000..c8fc91e4ac17 --- /dev/null +++ b/app-misc/specto/Manifest @@ -0,0 +1,6 @@ +AUX specto-0.4.1-icon-theme.patch 1545 SHA256 77c46969b1b3cdfba82acd02d5a1e79bd8dc92029945ab57133fc3ea95da624f SHA512 b82a18e63d91f0758b4d8844efbd25b3fe8a1a5a9343d5881d30f57bfbfbfc83b538cbd6821c8ca9631744698d610449b9bad60f81cce6666a149fd76617c122 WHIRLPOOL 8272dbdd9c64b1889268a788b231ddc50705226b30764cce73ac5be5a53f8d24d385c32b0978b6cf1ab4cb1c12e88b825de1f84f238ca69bc345ac60e1ad2f74 +DIST specto-0.4.1.tar.gz 316337 SHA256 aa2415ea35f00a0bb6fc20dda56ef7c840c8971e325f87eae80f6f9cd40d8ecc SHA512 0952b3411618188eec1f4e73895d4ce4a7696617d4ff2621552a5f06248853d0feccb6887a41af2ac4fbc928d366e89bcf87425a6786dfc91254b9c6f766f197 WHIRLPOOL 7be6a5911db5e6cabe66994f9c58bd1ab17bcb1925d08c5fbea54cb44cec3a01591d1e66bf7d690ca3dceb3b1c598b0c02b03c9eef7419ac663c8c09a5c8961c +EBUILD specto-0.4.1-r1.ebuild 1031 SHA256 c735c0a6528a134eec9ff4dfb56f944215fdfeea95468ab5b33e036f427cf86a SHA512 3b6f1a931b197025e95fd380ffb2d52779a7dc71c2c54af44bc6e05a9ed4212562a9778a67428f77741e598b76b810c19e6d2f754fb55c63ae6b12352bf0ba13 WHIRLPOOL 39dbff311b9d9af51b0ed0fc5fc6972b1a754d2966b34821abf3a3e844a1070d8bda6ed9b9a19d1c6c204ab3b437db2cc468264c2b677c03cb9b55301ddea72e +MISC ChangeLog 2930 SHA256 54cb14e92a0f131f1583cca0c9263f20c79bfd384ef9faa8f987188098166e6d SHA512 74f7432704a063efe42626cb4242f0ecd6a4a0fa26e6126d9f0820e08c8123b1dec532eb738f090c8880f19df081952c9194a49a862db25d449e44b52ecea2f0 WHIRLPOOL 2e12ded6ba193490902a093241278077f38e1411de425342149299eb41b0e966001f968c0bd2cdb5a10375de52749c0d47d2683f4438defaa5a5baee7894061e +MISC ChangeLog-2015 1581 SHA256 b6b82bb31fb27f50031be5b7b79981c4ad44e7d135c90923acfbfb7c4b7e6637 SHA512 23ff919b64a956cebcbd4e951c0c134e7ede56044b97a09747d82656df4a98e8f3b873316b00f48907ed38f40150365dec6448a79b36d4270acbccd6acdfa340 WHIRLPOOL 5c7b4a797d060bf675fc3664fec8cb521df6b0be75ac6dfe96c4b92bfc124bf5e62c01e6ada8999d266122817c1e94c8b36e52b62293956847e53c3a321ebcef +MISC metadata.xml 370 SHA256 52c25114c0c6ca8153e324c8e28d4a611872dbac02210a0077b76bb32857bc19 SHA512 c16768081fc96ef7f368c103f4b4a0477b35abe2b3d67d42c214b58426e24bb1e2e7c88637dae11b032769319d9726b5267b1f6c0c66f8f9492b70ea407e331e WHIRLPOOL 498d5d9ba5189f95dea5218607fdfd2c5c69bb1b376e19809fec792d75fcaa332da72dd930485716827f4fa6fde4b2a791bc6998bf2d35012b8db8c32569d3a1 diff --git a/app-misc/specto/files/specto-0.4.1-icon-theme.patch b/app-misc/specto/files/specto-0.4.1-icon-theme.patch new file mode 100644 index 000000000000..60870deba203 --- /dev/null +++ b/app-misc/specto/files/specto-0.4.1-icon-theme.patch @@ -0,0 +1,30 @@ +Replace some GNOME icons with their FreeDesktop equivalents +so that it works with oxygen as a theme. + +--- specto-0.4.1/spectlib/notifier.py ++++ specto-0.4.1/spectlib/notifier.py +@@ -213,11 +213,11 @@ + """ show the right icon for the status from the watch. """ + watch = self.specto.watch_db[id] + statusbar = self.builder.get_object("statusbar1") +- icon = self.get_icon("error", 50, False) ++ icon = self.get_icon("dialog-error", 50, False) + + try: + if status == "checking": +- icon = self.get_icon("reload", 0, False) ++ icon = self.get_icon("view-refresh", 0, False) + statusbar.push(0, (datetime.today().strftime("%H:%M") + " - " + _('The watch "%s" is checking.') % watch.name)) + + elif status == "idle": +@@ -242,8 +242,8 @@ + + elif status == "error": + statusbar.push(0, (datetime.today().strftime("%H:%M") + " - " + _('The watch "%s" has a problem.') % watch.name)) +- balloon_icon = self.get_icon("error", 0, True) +- icon = self.get_icon("error", 50, False) ++ balloon_icon = self.get_icon("dialog-error", 0, True) ++ icon = self.get_icon("dialog-error", 50, False) + if self.specto.specto_gconf.get_entry("pop_toast") == True: + body = watch.escape(watch.error_message) + self.balloon.show_toast(body, balloon_icon, urgency="critical", summary=(_("%s encountered a problem") % watch.name)) diff --git a/app-misc/specto/metadata.xml b/app-misc/specto/metadata.xml new file mode 100644 index 000000000000..9a32966829d9 --- /dev/null +++ b/app-misc/specto/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + </maintainer> + <upstream> + <remote-id type="google-code">specto</remote-id> + <remote-id type="sourceforge">specto</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-misc/specto/specto-0.4.1-r1.ebuild b/app-misc/specto/specto-0.4.1-r1.ebuild new file mode 100644 index 000000000000..4be07d51d38c --- /dev/null +++ b/app-misc/specto/specto-0.4.1-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils + +DESCRIPTION="watch configurable events and trigger notifications" +HOMEPAGE="http://specto.sourceforge.net/" +SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="linguas_cs linguas_de linguas_es linguas_fr linguas_it + linguas_pt_BR linguas_ro linguas_sv linguas_tr" + +RDEPEND="dev-python/gconf-python[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/libgnome-python[${PYTHON_USEDEP}] + dev-python/notify-python[${PYTHON_USEDEP}] + >=dev-python/pygtk-2.10[${PYTHON_USEDEP}]" +DEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-icon-theme.patch + + sed -e "s:share/doc/specto:share/doc/${PF}:" \ + -i setup.py spectlib/util.py || die + + if [ -n "${LINGUAS}" ] ; then + sed -e "/^i18n_languages = /s: = .*: = \"${LINGUAS}\":" \ + -i setup.py || die + fi + + distutils-r1_src_prepare +} |