dev-python/pillow: don't install example scripts in /usr/bin
authorMike Gilbert <floppym@gentoo.org>
Sun, 27 Nov 2016 21:36:34 +0000 (16:36 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sun, 27 Nov 2016 21:37:19 +0000 (16:37 -0500)
We already install them in /usr/share/doc/${PF}/examples.
This resolves a file collision with dev-python/cgkit.

Bug: https://bugs.gentoo.org/600694

Package-Manager: portage-2.3.2_p11

dev-python/pillow/files/pillow-3.4.2-no-scripts.patch [new file with mode: 0644]
dev-python/pillow/pillow-3.4.2-r1.ebuild [moved from dev-python/pillow/pillow-3.4.2.ebuild with 97% similarity]

diff --git a/dev-python/pillow/files/pillow-3.4.2-no-scripts.patch b/dev-python/pillow/files/pillow-3.4.2-no-scripts.patch
new file mode 100644 (file)
index 0000000..a8aa0ec
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/setup.py b/setup.py
+index 5257e748..410ce788 100644
+--- a/setup.py
++++ b/setup.py
+@@ -746,7 +746,6 @@ setup(name=NAME,
+       ext_modules=[Extension("PIL._imaging", ["_imaging.c"])],
+       include_package_data=True,
+       packages=find_packages(),
+-      scripts=glob.glob("Scripts/*.py"),
+       test_suite='nose.collector',
+       keywords=["Imaging", ],
+       license='Standard PIL License',
similarity index 97%
rename from dev-python/pillow/pillow-3.4.2.ebuild
rename to dev-python/pillow/pillow-3.4.2-r1.ebuild
index 80079f9e621032e483423aa71f85c20b07a43b74..c4ed8bcfde64b8c7eab89daee4974cd390948e9c 100644 (file)
@@ -48,6 +48,10 @@ S="${WORKDIR}/${MY_P}"
 # See _render and _clean in Tests/test_imagefont.py
 DISTUTILS_IN_SOURCE_BUILD=1
 
+PATCHES=(
+       "${FILESDIR}/pillow-3.4.2-no-scripts.patch"
+)
+
 python_prepare_all() {
        # Disable all the stuff we don't want.
        local f