/[gentoo-x86]/media-video/undvd/undvd-0.6.0.ebuild
Gentoo

Contents of /media-video/undvd/undvd-0.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jul 10 10:51:09 2009 UTC (10 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove mpeg4ip from RDEPEND since it's obsolete; you should install separate application (mp4creator) for this.
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/undvd/undvd-0.6.0.ebuild,v 1.3 2008/09/19 23:02:20 coldwind Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Simple dvd ripping command line app"
8 HOMEPAGE="http://sourceforge.net/projects/undvd/"
9 SRC_URI="http://downloads.sourceforge.net/${PN}/${P}.tar.gz"
10
11 LICENSE="GPL-3"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="aac css ffmpeg matroska mp4 ogm xvid"
15
16 DEPEND="sys-apps/coreutils
17 app-shells/bash
18 sys-apps/findutils
19 sys-apps/gawk
20 sys-apps/grep
21 sys-process/procps
22 sys-apps/sed
23 sys-devel/bc
24 sys-apps/util-linux
25 media-video/lsdvd
26 media-video/mplayer
27 css? (
28 media-libs/libdvdcss
29 media-video/vobcopy
30 )
31 ffmpeg? (
32 media-video/ffmpeg
33 )
34 matroska? (
35 media-video/mkvtoolnix
36 )
37 mp4? (
38 media-video/mpeg4ip
39 )
40 ogm? (
41 media-sound/ogmtools
42 )"
43 RDEPEND="${DEPEND}"
44
45 pkg_setup() {
46 einfo "Checking mplayer for USE flags we need..."
47 mplayer_flags="encode dvd x264 mp3"
48 for f in $mplayer_flags; do
49 if ! built_with_use media-video/mplayer $f; then
50 missing_flags="$f"
51 eerror "$f missing"
52 fi
53 done
54
55 if [ "$missing_flags" ]; then
56 eerror
57 eerror "Please re-emerge media-video/mplayer with USE=\"$mplayer_flags\""
58 die "mplayer missing necessary USE flags"
59 fi
60
61 if use aac; then
62 if ! built_with_use media-video/mplayer aac; then
63 eerror
64 eerror "aac missing. This means you cannot encode to aac."
65 eerror "Please re-emerge media-video/mplayer with USE=\"aac\""
66 die "mplayer merged without aac USE flag"
67 fi
68 fi
69
70 if use xvid; then
71 if ! built_with_use media-video/mplayer xvid; then
72 eerror
73 eerror "xvid missing. This means you cannot encode to xvid."
74 eerror "Please re-emerge media-video/mplayer with USE=\"xvid\""
75 die "mplayer merged without xvid USE flag"
76 fi
77 fi
78
79 einfo " everything seems to be in order"
80 }
81
82 src_unpack() {
83 unpack ${A}
84 cd "${WORKDIR}"
85 }
86
87 src_install() {
88 emake DESTDIR="${D}" install || die "Install failed"
89 }

  ViewVC Help
Powered by ViewVC 1.1.20