1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="A notification applet for Gmail that's alternative to the one released from Google"
8 HOMEPAGE="http://gmail-notify.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
16 RDEPEND="dev-python/gnome-python-extras
17 >=dev-python/pygtk-2.0"
26 epatch "${FILESDIR}/${PN}-conf-perms.patch" \
27 "${FILESDIR}/${PN}-trayicon.patch" \
28 "${FILESDIR}/${PN}-ubuntu-patches.patch"
30 # substitute the "GENTOO_PYVER" that was added by ${PN}-ubuntu-patches.patch
31 sed -i -e "s/GENTOO_PYVER/${PYVER}/g" *.py || die "Sed broke!"
36 local instdir=$(python_get_sitedir)/${PN}
41 doins *.py *.jpg *.png langs.xml notifier.conf.sample || die
43 make_wrapper gmail-notify "${python} ${instdir}/notifier.py"
47 python_mod_optimize "$(python_get_sitedir)/${PN}"
49 einfo "Run gmail-notify to start the program"
51 ewarn "Warning: if you check the 'save username and password' option"
52 ewarn "your password will be stored in plaintext in ~/.notifier.conf"
56 python_mod_cleanup "$(python_get_sitedir)/${PN}"