summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2008-04-01 16:21:21 +0000
committerBen de Groot <yngwin@gentoo.org>2008-04-01 16:21:21 +0000
commit63f01ba6bf6ade365836a90e28aeea318e6b621d (patch)
treec3fd865a80706a7cb7b98880faf4b934b72ab549 /media-sound/rubyripper
parentAdd ~alpha/~ia64/~sparc wrt #215709 (diff)
downloadgentoo-2-63f01ba6bf6ade365836a90e28aeea318e6b621d.tar.gz
gentoo-2-63f01ba6bf6ade365836a90e28aeea318e6b621d.tar.bz2
gentoo-2-63f01ba6bf6ade365836a90e28aeea318e6b621d.zip
Version bump for media-sound/rubyripper
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-sound/rubyripper')
-rw-r--r--media-sound/rubyripper/files/rubyripper-0.5.0-editor-environment.patch15
-rw-r--r--media-sound/rubyripper/files/rubyripper-0.5.0-require-rubygems.patch10
-rw-r--r--media-sound/rubyripper/rubyripper-0.5.0.ebuild66
3 files changed, 91 insertions, 0 deletions
diff --git a/media-sound/rubyripper/files/rubyripper-0.5.0-editor-environment.patch b/media-sound/rubyripper/files/rubyripper-0.5.0-editor-environment.patch
new file mode 100644
index 000000000000..78ba645a47c8
--- /dev/null
+++ b/media-sound/rubyripper/files/rubyripper-0.5.0-editor-environment.patch
@@ -0,0 +1,15 @@
+--- a/rubyripper_gtk2.rb 2008-04-01 17:05:12.000000000 +0200
++++ b/rubyripper_gtk2.rb 2008-04-01 17:05:59.000000000 +0200
+@@ -35,10 +35,10 @@
+ end
+
+ def editor # look for default editor
+- if installed('mousepad') : return 'mousepad' #Xfce4 editor
++ if ENV['EDITOR'] : return ENV['EDITOR']
+ elsif installed('kwrite') : return 'kwrite' #Kde editor
+ elsif installed('gedit') : return 'gedit' #Gnome editor
+- elsif ENV['EDITOR'] : return ENV['EDITOR']
++ elsif installed('mousepad') : return 'mousepad' #Xfce4 editor
+ else puts "No editor found. Please tell the developer which editor you use!" ; return 'unknown'
+ end
+ end
diff --git a/media-sound/rubyripper/files/rubyripper-0.5.0-require-rubygems.patch b/media-sound/rubyripper/files/rubyripper-0.5.0-require-rubygems.patch
new file mode 100644
index 000000000000..10ebbafef2d5
--- /dev/null
+++ b/media-sound/rubyripper/files/rubyripper-0.5.0-require-rubygems.patch
@@ -0,0 +1,10 @@
+--- a/rr_lib.rb 2008-01-23 20:32:09.000000000 +0100
++++ b/rr_lib.rb 2008-04-01 17:38:14.000000000 +0200
+@@ -22,6 +22,7 @@
+ $rr_version = '0.5.0' #application wide setting
+
+ begin
++ require 'rubygems'
+ require 'gettext'
+ rescue LoadError
+ puts "RubyGems is not found. Please install ruby-gettext."
diff --git a/media-sound/rubyripper/rubyripper-0.5.0.ebuild b/media-sound/rubyripper/rubyripper-0.5.0.ebuild
new file mode 100644
index 000000000000..4d96539bcf3a
--- /dev/null
+++ b/media-sound/rubyripper/rubyripper-0.5.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/rubyripper/rubyripper-0.5.0.ebuild,v 1.1 2008/04/01 16:21:20 yngwin Exp $
+
+EAPI="1"
+
+inherit ruby
+
+DESCRIPTION="A secure audio ripper for Linux"
+HOMEPAGE="http://code.google.com/p/rubyripper"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cli flac +gtk mp3 normalize vorbis wav"
+ILINGUAS="de es hu nl ru"
+
+for lingua in $ILINGUAS; do
+ IUSE="${IUSE} linguas_${lingua}"
+done
+
+DEPEND="dev-ruby/ruby-gettext"
+RDEPEND="gtk? ( dev-ruby/ruby-gtk2 )
+ dev-ruby/ruby-gettext
+ virtual/eject
+ media-sound/cd-discid
+ media-sound/cdparanoia
+ flac? ( media-libs/flac )
+ mp3? ( media-sound/lame )
+ vorbis? ( media-sound/vorbis-tools )
+ normalize? ( media-sound/normalize
+ mp3? ( media-sound/mp3gain )
+ vorbis? ( media-sound/vorbisgain )
+ wav? ( media-sound/wavegain ) )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # honour EDITOR environment variable first
+ epatch "${FILESDIR}/${P}-editor-environment.patch"
+ # fix for bug 203737
+ epatch "${FILESDIR}/${P}-require-rubygems.patch"
+}
+
+src_compile() {
+ local myconf="--prefix=/usr"
+ local enable_linguas=""
+
+ for lingua in $ILINGUAS; do
+ use linguas_$lingua && enable_linguas="${enable_linguas},${lingua}"
+ done
+
+ [[ -n ${enable_linguas} ]] && myconf="${myconf} --enable-lang=${enable_linguas#,}"
+
+ use gtk && myconf="${myconf} --enable-gtk2"
+ use cli && myconf="${myconf} --enable-cli"
+
+ ./configure ${myconf} || die "./configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+}