# $Header: /magellan-cvs/smage/subtitleripper/subtitleripper-0.3.4-r2.smage2,v 1.1 2008/04/20 21:46:41 niro Exp $ PNAME="subtitleripper" PVER="0.3.4" PBUILD="r2" PCATEGORIE="media-video" STATE="unstable" DESCRIPTION="DVD Subtitle Ripper for Linux." HOMEPAGE="http://subtitleripper.sourceforge.net/" DEPEND=">= media-libs/libpng-1.2 >= sys-libs/zlib-1.2 >= app-text/gocr-0.45" SRCFILE="${PNAME}-${PVER:0:3}-${PVER:4}.tgz" SRCDIR="${BUILDDIR}/${PNAME}" sminclude mtools SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # removes dependency on libppm, seems to be broken atm sed -i -e 's|^\(.*lppm.*\)$|#\1|' \ -e 's|^\(.*D_HAVE_LIB_PPM.*\)$|#\1|' Makefile || die # change gocrfilters location to /usr/share/subtitleripper sed -i 's:~/sourceforge/subtitleripper/src/:/usr/share/subtitleripper:' pgm2txt || die } src_compile() { cd ${SRCDIR} mmake || die } src_install () { cd ${SRCDIR} minstalldir /usr/share/subtitleripper || die minstallexec pgm2txt || die minstallexec srttool || die minstallexec subtitle2pgm || die minstallexec subtitle2vobsub || die minstallexec vobsub2pgm || die minstallfile gocrfilter_\*.sed /usr/share/subtitleripper || die minstalldocs AUTHORS ChangeLog Copyright LICENSE README || die }