blob: 015a89a8f10d38c3cc1f790f5ad89d5ab7c78ec6 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/pythonmagick-0.9.1.ebuild,v 1.6 2010/05/29 15:50:32 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
inherit autotools eutils python
MY_PN="PythonMagick"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Python bindings for ImageMagick"
HOMEPAGE="http://www.imagemagick.org/script/api.php"
SRC_URI="http://www.imagemagick.org/download/python/${MY_P}.tar.gz"
SLOT="0"
LICENSE="GPL-3"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND=">=media-gfx/imagemagick-6.4
>=dev-libs/boost-1.35.0[python]"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
RESTRICT_PYTHON_ABIS="3.*"
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}/${P}-use_active_python_version.patch"
eautoreconf
# Disable byte-compilation.
echo "#!/bin/sh" > config/py-compile
python_src_prepare
}
src_configure() {
python_src_configure --disable-static BOOST_PYTHON_LIB="boost_python"
}
src_install() {
python_src_install
python_clean_installation_image
}
pkg_postinst() {
python_mod_optimize PythonMagick
}
pkg_postrm() {
python_mod_cleanup PythonMagick
}
|