dev-python/socketpool: fix EXAMPLES in EAPI 6
authorMaxim Koltsov <maksbotan@gentoo.org>
Mon, 26 Mar 2018 10:09:11 +0000 (13:09 +0300)
committerMaxim Koltsov <maksbotan@gentoo.org>
Mon, 26 Mar 2018 10:09:11 +0000 (13:09 +0300)
Also don't install unneeded files in /usr/socketpool

Closes: https://bugs.gentoo.org/651064
Package-Manager: Portage-2.3.24, Repoman-2.3.6

dev-python/socketpool/socketpool-0.5.3.ebuild

index 60c307504a9798adcad9dffd2fbd20ee8a623fd7..e73308b6f4542b004f75ffa67c7ce564e5ac1f29 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -26,6 +26,12 @@ python_test() {
 }
 
 python_install_all() {
-       use examples && local EXAMPLES=( examples/. )
+       if use examples; then
+               insinto /usr/share/doc/${PF}
+               doins -r examples
+       fi
        distutils-r1_python_install_all
+
+       # package installs unneeded LICENSE files here
+       rm -rf "${ED}"/usr/socketpool || die
 }