From 9ebad89eabbbe0049c061c5c1971344bb4a004dc Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 24 Apr 2008 18:07:07 +0200 Subject: Added pythonmagick --- dev-python/pythonmagick/pythonmagick-0.7.ebuild | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 dev-python/pythonmagick/pythonmagick-0.7.ebuild (limited to 'dev-python/pythonmagick/pythonmagick-0.7.ebuild') diff --git a/dev-python/pythonmagick/pythonmagick-0.7.ebuild b/dev-python/pythonmagick/pythonmagick-0.7.ebuild new file mode 100644 index 0000000..fc7f3e2 --- /dev/null +++ b/dev-python/pythonmagick/pythonmagick-0.7.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pythonmagick/pythonmagick-0.7.ebuild,v 1.1 2007/11/20 01:03:38 hawking Exp $ + +NEED_PYTHON="2.5" + +inherit python multilib flag-o-matic + +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="as-is" +KEYWORDS="~x86" +IUSE="" + +DEPEND=">=media-gfx/imagemagick-6.2 + >=dev-libs/boost-1.34.0" + +S=${WORKDIR}/${MY_P} + +src_compile () { + filter-ldflags -Wl,--as-needed --as-needed + + econf || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" +} + +pkg_postinst() { + python_version + python_mod_optimize "${ROOT}"usr/$(get_libdir)/python${PYVER}/site-packages/${MY_PN} +} + +pkg_postrm() { + python_mod_cleanup +} -- cgit v1.2.3-70-g09d2