# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # Modified for SVN by Sebastian Schuberth # $Header: $ inherit gnome2 eutils subversion ESVN_REPO_URI="https://ogmrip.svn.sourceforge.net/svnroot/ogmrip/trunk/ogmrip/" ESVN_PROJECT="ogmrip" ESVN_BOOTSTRAP="NOCONFIGURE=1 ./autogen.sh" DESCRIPTION="Graphical frontend and libraries for ripping DVDs and encoding to AVI/OGM/MKV/MP4" HOMEPAGE="http://ogmrip.sourceforge.net/" SRC_URI="" LICENSE="LGPL-2.1" SLOT="0" IUSE="aac debug doc dts gtk hal lavc lavf libnotify matroska mp3 ogm spell srt theora vorbis x264 xvid" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" RDEPEND="!media-video/ogmrip >=dev-libs/glib-2.6 >=app-i18n/enca-1.0 >=media-libs/libdvdread-0.9.7 virtual/eject >=media-video/mplayer-1.0_pre4 aac? ( >=media-libs/faac-1.24 ) gtk? ( >=x11-libs/gtk+-2.6 >=gnome-base/gconf-2.6 >=gnome-base/libglade-2.5 libnotify? ( >=x11-libs/gtk+-2.10 >=x11-libs/libnotify-0.4.3 ) ) hal? ( >=sys-apps/hal-0.4.2 ) matroska? ( >=media-video/mkvtoolnix-0.9 ) mp3? ( >=media-sound/lame-3.96 ) ogm? ( >=media-sound/ogmtools-1.4 ) spell? ( >=app-text/enchant-1.1 ) srt? ( >=app-text/gocr-0.39 ) theora? ( >=media-libs/libtheora-1.0_alpha6 ) vorbis? ( >=media-sound/vorbis-tools-1.0 )" RDEPEND="${RDEPEND} >=dev-util/intltool-0.35 >=dev-util/pkgconfig-0.12.0 doc? ( >=dev-util/gtk-doc-1.4-r1 >=dev-libs/libxslt-1.1.20-r1 )" DOCS="AUTHORS ChangeLog README NEWS TODO" pkg_setup() { G2CONF="${G2CONF} $(use_enable aac aac-support) $(use_enable debug maintainer-mode) $(use_enable gtk gtk-support) $(use_enable hal hal-support) $(use_enable lavc lavc-support) $(use_enable lavf lavf-support) $(use_enable libnotify libnotify-support) $(use_enable matroska mkv-support) $(use_enable mp3 mp3-support) $(use_enable ogm ogm-support) $(use_enable spell enchant-support) $(use_enable srt srt-support) $(use_enable theora theora-support) $(use_enable vorbis vorbis-support) $(use_enable x264 x264-support) $(use_enable xvid xvid-support)" if ! built_with_use -a media-video/mplayer dvd encode; then eerror "Please check that your USE flags contain 'dvd' and 'encode'" eerror "and emerge mplayer again." die "MPlayer is missing required USE flags (see above for details)." fi if use xvid && ! built_with_use -a media-video/mplayer xvid; then eerror "Please check that your USE flags contain 'xvid'" eerror "and emerge mplayer again." die "MPlayer is missing required USE flags (see above for details)." fi if use dts && ! built_with_use -a media-video/mplayer dts; then eerror "Please check that your USE flags contain 'dts'" eerror "and emerge mplayer again." die "MPlayer is missing required USE flags (see above for details)." fi if use x264 && ! built_with_use -a media-video/mplayer x264; then eerror "Please check that your USE flags contain 'x264'" eerror "and emerge mplayer again." die "MPlayer is missing required USE flags (see above for details)." fi }