blob: ac0728d0b72214a6d400fe2d2d349a1082e08dee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2} )
inherit distutils-r1
MY_PN="Pillow"
DESCRIPTION="The friendly Python Imaging Library fork by Alex Clark and Contributors"
HOMEPAGE="http://github.com/python-imaging/Pillow"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.zip -> ${P}.zip"
KEYWORDS="~amd64 ~x86"
IUSE="doc ext sane examples"
LICENSE="PIL"
SLOT="0"
RDEPEND=">=media-libs/jpeg-6a
>=media-libs/freetype-2.4.9
>=media-libs/lcms-1.1.5"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
#S=${WORKDIR}/${P/pil/PIL}
python_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
}
do_build
}
src_test() {
testing() {
PYTHONPATH="${S}"/ "$(PYTHON)" selftest.py
}
python_execute_function testing
}
python_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 && do_sane
use doc && dohtml -r Docs/
if use examples; then
insinto use/share/doc/${P}/demo
doins Sane/demo*.py
fi
}
|