dev-python/imaging: drop package

This commit is contained in:
David Michael 2017-05-04 15:11:09 -07:00
parent 957b66482d
commit 2ecc422bf1
8 changed files with 0 additions and 209 deletions

View File

@ -1 +0,0 @@
DIST Imaging-1.1.7.tar.gz 498749 RMD160 9af570fe100e250a4860314341fe3e6d695d7fde SHA1 76c37504251171fda8da8e63ecb8bc42a69a5c81 SHA256 895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211

View File

@ -1,14 +0,0 @@
--- Imaging-1.1.6.orig/PIL/GifImagePlugin.py 2006-12-03 11:37:15.000000000 +0000
+++ Imaging-1.1.6/PIL/GifImagePlugin.py 2008-10-02 14:51:43.000000000 +0100
@@ -352,6 +352,11 @@
for i in range(maxcolor):
s.append(chr(i) * 3)
+ if im.info.has_key('transparency'):
+ transparentIndex = im.info['transparency']
+ s.append('!' + chr(0xf9) + chr(4) + chr(1) + chr(0) + chr(0) +
+ chr(transparentIndex) + chr(0))
+
return s
def getdata(im, offset = (0, 0), **params):

View File

@ -1,20 +0,0 @@
--- setup.py.old 2009-07-03 11:34:59.141671252 +0200
+++ setup.py 2009-07-03 11:51:54.415666711 +0200
@@ -281,6 +281,8 @@ class pil_build_ext(build_ext):
if struct.unpack("h", "\0\1")[0] == 1:
defs.append(("WORDS_BIGENDIAN", None))
+ libs.append("m")
+
exts = [(Extension(
"_imaging", files, libraries=libs, define_macros=defs
))]
@@ -332,7 +334,7 @@ class pil_build_ext(build_ext):
))
if os.path.isfile("_imagingmath.c"):
- exts.append(Extension("_imagingmath", ["_imagingmath.c"]))
+ exts.append(Extension("_imagingmath", ["_imagingmath.c"], libraries=["m"]))
self.extensions[:] = exts

View File

@ -1,18 +0,0 @@
--- PIL/ImageShow.py.old 2009-11-30 10:28:37.000000000 +0100
+++ PIL/ImageShow.py 2009-11-30 10:29:02.000000000 +0100
@@ -149,13 +149,10 @@
def get_command_ex(self, file, title=None, **options):
# note: xv is pretty outdated. most modern systems have
# imagemagick's display command instead.
- command = executable = "xv"
- if title:
- # FIXME: do full escaping
- command = command + " -name \"%s\"" % title
+ command = executable = "xdg-open"
return command, executable
- if which("xv"):
+ if which("xdg-open"):
register(XVViewer)
if __name__ == "__main__":

View File

@ -1,13 +0,0 @@
--- setup.py.orig
+++ setup.py 2011-09-04
@@ -264,10 +264,6 @@
if dir:
add_directory(self.compiler.include_dirs, dir, 0)
- if find_include_file(self, "lcms.h"):
- if find_library_file(self, "lcms"):
- feature.lcms = "lcms"
-
if _tkinter and find_include_file(self, "tk.h"):
# the library names may vary somewhat (e.g. tcl84 or tcl8.4)
version = TCL_VERSION[0] + TCL_VERSION[2]

View File

@ -1,13 +0,0 @@
--- Imaging-1.1.6/Sane/_sane.c.orig 2006-12-03 13:12:22.000000000 +0100
+++ Imaging-1.1.6/Sane/_sane.c 2009-02-28 11:41:19.000000000 +0200
@@ -1152,8 +1152,8 @@
static PyObject *
PySane_get_devices(PyObject *self, PyObject *args)
{
- SANE_Device **devlist;
- SANE_Device *dev;
+ const SANE_Device **devlist;
+ const SANE_Device *dev;
SANE_Status st;
PyObject *list;
int local_only, i;

View File

@ -1,117 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.7-r1.ebuild,v 1.10 2012/04/17 21:57:44 ranger Exp $
EAPI="3"
PYTHON_DEPEND="2"
PYTHON_USE_WITH="tk"
PYTHON_USE_WITH_OPT="tk"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
inherit eutils multilib distutils
MY_P=Imaging-${PV}
DESCRIPTION="Python Imaging Library (PIL)"
HOMEPAGE="http://www.pythonware.com/products/pil/index.htm"
SRC_URI="http://www.effbot.org/downloads/${MY_P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~alpha amd64 arm hppa ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
IUSE="doc examples lcms scanner tk X"
DEPEND="virtual/jpeg
media-libs/freetype:2
lcms? ( media-libs/lcms:0 )
scanner? ( media-gfx/sane-backends )
X? ( x11-misc/xdg-utils )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
DOCS="CHANGES CONTENTS"
pkg_setup() {
PYTHON_MODNAME="PIL $(use scanner && echo sane.py)"
python_pkg_setup
}
src_prepare() {
distutils_src_prepare
epatch "${FILESDIR}/${P}-no-xv.patch"
epatch "${FILESDIR}/${P}-sane.patch"
epatch "${FILESDIR}/${P}-giftrans.patch"
epatch "${FILESDIR}/${P}-missing-math.patch"
if ! use lcms; then
epatch "${FILESDIR}/${P}-nolcms.patch"
fi
# Add shebang.
sed -e "1i#!/usr/bin/python" -i Scripts/pilfont.py \
|| die "sed failed adding shebang"
sed -i \
-e "s:/usr/lib\":/usr/$(get_libdir)\":" \
-e "s:\"lib\":\"$(get_libdir)\":g" \
setup.py || die "sed failed"
if ! use tk; then
# Make the test always fail
sed -i \
-e 's/import _tkinter/raise ImportError/' \
setup.py || die "sed failed"
fi
}
src_compile() {
distutils_src_compile
if use scanner; then
pushd Sane > /dev/null
distutils_src_compile
popd > /dev/null
fi
}
src_test() {
tests() {
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" selftest.py
}
python_execute_function tests
}
src_install() {
distutils_src_install
if use doc; then
dohtml Docs/* || die "dohtml failed"
fi
if use scanner; then
pushd Sane > /dev/null
docinto sane
DOCS="CHANGES sanedoc.txt" distutils_src_install
popd > /dev/null
fi
# Install headers required by media-gfx/sketch.
install_headers() {
insinto "$(python_get_includedir)"
doins libImaging/Imaging.h
doins libImaging/ImPlatform.h
}
python_execute_function install_headers
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins Scripts/* || die "doins failed"
if use scanner; then
insinto /usr/share/doc/${PF}/examples/sane
doins Sane/demo_*.py || die "doins failed"
fi
fi
}

View File

@ -1,13 +0,0 @@
DEFINED_PHASES=compile install postinst postrm prepare setup test
DEPEND=virtual/jpeg media-libs/freetype:2 lcms? ( media-libs/lcms:0 ) scanner? ( media-gfx/sane-backends ) X? ( x11-misc/xdg-utils ) =dev-lang/python-2* tk? ( =dev-lang/python-2*[tk] )
DESCRIPTION=Python Imaging Library (PIL)
EAPI=3
HOMEPAGE=http://www.pythonware.com/products/pil/index.htm
IUSE=doc examples lcms scanner tk X
KEYWORDS=~alpha amd64 arm hppa ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris
LICENSE=as-is
RDEPEND=virtual/jpeg media-libs/freetype:2 lcms? ( media-libs/lcms:0 ) scanner? ( media-gfx/sane-backends ) X? ( x11-misc/xdg-utils ) =dev-lang/python-2* tk? ( =dev-lang/python-2*[tk] )
SLOT=0
SRC_URI=http://www.effbot.org/downloads/Imaging-1.1.7.tar.gz
_eclasses_=distutils ad9e4720eb3e69090dd968b152fc611b eutils ea170b525f6a38a006be05c9d9429f13 multilib 165fc17c38d1b11dac2008280dab6e80 python efc1c55fc44c5b7272fc2ffba73c3e6f toolchain-funcs 1b1da0c45c555989dc5d832b54880783
_md5_=d5f4b5a6eb7b127feffdbf9f0df95d71