# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/pythonmagick-0.9.4.ebuild,v 1.1 2011/03/10 16:25:13 arfrever Exp $ EAPI="3" PYTHON_DEPEND="2:2.6" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="2.[45] 3.* *-jython" 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.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" RDEPEND=">=media-gfx/imagemagick-6.4 >=dev-libs/boost-1.35.0[python]" DEPEND="${RDEPEND} dev-util/pkgconfig" S="${WORKDIR}/${MY_P}" PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing") src_prepare() { epatch "${FILESDIR}/${PN}-0.9.1-use_active_python_version.patch" epatch "${FILESDIR}/${PN}-0.9.2-fix_detection_of_python_includedir.patch" epatch "${FILESDIR}/${PN}-0.9.5-no_python3.1.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 }