Gentoo Archives: gentoo-commits

From: "Ben de Groot (yngwin)" <yngwin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/rubyripper: rubyripper-0.5.0.ebuild
Date: Tue, 01 Apr 2008 16:21:24
Message-Id: E1JgjEf-0001nl-HF@stork.gentoo.org
1 yngwin 08/04/01 16:21:21
2
3 Added: rubyripper-0.5.0.ebuild
4 Log:
5 Version bump for media-sound/rubyripper
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.1 media-sound/rubyripper/rubyripper-0.5.0.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/rubyripper/rubyripper-0.5.0.ebuild?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/rubyripper/rubyripper-0.5.0.ebuild?rev=1.1&content-type=text/plain
13
14 Index: rubyripper-0.5.0.ebuild
15 ===================================================================
16 # Copyright 1999-2008 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18 # $Header: /var/cvsroot/gentoo-x86/media-sound/rubyripper/rubyripper-0.5.0.ebuild,v 1.1 2008/04/01 16:21:20 yngwin Exp $
19
20 EAPI="1"
21
22 inherit ruby
23
24 DESCRIPTION="A secure audio ripper for Linux"
25 HOMEPAGE="http://code.google.com/p/rubyripper"
26 SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"
27 LICENSE="GPL-3"
28 SLOT="0"
29 KEYWORDS="~amd64 ~x86"
30 IUSE="cli flac +gtk mp3 normalize vorbis wav"
31 ILINGUAS="de es hu nl ru"
32
33 for lingua in $ILINGUAS; do
34 IUSE="${IUSE} linguas_${lingua}"
35 done
36
37 DEPEND="dev-ruby/ruby-gettext"
38 RDEPEND="gtk? ( dev-ruby/ruby-gtk2 )
39 dev-ruby/ruby-gettext
40 virtual/eject
41 media-sound/cd-discid
42 media-sound/cdparanoia
43 flac? ( media-libs/flac )
44 mp3? ( media-sound/lame )
45 vorbis? ( media-sound/vorbis-tools )
46 normalize? ( media-sound/normalize
47 mp3? ( media-sound/mp3gain )
48 vorbis? ( media-sound/vorbisgain )
49 wav? ( media-sound/wavegain ) )"
50
51 src_unpack() {
52 unpack ${A}
53 cd "${S}"
54
55 # honour EDITOR environment variable first
56 epatch "${FILESDIR}/${P}-editor-environment.patch"
57 # fix for bug 203737
58 epatch "${FILESDIR}/${P}-require-rubygems.patch"
59 }
60
61 src_compile() {
62 local myconf="--prefix=/usr"
63 local enable_linguas=""
64
65 for lingua in $ILINGUAS; do
66 use linguas_$lingua && enable_linguas="${enable_linguas},${lingua}"
67 done
68
69 [[ -n ${enable_linguas} ]] && myconf="${myconf} --enable-lang=${enable_linguas#,}"
70
71 use gtk && myconf="${myconf} --enable-gtk2"
72 use cli && myconf="${myconf} --enable-cli"
73
74 ./configure ${myconf} || die "./configure failed"
75
76 emake || die "emake failed"
77 }
78
79 src_install() {
80 emake DESTDIR="${D}" install || die "emake install failed"
81 }
82
83
84
85 --
86 gentoo-commits@l.g.o mailing list