# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit distutils MY_PN=PythonMagick ### uncomment the right variables depending on if we have a patchlevel or not #MY_P=${MY_PN}-${PV%.*}-${PV#*.*.*.} #MY_P2=${MY_PN}-${PV%.*} MY_P=${MY_PN}-${PV} MY_P2=${MY_PN}-${PV} S=${WORKDIR}/${MY_PN} DESCRIPTION="Python bindings for GraphicsMagick" SRC_URI="http://www.procoders.net/download.php?fname=${MY_P}.tar.gz" HOMEPAGE="http://www.procoders.net/moinmoin/PythonMagick" SLOT="0" LICENSE="as-is" KEYWORDS="~x86" DEPEND="dev-lang/python >=media-gfx/graphicsmagick-1.0.4 >=dev-libs/boost-1.30.2-r1 dev-util/boost-jam" src_compile() { cp ${FILESDIR}/Jamfile ${S}/ cp ${FILESDIR}/boost-build.jam ${S}/ touch ${S}/Jamrules export BOOST_BUILD_PATH=/usr/include/boost/tools/build export BUILD=release export PYTHON_ROOT=/usr export MAGICK_SRC_PATH=/usr/include/GraphicsMagick export MAGICK_LIB_PATH=/usr/lib/GraphicsMagick bjam || die } src_install() { cd ${WORKDIR}/PythonMagick distutils_src_install }