# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/rubyripper/rubyripper-0.3.ebuild,v 1.3 2006/12/05 06:22:12 flameeyes Exp $ inherit ruby DESCRIPTION="A secure audio ripper for linux" HOMEPAGE="http://rubyforge.org/projects/rubyripper/" SRC_URI="http://rubyforge.org/frs/download.php/15318/${P}.tar.bz2" IUSE="flac mp3 vorbis" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" RDEPEND="dev-ruby/ruby-libglade2 virtual/eject media-sound/cd-discid media-sound/cdparanoia flac? ( media-libs/flac ) mp3? ( media-sound/lame ) vorbis? ( media-sound/vorbis-tools )" SLOT="0" src_unpack() { unpack ${A} sed -i -e 's|rubyripper.glade|/usr/share/rubyripper/rubyripper.glade|' "${S}/rubyripper_gtk2.rb" || die "sed failed" } src_install() { newbin rubyripper_cli.rb rrip-cli newbin rubyripper_gtk2.rb rrip-gui dodir /usr/share/rubyripper insinto /usr/share/rubyripper doins rubyripper.glade doruby rr_lib.rb } pkg_postinst() { echo "" elog "Rubyripper now has cli and gui versions, which are installed" elog "as rrip-cli and rrip-gui respectively." echo "" }