Lines 34-53
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 dvd encode xvid; then |
41 |
eerror "Unable to find mencoder in the PATH. You need mencoder to use OGMRip." |
41 |
eerror "Please, check that your USE flags contain 'dvd', 'encode' and 'xvid' and emerge mplayer again." |
42 |
eerror "Please, add encode to your USE flags and emerge mplayer again." |
42 |
die "Mplayer is not build with dvd, encoding or xvid support. OGMRip requires dvd, encoding and xvid support in mplayer." |
43 |
die "Unable to find mencoder in the PATH. You need mencoder to use OGMRip." |
43 |
fi |
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 |
51 |
} |
44 |
} |
52 |
src_unpack() { |
45 |
src_unpack() { |
53 |
unpack ${A} |
46 |
unpack ${A} |