From d8db2929f75d4f7c2a5f053f2ad60194073ecced Mon Sep 17 00:00:00 2001 From: "David Grant (dgrant)" Date: Tue, 26 Sep 2006 07:07:59 +0000 Subject: net-mail/gmail-notify: Added ubuntu patches (without which gmail-notify was somewhat broken), added patch to use gnome-python-extras instead, and clean up ebuild svn path=/sunrise/; revision=1343 --- net-mail/gmail-notify/gmail-notify-1.6.1.ebuild | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'net-mail/gmail-notify/gmail-notify-1.6.1.ebuild') diff --git a/net-mail/gmail-notify/gmail-notify-1.6.1.ebuild b/net-mail/gmail-notify/gmail-notify-1.6.1.ebuild index 4a9a6f99f..bcb4acd0b 100644 --- a/net-mail/gmail-notify/gmail-notify-1.6.1.ebuild +++ b/net-mail/gmail-notify/gmail-notify-1.6.1.ebuild @@ -14,28 +14,31 @@ KEYWORDS="~x86" IUSE="" RESTRICT="strip" -RDEPEND="virtual/python - >=dev-python/pygtk-2.0 - >=x11-libs/gtk+-2.4" +RDEPEND="dev-python/gnome-python-extras + >=dev-python/pygtk-2.0" DEPEND="${RDEPEND}" S=${WORKDIR}/${PN} +src_unpack() { + python_version + unpack ${A} + epatch "${FILESDIR}/${PN}-trayicon.patch" + epatch "${FILESDIR}/${PN}-ubuntu-patches.patch" + cd ${S} + sed -i -e "s/GENTOO_PYVER/${PYVER}/g" notifier.py || die "Sed broke!" + sed -i -e "s/GENTOO_PYVER/${PYVER}/g" GmailConfig.py || die "Sed broke!" +} + src_install() { python_version INST_DIR=/usr/lib/python${PYVER}/site-packages/${PN} - #Install docs dodoc README - #Install all python files into site-packages insinto ${INST_DIR} doins *.py *.jpg *.png langs.xml pytrayicon.so notifier.conf.sample - #Install a script in /usr/bin - echo "#!/bin/bash" > gmail-notify - echo "exec /usr/bin/python ${INST_DIR}/notifier.py \"\$1\"" >> gmail-notify - dobin gmail-notify make_wrapper gmail-notify "/usr/bin/python ${INST_DIR}/notifier.py" } -- cgit v1.2.3-18-g5258