diff options
author | 2012-06-04 21:54:07 +0800 | |
---|---|---|
committer | 2012-06-04 21:54:07 +0800 | |
commit | 532e555077954992ab9a776b3867f56bfd22ff4d (patch) | |
tree | 527027abe7e84b85a7209b9011781ba341ac07a7 | |
parent | [dev-python/cookbook] Add HTML2PDF and matching epatch line (diff) | |
download | improvise-532e555077954992ab9a776b3867f56bfd22ff4d.tar.gz improvise-532e555077954992ab9a776b3867f56bfd22ff4d.tar.bz2 improvise-532e555077954992ab9a776b3867f56bfd22ff4d.zip |
[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)
-rw-r--r-- | dev-python/pil/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pil/metadata.xml | 14 | ||||
-rw-r--r-- | dev-python/pil/pil-1.1.7.ebuild | 68 |
3 files changed, 83 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <maintainer><email>tampakrap@gentoo.org</email></maintainer> + <maintainer> + <email>johneed@hotmail.com</email> + <name>Ian idella4 Delaney proxy maintainer</name> + </maintainer> + <use> + <flag name='ext'>Enable building of tkinter, freetype2 and lcms support</flag> + <flag name='sane'>Enable building of the sane module</flag> + </use> +</pkgmetadata> 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 +} |