[dev-python/notify2]: Migrate to python-r1.eclass

This commit is contained in:
Tom Li committed 2013-08-31 04:36:59 +08:00
1 parent 2a11aa5a78
commit b41c8892eb
1 file changed
+6 -18
@@ -1,15 +1,11 @@
# 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 $
# $Header: $
EAPI="5"
PYTHON_DEPEND="2 3"
PYTHON_RESTRICTED_ABIS="*-pypy-*"
SUPPORT_PYTHON_ABIS="1"
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
inherit distutils
inherit distutils-r1
DESCRIPTION="Python interface to DBus notifications."
HOMEPAGE="https://bitbucket.org/takluyver/pynotify2"
@@ -19,24 +15,16 @@ 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_test() {
python_execute_function testing
"${PYTHON}" setup.py test || die
}
src_install() {
distutils_src_install
python_install_all() {
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins examples/*
fi
distutils-r1_python_install_all
}