Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 327233 | Differences between
and this patch

Collapse All | Expand All

(-)/media/system/repositories/portage/media-sound/rubyripper/rubyripper-0.5.7.ebuild (-19 / +22 lines)
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-32 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="bg de es fr hu it nl ru se"
19
20
20
for lingua in $ILINGUAS; do
21
for lingua in $ILINGUAS; do
21
	IUSE="${IUSE} linguas_${lingua}"
22
	IUSE="${IUSE} linguas_${lingua}"
22
done
23
done
23
24
24
RDEPEND="gtk? ( dev-ruby/ruby-gtk2
25
RDEPEND="virtual/eject
25
	>=dev-ruby/rcairo-1.8.0-r1[svg] )
26
	dev-ruby/ruby-gettext
27
	virtual/eject
28
	media-sound/cd-discid
26
	media-sound/cd-discid
29
	media-sound/cdparanoia
27
	media-sound/cdparanoia
28
	cdrdao? ( app-cdr/cdrdao )
30
	flac? ( media-libs/flac )
29
	flac? ( media-libs/flac )
31
	mp3? ( media-sound/lame )
30
	mp3? ( media-sound/lame )
32
	vorbis? ( media-sound/vorbis-tools )
31
	vorbis? ( media-sound/vorbis-tools )
Lines 36-49 Link Here
36
		wav? ( media-sound/wavegain ) )"
35
		wav? ( media-sound/wavegain ) )"
37
DEPEND="${RDEPEND}"
36
DEPEND="${RDEPEND}"
38
37
39
src_prepare() {
38
ruby_add_rdepend ">=dev-ruby/ruby-gettext-2.1.0-r1
40
	# fix for bug 203737
39
	>=dev-ruby/rcairo-1.8.1[svg]
41
	epatch "${FILESDIR}"/${PN}-0.5.2-require-rubygems.patch
40
	gtk? ( >=dev-ruby/ruby-gtk2-0.19.3 )"
42
}
41
43
42
# fix for bug 203737
44
src_configure() {
43
RUBY_PATCHES=( "${FILESDIR}/${PN}-0.5.2-require-rubygems.patch" )
45
	local myconf="--prefix=/usr"
44
46
	local enable_linguas=""
45
each_ruby_configure() {
46
	local myconf=--prefix=/usr
47
	local enable_linguas
47
48
48
	for lingua in $ILINGUAS; do
49
	for lingua in $ILINGUAS; do
49
		use linguas_$lingua && enable_linguas="${enable_linguas},${lingua}"
50
		use linguas_$lingua && enable_linguas="${enable_linguas},${lingua}"
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
}

Return to bug 327233