# $Header: /magellan-cvs/smage/skencil/skencil-0.6.17-r5.smage2,v 1.1 2008/04/01 12:14:38 niro Exp $ PNAME="skencil" PVER="0.6.17" PBUILD="r5" PCATEGORIE="media-gfx" STATE="unstable" DESCRIPTION="Skencil is a Free Software interactive vector drawing appliction." HOMEPAGE="http://www.nongnu.org/skencil/index.html" DEPEND=">= dev-python/imaging-1.1.6 >= dev-python/reportlab-1.21 >= dev-python/pyxml-0.8.4 >= dev-lang/tk-8.4" SDEPEND=">= sys-dev/gettext-0.17 >= sys-apps/sed-4" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude python SRC_URI=( sourceforge://sketch/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} if [[ $(mlibdir) != lib ]] then sed -i -e "s:lib/:$(mlibdir)/:" \ -e "s:lib':$(mlibdir)':" \ {Pax,Filter,Sketch/Modules}/Makefile.pre.in \ Plugins/Objects/Lib/multilinetext/{TextEditor,styletext}.py \ setup.py || die fi } src_compile() { cd ${SRCDIR} python setup.py configure --with-nls || die python_src_compile || die } src_install() { cd ${SRCDIR} # skencil does not support --no-compile and --root from python_src_install python setup.py install --prefix=/usr --dest-dir=${BINDIR} || die minstalldocs BUGS COPYING CREDITS FAQ NEWS PROJECTS README TODO || die }