|
Lines 1-10
Link Here
|
| 1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2010 Gentoo Foundation |
| 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: /var/cvsroot/gentoo-x86/media-sound/rubyripper/rubyripper-0.5.7.ebuild,v 1.3 2009/12/06 12:14:58 graaff Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/rubyripper/rubyripper-0.5.7.ebuild,v 1.3 2009/12/06 12:14:58 graaff Exp $ |
| 4 |
|
4 |
|
| 5 |
EAPI=2 |
5 |
EAPI=2 |
| 6 |
VIRTUALX_REQUIRED="always" |
6 |
VIRTUALX_REQUIRED="always" |
| 7 |
inherit ruby virtualx |
7 |
USE_RUBY="ruby18" |
|
|
8 |
inherit ruby-ng virtualx |
| 8 |
|
9 |
|
| 9 |
DESCRIPTION="A secure audio ripper for Linux" |
10 |
DESCRIPTION="A secure audio ripper for Linux" |
| 10 |
HOMEPAGE="http://code.google.com/p/rubyripper" |
11 |
HOMEPAGE="http://code.google.com/p/rubyripper" |
|
Lines 13-19
Link Here
|
| 13 |
LICENSE="GPL-3" |
14 |
LICENSE="GPL-3" |
| 14 |
SLOT="0" |
15 |
SLOT="0" |
| 15 |
KEYWORDS="~amd64 ~sparc ~x86" |
16 |
KEYWORDS="~amd64 ~sparc ~x86" |
| 16 |
IUSE="cli flac +gtk +mp3 normalize +vorbis wav" |
17 |
IUSE="cli cdrdao flac +gtk +mp3 normalize +vorbis wav" |
| 17 |
|
18 |
|
| 18 |
ILINGUAS="de es fr hu nl ru" |
19 |
ILINGUAS="de es fr hu nl ru" |
| 19 |
|
20 |
|
|
Lines 21-32
Link Here
|
| 21 |
IUSE="${IUSE} linguas_${lingua}" |
22 |
IUSE="${IUSE} linguas_${lingua}" |
| 22 |
done |
23 |
done |
| 23 |
|
24 |
|
| 24 |
RDEPEND="gtk? ( dev-ruby/ruby-gtk2 |
25 |
ruby_add_rdepend "dev-ruby/ruby-gettext" |
| 25 |
>=dev-ruby/rcairo-1.8.0-r1[svg] ) |
26 |
ruby_add_rdepend ">=dev-ruby/rcairo-1.8.0-r1[svg]" |
| 26 |
dev-ruby/ruby-gettext |
27 |
ruby_add_rdepend gtk "dev-ruby/ruby-gtk2" |
| 27 |
virtual/eject |
28 |
|
|
|
29 |
RDEPEND="virtual/eject |
| 28 |
media-sound/cd-discid |
30 |
media-sound/cd-discid |
| 29 |
media-sound/cdparanoia |
31 |
media-sound/cdparanoia |
|
|
32 |
cdrdao? ( app-cdr/cdrdao ) |
| 30 |
flac? ( media-libs/flac ) |
33 |
flac? ( media-libs/flac ) |
| 31 |
mp3? ( media-sound/lame ) |
34 |
mp3? ( media-sound/lame ) |
| 32 |
vorbis? ( media-sound/vorbis-tools ) |
35 |
vorbis? ( media-sound/vorbis-tools ) |
|
Lines 36-47
Link Here
|
| 36 |
wav? ( media-sound/wavegain ) )" |
39 |
wav? ( media-sound/wavegain ) )" |
| 37 |
DEPEND="${RDEPEND}" |
40 |
DEPEND="${RDEPEND}" |
| 38 |
|
41 |
|
| 39 |
src_prepare() { |
42 |
# fix for bug 203737 |
| 40 |
# fix for bug 203737 |
43 |
RUBY_PATCHES=( "${FILESDIR}/${PN}-0.5.2-require-rubygems.patch" ) |
| 41 |
epatch "${FILESDIR}"/${PN}-0.5.2-require-rubygems.patch |
|
|
| 42 |
} |
| 43 |
|
44 |
|
| 44 |
src_configure() { |
45 |
each_ruby_configure() { |
| 45 |
local myconf="--prefix=/usr" |
46 |
local myconf="--prefix=/usr" |
| 46 |
local enable_linguas="" |
47 |
local enable_linguas="" |
| 47 |
|
48 |
|
|
Lines 54-62
Link Here
|
| 54 |
use gtk && myconf="${myconf} --enable-gtk2" |
55 |
use gtk && myconf="${myconf} --enable-gtk2" |
| 55 |
use cli && myconf="${myconf} --enable-cli" |
56 |
use cli && myconf="${myconf} --enable-cli" |
| 56 |
|
57 |
|
| 57 |
Xeconf ${myconf} |
58 |
# Force virtualmake to use configure instead of econf |
|
|
59 |
maketype="./configure" |
| 60 |
virtualmake ${myconf} |
| 58 |
} |
61 |
} |
| 59 |
|
62 |
|
| 60 |
src_install() { |
63 |
each_ruby_install() { |
| 61 |
emake DESTDIR="${D}" install || die "emake install failed" |
64 |
emake DESTDIR="${D}" install || die "emake install failed" |
| 62 |
} |
65 |
} |