# $Id$ PNAME="gimp-print" PVER="5.2.9" PBUILD="r2" PCAT="media-gfx" DESCRIPTION="The Gimp-Print package contains high quality drivers for Canon, Epson, Lexmark and PCL printers." HOMEPAGE="http://gimp-print.sourceforge.net/" DEPEND=">= net-print/cups-1.5 >= media-gfx/imagemagick-6.5 >= net-print/libcups-1.6 >= app-text/ghostscript-gpl-9 >= x11-libs/gtk2+-2.24 >= dev-lang/perl-5.16 >= sys-libs/readline-6.2" SDEPEND=">= sys-apps/sed-4 >= dev-util/pkgconfig-0.25 >= media-gfx/gimp-2.6" SRCFILE="gutenprint-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/gutenprint-${PVER}" sminclude mbuild mtools # disable src_check which takes way too long msetfeature "!check" SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-missing-includes.patch ) #UP2DATE="updatecmd_sourceforge ${PNAME} gutenprint-5.2 - gutenprint" UP2DATE="updatecmd ${HOMEPAGE} | grep 'Gutenprint.*released!' | sed 's/.*Gutenprint\ \(.*\)\ is.*/\1/;q'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # add missing includes, which fix a FTBFS mpatch ${PNAME}-${PVER}-missing-includes.patch || die } src_compile() { cd ${SRCDIR} mconfigure \ --enable-nls \ --enable-test \ --enable-lexmarkutil \ --enable-epson \ --enable-libgutenprintui2 \ --with-escputil \ --with-ghostscript \ --with-user-guide \ --with-samples \ --with-cups \ --enable-cups-ppds \ --enable-cups-level3-ppds \ --with-readline \ --disable-translated-cups-ppds \ --with-gimp \ --with-gimp2-as-gutenprint \ --without-foomatic \ || die # fix ijs sed -i "s: