summaryrefslogtreecommitdiff
path: root/dev-python/pythonmagick/pythonmagick-0.7.ebuild
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dev-python/pythonmagick/pythonmagick-0.7.ebuild44
-rw-r--r--dev-python/pythonmagick/pythonmagick-0.7.ebuild.diff58
-rw-r--r--dev-python/pythonmagick/pythonmagick-0.7.ebuild.old60
3 files changed, 162 insertions, 0 deletions
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
+}
diff --git a/dev-python/pythonmagick/pythonmagick-0.7.ebuild.diff b/dev-python/pythonmagick/pythonmagick-0.7.ebuild.diff
new file mode 100644
index 0000000..c306f68
--- /dev/null
+++ b/dev-python/pythonmagick/pythonmagick-0.7.ebuild.diff
@@ -0,0 +1,58 @@
+--- pythonmagick-0.7.ebuild.old 2008-04-23 03:51:10.000000000 +0200
++++ pythonmagick-0.7.ebuild 2008-04-23 03:25:02.000000000 +0200
+@@ -2,7 +2,9 @@
+ # 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 $
+
+-inherit eutils python multilib toolchain-funcs
++NEED_PYTHON="2.5"
++
++inherit python multilib flag-o-matic
+
+ MY_PN=PythonMagick
+ MY_P=${MY_PN}-${PV}
+@@ -16,38 +18,20 @@
+ KEYWORDS="~x86"
+ IUSE=""
+
+-RDEPEND=">=media-gfx/imagemagick-1.1.7
++DEPEND=">=media-gfx/imagemagick-6.2
+ >=dev-libs/boost-1.34.0"
+-DEPEND="${RDEPEND}
+- dev-util/scons"
+
+ S=${WORKDIR}/${MY_P}
+
+-src_unpack() {
+- unpack ${A}
+- cd "${S}"
+- epatch "${FILESDIR}/${PN}-0.6-gentoo_misc_fixes.patch"
+-}
+-
+-src_compile() {
+- python_version
+- sed -i \
+- -e "s#\(BOOST\)=.*#\1='/usr/include/boost'#" \
+- -e "s#\(BOOSTLIBPATH\)=.*#\1='/usr/lib'#" \
+- -e "s#\(PYTHON_INCLUDE\)=.*#\1='/usr/include/python${PYVER}'#" \
+- -e "s#\(Environment(\)#\1 CXX='$(tc-getCXX)',#" \
+- -e "s#\(CPPFLAGS\)=#\1='${CXXFLAGS}'.split()+#" \
+- SConstruct || die "sed failed"
+-
+- # FIXME: Until we have a var or function for it
+- numjobs=$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' <<< ${MAKEOPTS})
++src_compile () {
++ filter-ldflags -Wl,--as-needed --as-needed
+
+- scons mode=release ${numjobs} || die "scons failed"
++ econf || die "econf failed"
++ emake || die "emake failed"
+ }
+
+ src_install() {
+- insinto /usr/lib/python${PYVER}/site-packages
+- doins -r PythonMagick
++ emake DESTDIR="${D}" install || die "emake install failed"
+ }
+
+ pkg_postinst() {
diff --git a/dev-python/pythonmagick/pythonmagick-0.7.ebuild.old b/dev-python/pythonmagick/pythonmagick-0.7.ebuild.old
new file mode 100644
index 0000000..77042e3
--- /dev/null
+++ b/dev-python/pythonmagick/pythonmagick-0.7.ebuild.old
@@ -0,0 +1,60 @@
+# 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 $
+
+inherit eutils python multilib toolchain-funcs
+
+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=""
+
+RDEPEND=">=media-gfx/imagemagick-1.1.7
+ >=dev-libs/boost-1.34.0"
+DEPEND="${RDEPEND}
+ dev-util/scons"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-0.6-gentoo_misc_fixes.patch"
+}
+
+src_compile() {
+ python_version
+ sed -i \
+ -e "s#\(BOOST\)=.*#\1='/usr/include/boost'#" \
+ -e "s#\(BOOSTLIBPATH\)=.*#\1='/usr/lib'#" \
+ -e "s#\(PYTHON_INCLUDE\)=.*#\1='/usr/include/python${PYVER}'#" \
+ -e "s#\(Environment(\)#\1 CXX='$(tc-getCXX)',#" \
+ -e "s#\(CPPFLAGS\)=#\1='${CXXFLAGS}'.split()+#" \
+ SConstruct || die "sed failed"
+
+ # FIXME: Until we have a var or function for it
+ numjobs=$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' <<< ${MAKEOPTS})
+
+ scons mode=release ${numjobs} || die "scons failed"
+}
+
+src_install() {
+ insinto /usr/lib/python${PYVER}/site-packages
+ doins -r PythonMagick
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize "${ROOT}"usr/$(get_libdir)/python${PYVER}/site-packages/${MY_PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup
+}