dev-python/libvirt-python: add py3.5, examples, EAPI=6
authorLouis Sautier <sautier.louis@gmail.com>
Thu, 19 Jan 2017 22:40:53 +0000 (23:40 +0100)
committerMatthias Maier <tamiko@gentoo.org>
Fri, 20 Jan 2017 02:29:20 +0000 (20:29 -0600)
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
dev-python/libvirt-python/libvirt-python-9999.ebuild

index 00143e054ed2cec658ab99222cdfdb84e2a6f2b9..d2c9b6797911ad0a10220f262289d1b9c9fcbc82 100644 (file)
@@ -2,13 +2,13 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-PYTHON_COMPAT=( python{2_7,3_4} )
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
 
 MY_P="${P/_rc/-rc}"
 
-inherit eutils distutils-r1
+inherit distutils-r1
 
 if [[ ${PV} = *9999* ]]; then
        inherit git-r3
@@ -27,7 +27,7 @@ DESCRIPTION="libvirt Python bindings"
 HOMEPAGE="https://www.libvirt.org"
 LICENSE="LGPL-2"
 SLOT="0"
-IUSE="test"
+IUSE="examples test"
 
 DEPEND="${RDEPEND}
        virtual/pkgconfig
@@ -37,3 +37,11 @@ DEPEND="${RDEPEND}
 python_test() {
        esetup.py test
 }
+
+python_install_all() {
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+       distutils-r1_python_install_all
+}