diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/gdmodule |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/gdmodule')
-rw-r--r-- | dev-python/gdmodule/Manifest | 6 | ||||
-rw-r--r-- | dev-python/gdmodule/files/gdmodule-0.56-fix-libs.patch | 116 | ||||
-rw-r--r-- | dev-python/gdmodule/gdmodule-0.56-r2.ebuild | 41 | ||||
-rw-r--r-- | dev-python/gdmodule/metadata.xml | 14 |
4 files changed, 177 insertions, 0 deletions
diff --git a/dev-python/gdmodule/Manifest b/dev-python/gdmodule/Manifest new file mode 100644 index 000000000000..836bd9e24b46 --- /dev/null +++ b/dev-python/gdmodule/Manifest @@ -0,0 +1,6 @@ +AUX gdmodule-0.56-fix-libs.patch 2629 SHA256 38221d3d1d1609eb696cbf59e8d1a8b9ea079607fed34eb1c5a5647e22a9c6ee SHA512 eb8993b77f5b893b568d87e572a19caf84ee11e4c0c76a13ef81e7185678bf007d7967e1d68ce56f869bc83cfe502b8f67ab0fee2f7f477e9aa2b4f0017e0a0a WHIRLPOOL ae1c5112cd4a549fc06f7b24f30236b51788ac7e7d10ae6e8eedaf22c04bf72cf45f80eb47c5e672f4257936972e902e659e8ea134f2c08f96c352ac59c92a51 +DIST gdmodule-0.56.tar.gz 48748 SHA256 a3a2fd6378e32f10a348c4db428a91e2c1adc28de6ec35c0619a52e379f4edec SHA512 9570a9c06a1c7d76af760fffe30cfde9a840620c608f0d55123898e030d6f3ab4c91fe75bf02b326f13f4a85ea5429c6a0ec0cd20fdc27fa83e656b81f7cce88 WHIRLPOOL e05702ca2fe129b9548f301a73b8a8b461f060dfef67e7b5135756ab70b6a996c55037c9ec60952a2577ed2468141af20ebe128f5312449b8e909092d6f8c5ad +EBUILD gdmodule-0.56-r2.ebuild 1104 SHA256 71a4ee2b7aa0fff4e520ef4ddbc943fe493be875983d9a7b9ee16f85291a0028 SHA512 10248982c643358824fe477c38e48389ea84b562e42f8856c90d08c07ef669dc02bab0034f49f373b99632817395506abdf4401512bd3151a62e5ff23c720e8f WHIRLPOOL 8ccd28e1b051204128fbe8ebe7ed4849d7cc1f999118bca3f8142a722232ccc7f02a2a7c3095c41365dddf0ba33edcaa87b3882cca74d1258f999f258f36cc06 +MISC ChangeLog 2475 SHA256 a037c80462847b7b3e904842dbf52cd44ac648712ff8cad8f1d609154f1c865a SHA512 948d6bec6c774443b37cc8d7d51fa28c75b6c5896328979eec6ffdb44e2558af39053ae7b522c78ec2377f343936a70b175ffd6bbbe51d14a98c0ff094212d17 WHIRLPOOL 4f96045e4f8b92201ced763f7480609bd6273671e0fb780752a8539eb8902eb2e0379872d0dcb6e2cd0e3e6d43fbea2826967f56c3624774602db33b63602343 +MISC ChangeLog-2015 1882 SHA256 3d41c6c3ebb3e28d2536a0e4552d7fe3060c62bd28aed0a7d48fe066b17778de SHA512 abf1db04d63be1b11b3a24416159d17e2851db64d5c3a50af1efb6a317e18e4e541c71c26e2c32bbb0eee5f3636ac134b5f135d0b2bfe7d1ce52131fe68773db WHIRLPOOL 72a5b21191cd1e4b07f18719724d801fe386c069bede5c959570998c89ba8ac304537199446d06e3461c269002a41d26c3d0a83e8aa734ba8e7ac2514550da24 +MISC metadata.xml 450 SHA256 db31e8ffa0fa75acf543852a6fb13e8ebb573c43614964f3ea1a102821fd92ac SHA512 58ab6153c0955e9d9e37fe1b43c3b92cfd3133bdb9f0b52df7618d21fa14170cab255a06d88a110a0bfef09da6cf51c13bc8904d15d1585bd4cc1743b7846900 WHIRLPOOL dc46cbbd98ab1be2fb692e25fefba6ac8398b49cf5fa91b239d4c794a4d7f38117b6ec20d4e35d827c55a1c56a3520999a6ed47d2cc0f4eb906d8e48f736e2a9 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-r2.ebuild b/dev-python/gdmodule/gdmodule-0.56-r2.ebuild new file mode 100644 index 000000000000..0ca691c8e2af --- /dev/null +++ b/dev-python/gdmodule/gdmodule-0.56-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 flag-o-matic + +DESCRIPTION="Python extensions for gd" +HOMEPAGE="https://github.com/Solomoriah/gdmodule" +SRC_URI="http://newcenturycomputers.net/projects/download.cgi/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~ppc-macos ~x86-linux" +IUSE="jpeg png truetype xpm" + +RDEPEND=" + media-libs/gd[jpeg?,png?,truetype?,xpm?] + media-libs/giflib + jpeg? ( virtual/jpeg:0 ) + png? ( media-libs/libpng:0 ) + truetype? ( media-libs/freetype:2 ) + xpm? ( x11-libs/libXpm )" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-fix-libs.patch ) + +python_prepare_all() { + distutils-r1_python_prepare_all + mv Setup.py setup.py || die + + # 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 +} diff --git a/dev-python/gdmodule/metadata.xml b/dev-python/gdmodule/metadata.xml new file mode 100644 index 000000000000..6304ac511407 --- /dev/null +++ b/dev-python/gdmodule/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + This module is a python wrapper for the GD library. +</longdescription> + <upstream> + <remote-id type="github">Solomoriah/gdmodule</remote-id> + </upstream> +</pkgmetadata> |