summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/gmail-notify/gmail-notify-1.6.1.1.ebuild')
-rw-r--r--net-mail/gmail-notify/gmail-notify-1.6.1.1.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/net-mail/gmail-notify/gmail-notify-1.6.1.1.ebuild b/net-mail/gmail-notify/gmail-notify-1.6.1.1.ebuild
new file mode 100644
index 000000000..f2a8713f4
--- /dev/null
+++ b/net-mail/gmail-notify/gmail-notify-1.6.1.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit python eutils
+
+DESCRIPTION="A notification applet for Gmail that's alternative to the one released from Google"
+HOMEPAGE="http://gmail-notify.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-python/gnome-python-extras
+ >=dev-python/pygtk-2.0"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ python_version
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-conf-perms.patch" \
+ "${FILESDIR}/${PN}-trayicon.patch" \
+ "${FILESDIR}/${PN}-ubuntu-patches.patch"
+
+ # substitute the "GENTOO_PYVER" that was added by ${PN}-ubuntu-patches.patch
+ sed -i -e "s/GENTOO_PYVER/${PYVER}/g" *.py || die "Sed broke!"
+}
+
+src_install() {
+ python_version
+ local instdir=$(python_get_sitedir)/${PN}
+
+ dodoc README || die
+
+ insinto "${instdir}"
+ doins *.py *.jpg *.png langs.xml notifier.conf.sample || die
+
+ make_wrapper gmail-notify "${python} ${instdir}/notifier.py"
+}
+
+pkg_postinst() {
+ python_mod_optimize "$(python_get_sitedir)/${PN}"
+ einfo
+ einfo "Run gmail-notify to start the program"
+ einfo
+ ewarn "Warning: if you check the 'save username and password' option"
+ ewarn "your password will be stored in plaintext in ~/.notifier.conf"
+}
+
+pkg_postrm() {
+ python_mod_cleanup "$(python_get_sitedir)/${PN}"
+}