diff options
author | Ben de Groot <yngwin@gentoo.org> | 2008-08-07 00:54:16 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2008-08-07 00:54:16 +0000 |
commit | fca3f502b15c30ac3a96ce1ca2962fa488cdffa3 (patch) | |
tree | bef70485f208ac3f42ef95859680c076a9b7f03b /media-sound/rubyripper/rubyripper-0.5.2.ebuild | |
parent | Version bump thanks to Vieri (bug #234074). (diff) | |
download | historical-fca3f502b15c30ac3a96ce1ca2962fa488cdffa3.tar.gz historical-fca3f502b15c30ac3a96ce1ca2962fa488cdffa3.tar.bz2 historical-fca3f502b15c30ac3a96ce1ca2962fa488cdffa3.zip |
Version bump
Package-Manager: portage-2.2_rc6/cvs/Linux 2.6.26-hg1 i686
Diffstat (limited to 'media-sound/rubyripper/rubyripper-0.5.2.ebuild')
-rw-r--r-- | media-sound/rubyripper/rubyripper-0.5.2.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/media-sound/rubyripper/rubyripper-0.5.2.ebuild b/media-sound/rubyripper/rubyripper-0.5.2.ebuild new file mode 100644 index 000000000000..ca9dfa16ee6b --- /dev/null +++ b/media-sound/rubyripper/rubyripper-0.5.2.ebuild @@ -0,0 +1,67 @@ +# 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.2.ebuild,v 1.1 2008/08/07 00:54:15 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 ~sparc ~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}" + + # fix for bug 203737 + epatch "${FILESDIR}/${P}-require-rubygems.patch" + + # our wavgain is named wavegain + sed -i -e "s:wavgain:wavegain:g" "${S}"/configure || die "sed failed" +} + +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" +} |