diff options
-rw-r--r-- | dev-python/imaging/ChangeLog | 84 | ||||
-rw-r--r-- | dev-python/imaging/Manifest | 14 | ||||
-rw-r--r-- | dev-python/imaging/files/digest-imaging-1.1.2-r2 | 1 | ||||
-rw-r--r-- | dev-python/imaging/files/digest-imaging-1.1.3 | 1 | ||||
-rw-r--r-- | dev-python/imaging/files/digest-imaging-1.1.3-r1 | 1 | ||||
-rw-r--r-- | dev-python/imaging/files/digest-imaging-1.1.3-r2 | 1 | ||||
-rw-r--r-- | dev-python/imaging/files/digest-imaging-1.1.4 | 1 | ||||
-rw-r--r-- | dev-python/imaging/files/imaging-1.1.4-fPIC.patch | 11 | ||||
-rw-r--r-- | dev-python/imaging/files/imaging-1.1.4-setup.py.patch | 11 | ||||
-rw-r--r-- | dev-python/imaging/imaging-1.1.2-r2.ebuild | 102 | ||||
-rw-r--r-- | dev-python/imaging/imaging-1.1.3-r1.ebuild | 52 | ||||
-rw-r--r-- | dev-python/imaging/imaging-1.1.3-r2.ebuild | 52 | ||||
-rw-r--r-- | dev-python/imaging/imaging-1.1.3.ebuild | 103 | ||||
-rw-r--r-- | dev-python/imaging/imaging-1.1.4.ebuild | 54 | ||||
-rw-r--r-- | dev-python/imaging/metadata.xml | 5 |
15 files changed, 493 insertions, 0 deletions
diff --git a/dev-python/imaging/ChangeLog b/dev-python/imaging/ChangeLog new file mode 100644 index 000000000000..9e0ad5b9b76d --- /dev/null +++ b/dev-python/imaging/ChangeLog @@ -0,0 +1,84 @@ +# ChangeLog for dev-python/Imaging +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.1 2004/07/19 21:50:44 kloeri Exp $ + +*imaging-1.1.4 (19 Jul 2004) + + 19 Jul 2004; Bryan Østergaard <kloeri@gentoo.org> +metadata.xml, + +files/imaging-1.1.4-fPIC.patch, +files/imaging-1.1.4-setup.py.patch, + +imaging-1.1.2-r2.ebuild, +imaging-1.1.3-r1.ebuild, + +imaging-1.1.3-r2.ebuild, +imaging-1.1.3.ebuild, +imaging-1.1.4.ebuild: + Renamed dev-python/Imaging to dev-python/imaging. + + 31 May 2004; Bryan Østergaard <kloeri@gentoo.org> Imaging-1.1.4.ebuild: + Stable on alpha. + + 04 May 2004; Bryan Østergaard <kloeri@gentoo.org> Imaging-1.1.2-r2.ebuild, + Imaging-1.1.3.ebuild: + Remove default S. + + 25 Apr 2004; Aron Griffis <agriffis@gentoo.org> Imaging-1.1.3-r1.ebuild, + Imaging-1.1.3-r2.ebuild, Imaging-1.1.4.ebuild: + Add die following econf for bug 48950 + + 18 Apr 2004; Daniel Ahlberg <aliz@gentoo.org> Imaging-1.1.4.ebuild: + Created -fPIC patch instead of adding fPIC to CFLAGS. + + 28 Mar 2004; Bryan Østergaard <kloeri@gentoo.org> Imaging-1.1.2-r2.ebuild, + Imaging-1.1.3-r1.ebuild, Imaging-1.1.3-r2.ebuild, Imaging-1.1.3.ebuild: + Update SRC_URI. + + 14 Mar 2004; Jon Portnoy <avenj@gentoo.org> Imaging-1.1.4.ebuild : + AMD64 keywords. + + 26 Feb 2004; Sven Blumenstein <bazik@gentoo.org> Imaging-1.1.4.ebuild: + Stable on sparc. + + 15 Jul 2003; Alastair Tse <liquidx@gentoo.org> Imaging-1.1.4.ebuild, + files/Imaging-1.1.4-setup.py.patch: + add patch to fix installations with tkinter (#24351) + +*Imaging-1.1.4 (02 Jun 2003) + + 02 Jun 2003; Alastair Tse <liquidx@gentoo.org> Imaging-1.1.4.ebuild: + removing tk-8.4 workaround because it is fixed in 1.1.4. version bumping and + various ebuild cleanups. + +*Imaging-1.1.3-r2 (16 May 2003) + + 16 May 2003; Alastair Tse <liquidx@gentoo.org> Imaging-1.1.3-r2.ebuild: + workaround for new tk-8.4.x. thanks to Hyriand <hyriand@thegraveyard.org> + (#21013) + +*Imaging-1.1.3-r1 (05 Mar 2003) + + 25 Mar 2003; Alastair Tse <liquidx@gentoo.org> Imaging-1.1.3-r1.ebuild: + bumping to stable + + 05 Mar 2003; Jason Shoemaker <kutsuya@gentoo.org> Imaging-1.1.3-r1.ebuild: + Modified to take advantage of distutils.eclass. Removed all but ~x86 arch, + because of the major revision. + +*Imaging-1.1.3 (3 Nov 2002) + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + + 3 Nov 2002; Nicholas Henke <roughneck@gentoo.org> Imaging-1.1.3.ebuild : + Bumped version to 1.1.3. + +*Imaging-1.1.2-r2 (1 Feb 2002) + + 20 Oct 2002; Calum Selkirk <cselkirk@gentoo.org> Imaging-1.1.2-r2.euild : + + Added ppc to KEYWORDS. + + 26 Jul 2002; George Shapovalov <george@gentoo.org> Imaging-1.1.2-r2.euild : + added KEYWORDS,SLOT,LICENSE + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/dev-python/imaging/Manifest b/dev-python/imaging/Manifest new file mode 100644 index 000000000000..c371e18d997a --- /dev/null +++ b/dev-python/imaging/Manifest @@ -0,0 +1,14 @@ +MD5 bad71b6caa78568f5833a960ec7bd0b1 imaging-1.1.2-r2.ebuild 2624 +MD5 9f9915d41b39a36e508dc6cfa4356232 imaging-1.1.3-r1.ebuild 1229 +MD5 fc8180263005a449ea9c96874c8f9840 imaging-1.1.3.ebuild 2632 +MD5 e17bdc3f6385815d1e5e29833e58a54d imaging-1.1.3-r2.ebuild 1284 +MD5 aa17b6a3165d7b13917042beb24070bb ChangeLog 3194 +MD5 71c4638c9c88af75b58e5f5cb54fe008 metadata.xml 159 +MD5 8fbfd798d6d5cab08516d4ebad8604fe imaging-1.1.4.ebuild 1329 +MD5 8f3dd92ea003765c3f18202e3ee6be14 files/imaging-1.1.4-fPIC.patch 373 +MD5 7e1eafa229aad0303d6d04c88c1f89e6 files/digest-imaging-1.1.2-r2 65 +MD5 a7c02afc37ec55a40b4369ace30d8fdb files/digest-imaging-1.1.3-r1 65 +MD5 a7c02afc37ec55a40b4369ace30d8fdb files/digest-imaging-1.1.3-r2 65 +MD5 a7c02afc37ec55a40b4369ace30d8fdb files/digest-imaging-1.1.3 65 +MD5 171777970922938dc6a815dd2b6a85de files/digest-imaging-1.1.4 65 +MD5 d0b3528fb0e74be99cf9ac5e9372e317 files/imaging-1.1.4-setup.py.patch 374 diff --git a/dev-python/imaging/files/digest-imaging-1.1.2-r2 b/dev-python/imaging/files/digest-imaging-1.1.2-r2 new file mode 100644 index 000000000000..3f725028aad7 --- /dev/null +++ b/dev-python/imaging/files/digest-imaging-1.1.2-r2 @@ -0,0 +1 @@ +MD5 a17e1a769c7cfbd0ca0b358aa96ecd05 Imaging-1.1.2.tar.gz 336739 diff --git a/dev-python/imaging/files/digest-imaging-1.1.3 b/dev-python/imaging/files/digest-imaging-1.1.3 new file mode 100644 index 000000000000..9f6f98af43e5 --- /dev/null +++ b/dev-python/imaging/files/digest-imaging-1.1.3 @@ -0,0 +1 @@ +MD5 563471981376e06b3278ad713a07e2a8 Imaging-1.1.3.tar.gz 346194 diff --git a/dev-python/imaging/files/digest-imaging-1.1.3-r1 b/dev-python/imaging/files/digest-imaging-1.1.3-r1 new file mode 100644 index 000000000000..9f6f98af43e5 --- /dev/null +++ b/dev-python/imaging/files/digest-imaging-1.1.3-r1 @@ -0,0 +1 @@ +MD5 563471981376e06b3278ad713a07e2a8 Imaging-1.1.3.tar.gz 346194 diff --git a/dev-python/imaging/files/digest-imaging-1.1.3-r2 b/dev-python/imaging/files/digest-imaging-1.1.3-r2 new file mode 100644 index 000000000000..9f6f98af43e5 --- /dev/null +++ b/dev-python/imaging/files/digest-imaging-1.1.3-r2 @@ -0,0 +1 @@ +MD5 563471981376e06b3278ad713a07e2a8 Imaging-1.1.3.tar.gz 346194 diff --git a/dev-python/imaging/files/digest-imaging-1.1.4 b/dev-python/imaging/files/digest-imaging-1.1.4 new file mode 100644 index 000000000000..9ed5eedc0531 --- /dev/null +++ b/dev-python/imaging/files/digest-imaging-1.1.4 @@ -0,0 +1 @@ +MD5 d2c03c25a9a0128832137dd536da88da Imaging-1.1.4.tar.gz 416338 diff --git a/dev-python/imaging/files/imaging-1.1.4-fPIC.patch b/dev-python/imaging/files/imaging-1.1.4-fPIC.patch new file mode 100644 index 000000000000..f39e0870bf4c --- /dev/null +++ b/dev-python/imaging/files/imaging-1.1.4-fPIC.patch @@ -0,0 +1,11 @@ +--- libImaging/Makefile.in 2004-04-18 16:53:00.242241087 +0000 ++++ libImaging/Makefile.in 2004-04-18 17:02:49.245737559 +0000 +@@ -128,5 +128,8 @@ + + # -------------------------------------------------------------------- + ++%.o: %.c ++ ${CC} ${CFLAGS} -fPIC -c $< -o $@ ++ + # DO NOT DELETE THIS LINE -- mkdep uses it. + # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. diff --git a/dev-python/imaging/files/imaging-1.1.4-setup.py.patch b/dev-python/imaging/files/imaging-1.1.4-setup.py.patch new file mode 100644 index 000000000000..d115d2b68ecc --- /dev/null +++ b/dev-python/imaging/files/imaging-1.1.4-setup.py.patch @@ -0,0 +1,11 @@ +--- setup.py.old 2003-07-15 22:44:54.000000000 +0100 ++++ setup.py 2003-07-15 22:46:29.000000000 +0100 +@@ -229,6 +229,8 @@ + INCLUDE_DIRS = ["libImaging"] + LIBRARY_DIRS = [] + LIBRARIES = [] ++ EXTRA_COMPILE_ARGS = None ++ EXTRA_LINK_ARGS = None + have_freetype = 1 # Assume we have it, unless proven otherwise + + # use source distribution, if available diff --git a/dev-python/imaging/imaging-1.1.2-r2.ebuild b/dev-python/imaging/imaging-1.1.2-r2.ebuild new file mode 100644 index 000000000000..dc326b42b368 --- /dev/null +++ b/dev-python/imaging/imaging-1.1.2-r2.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.2-r2.ebuild,v 1.1 2004/07/19 21:50:44 kloeri Exp $ + +MY_P=${P/imaging/Imaging} +S=${WORKDIR}/${MY_P} + +IUSE="tcltk" + +DESCRIPTION="Python Imaging Library (PIL)." +SRC_URI="http://www.pythonware.net/storage/${MY_P}.tar.gz" +HOMEPAGE="http://www.pythonware.com/downloads/#pil" + +DEPEND=">=dev-lang/python-2.0 + >=media-libs/jpeg-6a + >=sys-libs/zlib-0.95 + tcltk? ( dev-lang/tk )" + +SLOT="0" +KEYWORDS="x86 sparc alpha ppc" +LICENSE="as-is" + +src_compile() { + #This is a goofy build. + + #Build the core imaging library (libImaging.a) + cd ${S}/libImaging + + ./configure --prefix=/usr \ + --host=${CHOST} || die + cp Makefile Makefile.orig + + #Not configured by configure + sed \ + -e "s:\(JPEGINCLUDE=[[:blank:]]*/usr/\)local/\(include\).*:\1\2:" \ + -e "s:\(OPT=[[:blank:]]*\).*:\1${CFLAGS}:" \ + Makefile.orig > Makefile + + emake || die + + #Build loadable python modules + cd ${S} + + local scmd="" + + #First change all the "/usr/local" to "/usr" + scmd="$scmd s:/usr/local:/usr:g;" + + # adjust for USE tcltk + if use tcltk; then + # Find the version of tcl/tk that has headers installed. + # This will be the most recently merged, not necessarily the highest + # version number. + tclv=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/') + tkv=$( grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/') + # adjust Setup to match + scmd="$scmd s/-ltcl[0-9.]* -ltk[0-9.]*/-ltcl$tclv -ltk$tkv/;" + else + scmd="$scmd s:\(^_imagingtk\):#\1:;" + fi + + sed "$scmd" Setup.in > Setup + + #No configure (#$%@!%%) + scmd="" + cp Makefile.pre.in Makefile.pre.in.orig + #change all the "/usr/local" to "/usr" (haven't we been here before) + scmd="$scmd s:/usr/local:/usr:g;" + #fix man paths + scmd="$scmd "'s:^\(MANDIR=.*/\)\(man\):\1share/\2:;' + #Insert make.conf CFLAGS settings + scmd="$scmd "'s:$(OPT)'":${CFLAGS}:;" + + sed "$scmd" Makefile.pre.in.orig > Makefile.pre.in + + #Now generate a top level Makefile + make -f Makefile.pre.in boot || die + + emake || die +} + +src_install () { + #grab python verision so ebuild doesn't depend on it + local pv + pv=$(python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:') + + + insinto /usr/lib/python$pv/site-packages + doins PIL.pth + + insinto /usr/lib/python$pv/site-packages/PIL + doins _imaging.so PIL/* + use tcltk && doins _imagingtk.so + + # install headers required by media-gfx/sketch + insinto /usr/include/python$pv + doins libImaging/Imaging.h + doins libImaging/ImPlatform.h + doins libImaging/ImConfig.h + + dodoc CHANGES CONTENTS FORMATS README +} diff --git a/dev-python/imaging/imaging-1.1.3-r1.ebuild b/dev-python/imaging/imaging-1.1.3-r1.ebuild new file mode 100644 index 000000000000..7a58b038b07b --- /dev/null +++ b/dev-python/imaging/imaging-1.1.3-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.3-r1.ebuild,v 1.1 2004/07/19 21:50:44 kloeri Exp $ + +inherit distutils + +MY_P=${P/imaging/Imaging} +S=${WORKDIR}/${MY_P} + +IUSE="tcltk" + +DESCRIPTION="Python Imaging Library (PIL)." +SRC_URI="http://www.pythonware.net/storage/${MY_P}.tar.gz" +HOMEPAGE="http://www.pythonware.com/downloads/#pil" + +DEPEND=">=media-libs/jpeg-6a + >=sys-libs/zlib-0.95 + tcltk? ( dev-lang/tk )" + +SLOT="0" +KEYWORDS="x86 ~sparc ~alpha ~ppc" +LICENSE="as-is" + +src_compile() { + export OPT=${CFLAGS} + + #Build the core imaging library (libImaging.a) + cd ${S}/libImaging + econf || die "econf failed" + cp Makefile Makefile.orig + + #Not configured by configure + sed \ + -e "s:\(JPEGINCLUDE=[[:blank:]]*/usr/\)local/\(include\).*:\1\2:" \ + Makefile.orig > Makefile + emake || die + cd ${S} + distutils_src_compile +} + +src_install () +{ + local mydoc="CHANGES* CONTENTS" + distutils_src_install + distutils_python_version + + # install headers required by media-gfx/sketch + insinto "${ROOT}/usr/include/python${PYVER}" + doins libImaging/Imaging.h + doins libImaging/ImPlatform.h + doins libImaging/ImConfig.h +} diff --git a/dev-python/imaging/imaging-1.1.3-r2.ebuild b/dev-python/imaging/imaging-1.1.3-r2.ebuild new file mode 100644 index 000000000000..e4d02176c4dd --- /dev/null +++ b/dev-python/imaging/imaging-1.1.3-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.3-r2.ebuild,v 1.1 2004/07/19 21:50:44 kloeri Exp $ + +inherit distutils + +MY_P=${P/imaging/Imaging} +S=${WORKDIR}/${MY_P} + +IUSE="tcltk" + +DESCRIPTION="Python Imaging Library (PIL)." +SRC_URI="http://www.pythonware.net/storage/${MY_P}.tar.gz" +HOMEPAGE="http://www.pythonware.com/downloads/#pil" + +DEPEND=">=media-libs/jpeg-6a + >=sys-libs/zlib-0.95 + tcltk? ( dev-lang/tk )" + +SLOT="0" +KEYWORDS="x86 ~sparc ~alpha ~ppc" +LICENSE="as-is" + +src_compile() { + export OPT=${CFLAGS} + + #Build the core imaging library (libImaging.a) + cd ${S}/libImaging + econf || die "econf failed" + cp Makefile Makefile.orig + + #Not configured by configure + sed \ + -e "s:\(JPEGINCLUDE=[[:blank:]]*/usr/\)local/\(include\).*:\1\2:" \ + Makefile.orig > Makefile + emake || die + cd ${S} + CFLAGS="$(CFLAGS) -DUSE_COMPOSITELESS_PHOTO_PUT_BLOCK" distutils_src_compile +} + +src_install () +{ + local mydoc="CHANGES* CONTENTS" + distutils_src_install + distutils_python_version + + # install headers required by media-gfx/sketch + insinto "${ROOT}/usr/include/python${PYVER}" + doins libImaging/Imaging.h + doins libImaging/ImPlatform.h + doins libImaging/ImConfig.h +} diff --git a/dev-python/imaging/imaging-1.1.3.ebuild b/dev-python/imaging/imaging-1.1.3.ebuild new file mode 100644 index 000000000000..f2f823931a67 --- /dev/null +++ b/dev-python/imaging/imaging-1.1.3.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.3.ebuild,v 1.1 2004/07/19 21:50:44 kloeri Exp $ + +IUSE="tcltk" + +MY_P=${P/imaging/Imaging} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Python Imaging Library (PIL)." +SRC_URI="http://www.pythonware.net/storage/${MY_P}.tar.gz" +HOMEPAGE="http://www.pythonware.com/downloads/#pil" + +DEPEND=">=dev-lang/python-2.0 + >=media-libs/jpeg-6a + >=sys-libs/zlib-0.95 + tcltk? ( dev-lang/tk )" + +RDEPEND="" + +SLOT="0" +KEYWORDS="x86 sparc alpha ppc" +LICENSE="as-is" + +src_compile() { + #This is a goofy build. + + #Build the core imaging library (libImaging.a) + cd ${S}/libImaging + + ./configure --prefix=/usr \ + --host=${CHOST} || die + cp Makefile Makefile.orig + + #Not configured by configure + sed \ + -e "s:\(JPEGINCLUDE=[[:blank:]]*/usr/\)local/\(include\).*:\1\2:" \ + -e "s:\(OPT=[[:blank:]]*\).*:\1${CFLAGS}:" \ + Makefile.orig > Makefile + + emake || die + + #Build loadable python modules + cd ${S} + + local scmd="" + + #First change all the "/usr/local" to "/usr" + scmd="$scmd s:/usr/local:/usr:g;" + + # adjust for USE tcltk + if use tcltk; then + # Find the version of tcl/tk that has headers installed. + # This will be the most recently merged, not necessarily the highest + # version number. + tclv=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/') + tkv=$( grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/') + # adjust Setup to match + scmd="$scmd s/-ltcl[0-9.]* -ltk[0-9.]*/-ltcl$tclv -ltk$tkv/;" + else + scmd="$scmd s:\(^_imagingtk\):#\1:;" + fi + + sed "$scmd" Setup.in > Setup + + #No configure (#$%@!%%) + scmd="" + cp Makefile.pre.in Makefile.pre.in.orig + #change all the "/usr/local" to "/usr" (haven't we been here before) + scmd="$scmd s:/usr/local:/usr:g;" + #fix man paths + scmd="$scmd "'s:^\(MANDIR=.*/\)\(man\):\1share/\2:;' + #Insert make.conf CFLAGS settings + scmd="$scmd "'s:$(OPT)'":${CFLAGS}:;" + + sed "$scmd" Makefile.pre.in.orig > Makefile.pre.in + + #Now generate a top level Makefile + make -f Makefile.pre.in boot || die + + emake || die +} + +src_install () { + #grab python verision so ebuild doesn't depend on it + local pv + pv=$(python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:') + + insinto /usr/lib/python$pv/site-packages + doins PIL.pth + + insinto /usr/lib/python$pv/site-packages/PIL + doins _imaging.so PIL/* + use tcltk && doins _imagingtk.so + + # install headers required by media-gfx/sketch + insinto /usr/include/python$pv + doins libImaging/Imaging.h + doins libImaging/ImPlatform.h + doins libImaging/ImConfig.h + + dodoc CHANGES CONTENTS FORMATS README +} diff --git a/dev-python/imaging/imaging-1.1.4.ebuild b/dev-python/imaging/imaging-1.1.4.ebuild new file mode 100644 index 000000000000..28b9f0817f2e --- /dev/null +++ b/dev-python/imaging/imaging-1.1.4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.4.ebuild,v 1.1 2004/07/19 21:50:44 kloeri Exp $ + +inherit distutils eutils + +MY_P=${P/imaging/Imaging} +S=${WORKDIR}/${MY_P} + +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="x86 ~ppc sparc alpha ~amd64" +IUSE="tcltk" + +DEPEND="virtual/python + >=media-libs/jpeg-6a + >=sys-libs/zlib-0.95 + tcltk? ( dev-lang/tk )" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-setup.py.patch + epatch ${FILESDIR}/${P}-fPIC.patch +} + +src_compile() { + export OPT=${CFLAGS} + + #Build the core imaging library (libImaging.a) + cd ${S}/libImaging + econf || die "econf failed" + #Not configured by configure + sed -e "s:\(JPEGINCLUDE=[[:blank:]]*/usr/\)local/\(include\).*:\1\2:" \ + -i Makefile + emake || die + cd ${S}; distutils_src_compile +} + +src_install() { + local mydoc="CHANGES* CONTENTS" + distutils_src_install + distutils_python_version + + # install headers required by media-gfx/sketch + insinto "${ROOT}/usr/include/python${PYVER}" + doins libImaging/Imaging.h + doins libImaging/ImPlatform.h + doins libImaging/ImConfig.h +} diff --git a/dev-python/imaging/metadata.xml b/dev-python/imaging/metadata.xml new file mode 100644 index 000000000000..de483c53568f --- /dev/null +++ b/dev-python/imaging/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>python</herd> +</pkgmetadata> |