# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/subtitleripper/subtitleripper-0.3.ebuild,v 1.7 2005/01/22 03:18:15 eradicator Exp $ inherit libtool flag-o-matic eutils MY_P="${P/_pre/.}" S=${WORKDIR}/${PN} DESCRIPTION="subtitle extraction tool" HOMEPAGE="http://subtitleripper.sourceforge.net" SRC_URI="http://kent.dl.sourceforge.net/sourceforge/${PN}/${PN}-0.3-4.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64" IUSE="static" DEPEND=">=media-libs/netpbm-10.20 sys-libs/zlib media-libs/libpng" src_unpack() { unpack ${A} cd ${S} einfo "patching subtitleripper for netbpm..." sed -i 's:-lppm:-lnetpbm:' Makefile } src_compile() { emake -j1 || die } src_install () { dobin srttool subtitle2pgm subtitle2vobsub dodoc pgm2txt README README.gocr README.srttool \ README.subtitle2pgm README.vobsub einfo "" einfo "pgm2txt in documentation needs needs gocr" einfo "" }