# 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_P2} # eventually actually get the lib versions instead of hard-coding: GMVER=`best_version media-gfx/graphicsmagick` BOOSTVER=`best_version dev-libs/boost` DESCRIPTION="A collection of tools and libraries for many image formats" SRC_URI="mirror://sourceforge/boost/boost-1.30.2.tar.bz2 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" # as above lib versions hardcoded for now DEPEND="dev-lang/python =media-gfx/graphicsmagick-1.0.4 =dev-libs/boost-1.30.2 dev-util/boost-jam" src_compile() { mv ${WORKDIR}/PythonMagick ${WORKDIR}/boost-1.30.2/libs/python/ || die cd ${WORKDIR}/boost-1.30.2/libs/python/PythonMagick || die export BUILD=release export PYTHON_ROOT=/usr/ export MAGICK_SRC_PATH=/usr/include/GraphicsMagick/ export MAGICK_LIB_PATH=/usr/lib/GraphicsMagick-1.0.4/ bjam cd ${WORKDIR}/${P} } src_install() { cd ${WORKDIR}/boost-1.30.2/libs/python/PythonMagick || die distutils_src_install }