Lines 1-6
Link Here
|
1 |
# Copyright 1999-2006 Gentoo Foundation |
1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $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 $ |
3 |
# $Header: Exp $ |
4 |
|
4 |
|
5 |
inherit autotools eutils gnome2 |
5 |
inherit autotools eutils gnome2 |
6 |
|
6 |
|
Lines 34-60
Link Here
|
34 |
|
34 |
|
35 |
G2CONF="${G2CONF} $(use_enable gnome gnome-support) $(use_enable debug maintainer-mode) $(use_enable subp enchant-support) $(use_enable hal hal-support)" |
35 |
G2CONF="${G2CONF} $(use_enable gnome gnome-support) $(use_enable debug maintainer-mode) $(use_enable subp enchant-support) $(use_enable hal hal-support)" |
36 |
|
36 |
|
37 |
DOCS="AUTHORS ChangeLog COPYING README INSTALL NEWS TODO" |
37 |
DOCS="AUTHORS ChangeLog README NEWS TODO" |
38 |
|
38 |
|
39 |
pkg_setup() { |
39 |
pkg_setup() { |
40 |
if ! which mencoder > /dev/null 2>&1; then |
40 |
if ! built_with_use -a media-video/mplayer encode xvid ; then |
41 |
eerror "Unable to find mencoder in the PATH. You need mencoder to use OGMRip." |
41 |
eerror "${PN} requires mplayer with xvid and encode support." |
42 |
eerror "Please, add encode to your USE flags and emerge mplayer again." |
42 |
eerror "Please, add xvid and encode to your USE flags and emerge mplayer again." |
43 |
die "Unable to find mencoder in the PATH. You need mencoder to use OGMRip." |
43 |
die "${PN} requires mplayer with xvid and encode support." |
44 |
fi |
|
|
45 |
if ! mencoder -ovc help 2> /dev/null | grep -q "^ *xvid *- .*$"; then |
46 |
echo |
47 |
eerror "Mplayer is not build with XviD support. OGMRip requires XviD support in mplayer." |
48 |
eerror "Please, add xvid to your USE flags and emerge mplayer again." |
49 |
die "Mplayer is not build with XviD support. OGMRip requires XviD support in mplayer." |
50 |
fi |
44 |
fi |
51 |
} |
45 |
} |
52 |
src_unpack() { |
46 |
src_unpack() { |
53 |
unpack ${A} |
47 |
unpack ${A} |
54 |
cd ${S} |
48 |
cd "${S}" |
55 |
epatch ${FILESDIR}/${P}-lang.patch |
49 |
epatch "${FILESDIR}/${P}-lang.patch" |
56 |
epatch ${FILESDIR}/${P}-gcc4.patch |
50 |
epatch "${FILESDIR}/${P}-gcc4.patch" |
57 |
epatch ${FILESDIR}/${P}-mplayercvs.patch |
51 |
epatch "${FILESDIR}/${P}-mplayercvs.patch" |
58 |
epatch ${FILESDIR}/${P}-types.patch |
52 |
epatch "${FILESDIR}/${P}-types.patch" |
59 |
eautoreconf |
53 |
eautoreconf |
60 |
} |
54 |
} |