summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-12-06 15:53:25 +0000
committerJustin Lecher <jlec@gentoo.org>2010-12-06 15:53:25 +0000
commit79a50a74fcc7d18f4ceb71db8396601b399a2c4d (patch)
treecd377e77d7be0f18d7000ea1071c8cbd6c4fbb5b /dev-python
parentalpha stable wrt #342829 (diff)
downloadhistorical-79a50a74fcc7d18f4ceb71db8396601b399a2c4d.tar.gz
historical-79a50a74fcc7d18f4ceb71db8396601b399a2c4d.tar.bz2
historical-79a50a74fcc7d18f4ceb71db8396601b399a2c4d.zip
Correct handling of image type support, thanks cschwan for providing the patches, #347722
Package-Manager: portage-2.2.0_alpha7/cvs/Linux x86_64
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/gdmodule/ChangeLog9
-rw-r--r--dev-python/gdmodule/Manifest11
-rw-r--r--dev-python/gdmodule/files/gdmodule-0.56-fix-libs.patch116
-rw-r--r--dev-python/gdmodule/gdmodule-0.56-r1.ebuild30
-rw-r--r--dev-python/gdmodule/gdmodule-0.56-r2.ebuild46
5 files changed, 176 insertions, 36 deletions
diff --git a/dev-python/gdmodule/ChangeLog b/dev-python/gdmodule/ChangeLog
index 3dd89e33c15d..6a631b4e7a4b 100644
--- a/dev-python/gdmodule/ChangeLog
+++ b/dev-python/gdmodule/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/gdmodule
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/gdmodule/ChangeLog,v 1.3 2010/11/25 14:14:40 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/gdmodule/ChangeLog,v 1.4 2010/12/06 15:53:25 jlec Exp $
+
+*gdmodule-0.56-r2 (06 Dec 2010)
+
+ 06 Dec 2010; Justin Lecher <jlec@gentoo.org> -gdmodule-0.56-r1.ebuild,
+ +gdmodule-0.56-r2.ebuild, +files/gdmodule-0.56-fix-libs.patch:
+ Correct handling of image type support, thanks cschwan for providing the
+ patches, #347722
*gdmodule-0.56-r1 (25 Nov 2010)
diff --git a/dev-python/gdmodule/Manifest b/dev-python/gdmodule/Manifest
index 6de63d744052..12e34e07cd6d 100644
--- a/dev-python/gdmodule/Manifest
+++ b/dev-python/gdmodule/Manifest
@@ -2,15 +2,16 @@
Hash: SHA1
AUX 0.56-libs.patch 813 RMD160 8da4d35b293698a606c0946c6568f33795ba435f SHA1 c456dac119e17abcf322cf1231390658980f158f SHA256 9c07725c983abcccb42df3d3f615d5cc95bc247613701e556cb079878f38a71c
+AUX gdmodule-0.56-fix-libs.patch 2629 RMD160 2bffb2cd0eb789da298476fe2a137cfdc9d89054 SHA1 096f46a11218f37c0fc51ff51605605cf871c868 SHA256 38221d3d1d1609eb696cbf59e8d1a8b9ea079607fed34eb1c5a5647e22a9c6ee
DIST gdmodule-0.56.tar.gz 48748 RMD160 fb3c2e77a59840272d12c786d187b096e1eec53d SHA1 519a64e14897599d879b82a5f5b0f308a14826e3 SHA256 a3a2fd6378e32f10a348c4db428a91e2c1adc28de6ec35c0619a52e379f4edec
-EBUILD gdmodule-0.56-r1.ebuild 747 RMD160 15b49d790390a5cf306702a34e1934367427aaed SHA1 c6961ed66326b4ce182024ee9c4ee23040051610 SHA256 48d3d09167687f6ed9ba1d1a4030246866f11da48f12e1d68054a4fd06279224
+EBUILD gdmodule-0.56-r2.ebuild 1238 RMD160 4d80f6290fbfca1b602f05c9f2ac154419d27345 SHA1 0e768935914ace1385ac8c399fa7bf480e8e96ac SHA256 7751ae77cb777196b4e21291ed433c94cd20d04e5b176dae95178d96287d007a
EBUILD gdmodule-0.56.ebuild 701 RMD160 16bb7be6fbcc2c04d1c5abeec7f3a196b958527d SHA1 87b9c7f0c83429b23171003d2ed99c72a8ccf1f1 SHA256 162c88593a921993b33df63ba3ee67e4a35c283595b533a3f6761c893527b7ab
-MISC ChangeLog 684 RMD160 ee1402372ff10f297526d7b0c4c0067d6b711e2e SHA1 8f0dbbc0b1a53737e4c8ddd50b8b642afa3fe18b SHA256 528bbcb6075a373fd1cea6dd418256b90fc8bd34a8ffb05fe6c3d69373b84232
+MISC ChangeLog 950 RMD160 fffada151b44b3309f692c77dbf4ee68037c68c9 SHA1 13986b47550401740e61055eeb97f2892b383613 SHA256 b90f93df2fc12b43973d2dd97f80a1090eea7a5e3e746c28bbf3e3aac5968d94
MISC metadata.xml 265 RMD160 f5ae95bca7157e7cfd7c06d1ef8da4d4f345c103 SHA1 a17cb8d4edcdba95541a639514dd18612cc8ba38 SHA256 c1bb4042c02e9f553e826f5348138ca9b88ff2138866ba899db418ec2263c1fc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
-iEYEARECAAYFAkzub1UACgkQgAnW8HDreRZoGACgqXxz1hzjLNqa5iWVL3gQwgQv
-2+kAoL9haLHYsFTS73LbJaMgw7ay37s0
-=gpvD
+iEYEARECAAYFAkz9BvsACgkQgAnW8HDreRYKdQCgwpVB0/GaiogLXtovkzU5vC/X
+dlIAnixGLB1um099F1St/SePsjhMGMWw
+=58i0
-----END PGP SIGNATURE-----
diff --git a/dev-python/gdmodule/files/gdmodule-0.56-fix-libs.patch b/dev-python/gdmodule/files/gdmodule-0.56-fix-libs.patch
new file mode 100644
index 000000000000..bb46490986a9
--- /dev/null
+++ b/dev-python/gdmodule/files/gdmodule-0.56-fix-libs.patch
@@ -0,0 +1,116 @@
+--- Setup.py.orig 2005-03-11 04:29:59.000000000 +0000
++++ Setup.py 2010-12-06 07:15:26.332707178 +0000
+@@ -1,102 +1,11 @@
+ # Setup for gdmodule 0.50 and later
+
+ from distutils.core import setup, Extension
+-import os, glob, sys, string
+
+ # version of this gdmodule package
+ this_version = "0.56"
+
+-# directory existence tester
+-
+-def dirtest(lst):
+- rlst = []
+- for d in lst:
+- try:
+- if os.listdir(d):
+- rlst.append(d)
+- except:
+- pass
+- return rlst
+-
+-def filetest(path, names):
+- rlst = []
+- for d in path:
+- for i in range(len(names)):
+- found = glob.glob(os.path.join(d, "lib%s.*" % names[i]))
+- if found:
+- rlst.append(names[i])
+- names[i] = None
+- names = filter(None, names)
+- return rlst
+-
+-def remove(itm, lst):
+- r = range(len(lst))
+- r.reverse()
+- for i in r:
+- if lst[i] == itm:
+- del lst[i]
+-
+-# library_dirs option is rather non-portable, but since I am targetting
+-# Unixoid OS's I will just look for the usual suspects.
+-
+-libdirs = dirtest([
+- "/usr/local/lib", "/sw/lib", "/usr/lib",
+- "/usr/lib/X11", "/usr/X11R6/lib",
+- "/opt/gnome/lib",
+-])
+-
+-# include_dirs are also non-portable; same trick here.
+-
+-incdirs = dirtest([
+- "/usr/local/include", "/sw/include", "/usr/include",
+- "/usr/include/X11", "/usr/X11R6/include",
+- "/opt/gnome/include",
+-])
+-
+-# Try to identify our libraries
+-
+-want_libs = [
+- "gd",
+- "jpeg", "png", "gif", "z",
+- "X11", "Xpm",
+- "ttf", "freetype",
+-]
+-
+-libs = filetest(libdirs, want_libs)
+-
+-missing = []
+-
+-for l in want_libs:
+- if l and l not in libs:
+- missing.append(l)
+-
+-if missing:
+- print "WARNING: Missing", string.join(missing, ", "), "Libraries"
+-
+-# hand-clean the libs
+-
+-if "gd" not in libs:
+- print "Can't find GD library."
+- sys.exit(0)
+-
+-if "ttf" in libs and "freetype" in libs:
+- remove("ttf", libs)
+-
+-if "Xpm" in libs and "X11" not in libs:
+- remove("Xpm", libs)
+-
+-if "png" in libs and "z" not in libs:
+- remove("png", libs)
+-
+-if "z" in libs and "png" not in libs:
+- remove("png", libs)
+-
+-# build the macro list
+-
+-macros = []
+-
+-for l in libs:
+- macros.append(( "HAVE_LIB%s" % l.upper(), None ))
++libs = [ "gd" ]
+
+ # OK, now do it!
+
+@@ -111,8 +20,7 @@
+ py_modules=["gd"],
+ ext_modules=[
+ Extension("_gd", ["_gdmodule.c"],
+- include_dirs=incdirs, library_dirs=libdirs,
+- libraries=libs, define_macros=macros)],
++ libraries=libs)],
+ )
+
+ # end of file... I guess we're done.
diff --git a/dev-python/gdmodule/gdmodule-0.56-r1.ebuild b/dev-python/gdmodule/gdmodule-0.56-r1.ebuild
deleted file mode 100644
index 30524bff7e41..000000000000
--- a/dev-python/gdmodule/gdmodule-0.56-r1.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/gdmodule/gdmodule-0.56-r1.ebuild,v 1.1 2010/11/25 14:14:40 jlec Exp $
-
-EAPI="3"
-
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit distutils eutils
-
-DESCRIPTION="Python extensions for gd"
-HOMEPAGE="http://newcenturycomputers.net/projects/gdmodule.html"
-SRC_URI="http://newcenturycomputers.net/projects/download.cgi/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-linux ~ppc-macos"
-IUSE=""
-
-RDEPEND="media-libs/gd"
-DEPEND="${RDEPEND}"
-
-RESTRICT_PYTHON_ABIS="3.*"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PV}-libs.patch
- mv Setup.py setup.py
- distutils_src_prepare
-}
diff --git a/dev-python/gdmodule/gdmodule-0.56-r2.ebuild b/dev-python/gdmodule/gdmodule-0.56-r2.ebuild
new file mode 100644
index 000000000000..fba512d4e46a
--- /dev/null
+++ b/dev-python/gdmodule/gdmodule-0.56-r2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/gdmodule/gdmodule-0.56-r2.ebuild,v 1.1 2010/12/06 15:53:25 jlec Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils eutils flag-o-matic
+
+DESCRIPTION="Python extensions for gd"
+HOMEPAGE="http://newcenturycomputers.net/projects/gdmodule.html"
+SRC_URI="http://newcenturycomputers.net/projects/download.cgi/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-linux ~ppc-macos"
+IUSE="jpeg png truetype xpm"
+
+RDEPEND="
+ media-libs/gd[jpeg?,png?,truetype?,xpm?]
+ media-libs/giflib
+ jpeg? ( virtual/jpeg )
+ png? ( media-libs/libpng )
+ truetype? ( media-libs/freetype:2 )
+ xpm? ( x11-libs/libXpm )"
+DEPEND="${RDEPEND}"
+
+RESTRICT_PYTHON_ABIS="3.*"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fix-libs.patch
+
+ # append unconditionally because it is enabled id media-libs/gd by default
+ append-cppflags -DHAVE_LIBGIF
+
+ use jpeg && append-cppflags -DHAVE_LIBJPEG
+ use png && append-cppflags -DHAVE_LIBPNG
+ use truetype && append-cppflags -DHAVE_LIBFREETYPE
+ use xpm && append-cppflags -DHAVE_LIBXPM
+
+ mv Setup.py setup.py
+
+ distutils_src_prepare
+}