From 0cd8d82c83d18f3324bc852d99599486e13188a0 Mon Sep 17 00:00:00 2001 From: layman Date: Thu, 30 May 2013 18:21:23 +0800 Subject: [PATCH] New package: [dev-python/notify2] --- dev-python/notify2/Manifest | 1 + dev-python/notify2/notify2-0.3.ebuild | 40 +++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 dev-python/notify2/Manifest create mode 100644 dev-python/notify2/notify2-0.3.ebuild diff --git a/dev-python/notify2/Manifest b/dev-python/notify2/Manifest new file mode 100644 index 0000000000..9c74d498d7 --- /dev/null +++ b/dev-python/notify2/Manifest @@ -0,0 +1 @@ +DIST notify2-0.3.tar.gz 8798 SHA256 684281f91c51fc60bc7909a35bd21d043a2a421f4e269de1ed1f13845d1d6321 diff --git a/dev-python/notify2/notify2-0.3.ebuild b/dev-python/notify2/notify2-0.3.ebuild new file mode 100644 index 0000000000..616c3f86f7 --- /dev/null +++ b/dev-python/notify2/notify2-0.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-twitter/python-twitter-0.8.5.ebuild,v 1.1 2013/02/22 05:42:09 patrick Exp $ + +EAPI="5" +PYTHON_DEPEND="2 3" +SUPPORT_PYTHON_ABIS="1" +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) + +inherit distutils + +DESCRIPTION="Python interface to DBus notifications." +HOMEPAGE="https://bitbucket.org/takluyver/pynotify2" +SRC_URI="http://pypi.python.org/packages/source/n/notify2/notify2-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x64-macos" +IUSE="examples" +PYTHON_MODNAME="notify2.py" + +src_prepare() { + distutils_src_prepare +} + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test_notify2.py + } + python_execute_function testing +} + +src_install() { + distutils_src_install + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins examples/* + fi +}