View | Details | Raw Unified
Collapse All | Expand All

(-) ogmrip-0.9.0-r1.ebuild (-17 / +11 lines)
 Lines 1-6    Link Here 
# Copyright 1999-2006 Gentoo Foundation
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/ogmrip/ogmrip-0.9.0-r1.ebuild,v 1.2 2006/06/02 15:14:24 sbriesen Exp $
# $Header: Exp $
inherit autotools eutils gnome2
inherit autotools eutils gnome2
 Lines 34-60    Link Here 
G2CONF="${G2CONF} $(use_enable gnome gnome-support) $(use_enable debug maintainer-mode) $(use_enable subp enchant-support) $(use_enable hal hal-support)"
G2CONF="${G2CONF} $(use_enable gnome gnome-support) $(use_enable debug maintainer-mode) $(use_enable subp enchant-support) $(use_enable hal hal-support)"
DOCS="AUTHORS ChangeLog COPYING README INSTALL NEWS TODO"
DOCS="AUTHORS ChangeLog README NEWS TODO"
pkg_setup() {
pkg_setup() {
	if ! which mencoder > /dev/null 2>&1; then
	if ! built_with_use -a media-video/mplayer encode xvid ; then
		eerror "Unable to find mencoder in the PATH. You need mencoder to use OGMRip."
		eerror "${PN} requires mplayer with xvid and encode support."
		eerror "Please, add encode to your USE flags and emerge mplayer again."
		eerror "Please, add xvid and encode to your USE flags and emerge mplayer again."
		die "Unable to find mencoder in the PATH. You need mencoder to use OGMRip."
		die "${PN} requires mplayer with xvid and encode support."
	fi
	if ! mencoder -ovc help 2> /dev/null | grep -q "^ *xvid *- .*$"; then
		echo
		eerror "Mplayer is not build with XviD support. OGMRip requires XviD support in mplayer."
		eerror "Please, add xvid to your USE flags and emerge mplayer again."
		die "Mplayer is not build with XviD support. OGMRip requires XviD support in mplayer."
	fi
	fi
}
}
src_unpack() {
src_unpack() {
	unpack ${A}
	unpack ${A}
	cd ${S}
	cd "${S}"
	epatch ${FILESDIR}/${P}-lang.patch
	epatch "${FILESDIR}/${P}-lang.patch"
	epatch ${FILESDIR}/${P}-gcc4.patch
	epatch "${FILESDIR}/${P}-gcc4.patch"
	epatch ${FILESDIR}/${P}-mplayercvs.patch
	epatch "${FILESDIR}/${P}-mplayercvs.patch"
	epatch ${FILESDIR}/${P}-types.patch
	epatch "${FILESDIR}/${P}-types.patch"
	eautoreconf
	eautoreconf
}
}