From 532e555077954992ab9a776b3867f56bfd22ff4d Mon Sep 17 00:00:00 2001 From: Ian Delaney Date: Mon, 4 Jun 2012 21:54:07 +0800 Subject: [dev-python/pil] Add new ebuild to support xhtml2pdf-0.0.4 (Portage version: 2.1.10.63/git/Linux x86_64, unsigned Manifest commit) --- dev-python/pil/Manifest | 1 + dev-python/pil/metadata.xml | 14 +++++++++ dev-python/pil/pil-1.1.7.ebuild | 68 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 dev-python/pil/Manifest create mode 100644 dev-python/pil/metadata.xml create mode 100644 dev-python/pil/pil-1.1.7.ebuild diff --git a/dev-python/pil/Manifest b/dev-python/pil/Manifest new file mode 100644 index 0000000..6df149b --- /dev/null +++ b/dev-python/pil/Manifest @@ -0,0 +1 @@ +DIST pil-1.1.7.tar.gz 506382 SHA256 c4a94b9eec83b7c06a11de3086eb2c2164e90e4844e5263e2dacc6f82d993961 SHA512 a7ca18bbc2e8edfd8d8822fba31975147f317e9dc210fe8d4cb2e4aab0f1f3db931580d1f75d16385537f1545d445129292189ede5a623b17aa76e2eba90f5b2 WHIRLPOOL 11ce1bfd876885933f8a302ff95e62d90b3f45cfcc3266b45c62dff2d6e9fa7225255751465889ceaaca97ec874b5e6b06749319bb4253ca2bf270f7a0017727 diff --git a/dev-python/pil/metadata.xml b/dev-python/pil/metadata.xml new file mode 100644 index 0000000..b743448 --- /dev/null +++ b/dev-python/pil/metadata.xml @@ -0,0 +1,14 @@ + + + + python + tampakrap@gentoo.org + + johneed@hotmail.com + Ian idella4 Delaney proxy maintainer + + + Enable building of tkinter, freetype2 and lcms support + Enable building of the sane module + + diff --git a/dev-python/pil/pil-1.1.7.ebuild b/dev-python/pil/pil-1.1.7.ebuild new file mode 100644 index 0000000..819df45 --- /dev/null +++ b/dev-python/pil/pil-1.1.7.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS=1 +RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*" +inherit distutils + +MY_P="PIL" +DESCRIPTION="A Python Imaging Library" +HOMEPAGE="http://www.pythonware.com/products/pil" +SRC_URI="http://effbot.org/media/downloads/${MY_P}-${PV}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="~amd64" +IUSE="doc ext sane examples" +LICENSE="MIT" +SLOT="0" +PYTHON_MODNAME="${MY_P}" + +RDEPEND=">=media-libs/jpeg-6a + >=media-libs/freetype-2.3.9 + >=media-libs/lcms-1.1.5" +DEPEND="${RDEPEND} + dev-python/setuptools" + +S=${WORKDIR}/${P/pil/PIL} + +src_compile() { + do_build() { + if use ext; then + "$(PYTHON)" setup.py build_ext -i + fi + + if use sane; then + pushd Sane > /dev/null + PYTHONPATH=. "$(PYTHON)" setup.py build + popd > /dev/null + fi + "$(PYTHON)" setup.py build + } + python_execute_function do_build +} + +src_test() { + testing() { + PYTHONPATH="${S}"/ "$(PYTHON)" selftest.py + } + python_execute_function testing +} + +src_install() { + distutils_src_install + + do_sane() { + insinto $(python_get_sitedir)/PIL/ + doins $(find Sane -name _sane.so) + doins $(find Sane -name sane.py) + chmod +x "${ED}"$(python_get_sitedir)/PIL/_sane.so || die + } + use sane && python_execute_function do_sane + use doc && dohtml Docs/* + if use examples; then + insinto use/share/doc/${P}/demo + doins Sane/demo*.py + fi +} -- cgit v1.2.3