summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-09-29 22:42:58 +0000
committerTim Harder <radhermit@gentoo.org>2012-09-29 22:42:58 +0000
commit3093342325bb81aa8264666c5234c8612a90c09c (patch)
tree83683e722e68a0c0a4f7ff0d79d26b5fbd0d5cf4 /dev-python/pythonmagick
parentVersion bump. (diff)
downloadgentoo-2-3093342325bb81aa8264666c5234c8612a90c09c.tar.gz
gentoo-2-3093342325bb81aa8264666c5234c8612a90c09c.tar.bz2
gentoo-2-3093342325bb81aa8264666c5234c8612a90c09c.zip
Version bump. Fix build with >=boost-1.50.
(Portage version: 2.2.0_alpha133/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pythonmagick')
-rw-r--r--dev-python/pythonmagick/ChangeLog7
-rw-r--r--dev-python/pythonmagick/pythonmagick-0.9.8.ebuild72
2 files changed, 78 insertions, 1 deletions
diff --git a/dev-python/pythonmagick/ChangeLog b/dev-python/pythonmagick/ChangeLog
index c30c40efcb6d..059736277ffa 100644
--- a/dev-python/pythonmagick/ChangeLog
+++ b/dev-python/pythonmagick/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/pythonmagick
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/ChangeLog,v 1.38 2012/05/04 15:12:12 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/ChangeLog,v 1.39 2012/09/29 22:42:58 radhermit Exp $
+
+*pythonmagick-0.9.8 (29 Sep 2012)
+
+ 29 Sep 2012; Tim Harder <radhermit@gentoo.org> +pythonmagick-0.9.8.ebuild:
+ Version bump. Fix build with >=boost-1.50.
04 May 2012; Patrick Lauer <patrick@gentoo.org> pythonmagick-0.9.7-r1.ebuild,
pythonmagick-0.9.7.ebuild:
diff --git a/dev-python/pythonmagick/pythonmagick-0.9.8.ebuild b/dev-python/pythonmagick/pythonmagick-0.9.8.ebuild
new file mode 100644
index 000000000000..c688e2525417
--- /dev/null
+++ b/dev-python/pythonmagick/pythonmagick-0.9.8.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/pythonmagick-0.9.8.ebuild,v 1.1 2012/09/29 22:42:58 radhermit Exp $
+
+EAPI="4"
+PYTHON_DEPEND="*:2.6"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="2.4 2.5 *-jython 2.7-pypy-*"
+PYTHON_EXPORT_PHASE_FUNCTIONS="1"
+
+inherit autotools eutils python boost-utils
+
+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.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/boost-1.48[python]
+ >=media-gfx/imagemagick-6.4"
+DEPEND="${RDEPEND}
+ virtual/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"
+
+ sed -e "s/AM_PATH_PYTHON(3.1)/AM_PATH_PYTHON(2.6)/" -i configure.ac || die "sed failed"
+
+ eautoreconf
+
+ python_clean_py-compile_files
+
+ # Support Python 3.
+ sed -e "s/import _PythonMagick/from . import _PythonMagick/" -i PythonMagick/__init__.py || die "sed failed"
+
+ python_src_prepare
+}
+
+src_configure() {
+ configuration() {
+ sed -e "s/-lboost_python/-lboost_python-${PYTHON_ABI}/" -i Makefile.in
+ econf \
+ --disable-static \
+ --with-boost-python="boost_python-${PYTHON_ABI}" \
+ --with-boost-libdir="$(boost-utils_get_libdir)"
+ }
+ python_execute_function -s configuration
+}
+
+src_install() {
+ python_src_install
+ python_clean_installation_image
+}
+
+pkg_postinst() {
+ python_mod_optimize PythonMagick
+}
+
+pkg_postrm() {
+ python_mod_cleanup PythonMagick
+}