Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 238965
Collapse All | Expand All

(-)/usr/local/portage/media-video/ogmrip/ogmrip-0.12.2.ebuild (-32 / +6 lines)
Lines 2-7 Link Here
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: $
3
# $Header: $
4
4
5
EAPI="2"
6
5
inherit gnome2 eutils
7
inherit gnome2 eutils
6
8
7
DESCRIPTION="Graphical frontend and libraries for ripping DVDs and encoding to AVI/OGM/MKV/MP4"
9
DESCRIPTION="Graphical frontend and libraries for ripping DVDs and encoding to AVI/OGM/MKV/MP4"
Lines 16-29 Link Here
16
RDEPEND=">=dev-libs/glib-2.6
18
RDEPEND=">=dev-libs/glib-2.6
17
	>=app-i18n/enca-1.0
19
	>=app-i18n/enca-1.0
18
	>=media-libs/libdvdread-0.9.7
20
	>=media-libs/libdvdread-0.9.7
19
	>=media-video/mplayer-1.0_pre4
21
	>=media-video/mplayer-1.0_pre4[dvd,encode,xvid?,dts?,x264?]
20
	virtual/eject
22
	virtual/eject
21
	aac? ( >=media-libs/faac-1.24 )
23
	aac? ( >=media-libs/faac-1.24 )
22
	gtk? ( >=x11-libs/gtk+-2.6
24
	gtk? ( >=x11-libs/gtk+-2.6
23
		>=gnome-base/gconf-2.6
25
		>=gnome-base/gconf-2.6
24
		>=gnome-base/libglade-2.5
26
		>=gnome-base/libglade-2.5
25
		libnotify? ( >=x11-libs/gtk+-2.10
27
		libnotify? ( >=x11-libs/gtk+-2.10
26
			>=x11-libs/libnotify-0.4.3 ) )
28
			>=x11-libs/libnotify-0.4.3 )
29
		media-video/mplayer[jpeg] )
27
	hal? ( >=sys-apps/hal-0.4.2 )
30
	hal? ( >=sys-apps/hal-0.4.2 )
28
	matroska? ( >=media-video/mkvtoolnix-0.9 )
31
	matroska? ( >=media-video/mkvtoolnix-0.9 )
29
	mp3? ( >=media-sound/lame-3.96 )
32
	mp3? ( >=media-sound/lame-3.96 )
Lines 46-53 Link Here
46
DOCS="AUTHORS ChangeLog README NEWS TODO"
49
DOCS="AUTHORS ChangeLog README NEWS TODO"
47
50
48
pkg_setup() {
51
pkg_setup() {
49
	local letsfail=0
50
51
	G2CONF="${G2CONF}
52
	G2CONF="${G2CONF}
52
		$(use_enable aac aac-support)
53
		$(use_enable aac aac-support)
53
		$(use_enable debug maintainer-mode)
54
		$(use_enable debug maintainer-mode)
Lines 63-94 Link Here
63
		$(use_enable vorbis vorbis-support)
64
		$(use_enable vorbis vorbis-support)
64
		$(use_enable x264 x264-support)
65
		$(use_enable x264 x264-support)
65
		$(use_enable xvid xvid-support)"
66
		$(use_enable xvid xvid-support)"
66
67
	if ! built_with_use -a media-video/mplayer dvd encode; then
68
		eerror "Please check that your USE flags contain 'dvd' and 'encode'"
69
		eerror "and emerge mplayer again."
70
		((letsfail++))
71
	fi
72
	if use xvid && ! built_with_use -a media-video/mplayer xvid; then
73
		eerror "Please check that your USE flags contain 'xvid'"
74
		eerror "and emerge mplayer again."
75
		((letsfail++))
76
	fi
77
	if use dts && ! built_with_use -a media-video/mplayer dts; then
78
		eerror "Please check that your USE flags contain 'dts'"
79
		eerror "and emerge mplayer again."
80
		((letsfail++))
81
	fi
82
	if use x264 && ! built_with_use -a media-video/mplayer x264; then
83
		eerror "Please check that your USE flags contain 'x264'"
84
		eerror "and emerge mplayer again."
85
		((letsfail++))
86
	fi
87
	if use gtk && ! built_with_use -a media-video/mplayer jpeg; then
88
		eerror "Please check that your USE flags contain 'jpeg'"
89
		eerror "and emerge mplayer again."
90
		((letsfail++))
91
	fi
92
93
	[[ ${letsfail} != 0 ]] && die "MPlayer is missing required USE flags (see above for details)."
94
}
67
}
68

Return to bug 238965