| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/id3lib-ruby/id3lib-ruby-0.6.0.ebuild,v 1.2 2012/05/01 18:24:03 armin76 Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
# ruby19 → test failures
|
| 7 |
# jruby → compiled extension
|
| 8 |
USE_RUBY="ruby18 ree18"
|
| 9 |
|
| 10 |
RUBY_FAKEGEM_DOCDIR="doc"
|
| 11 |
RUBY_FAKEGEM_EXTRADOC="CHANGES README TODO"
|
| 12 |
|
| 13 |
inherit ruby-fakegem
|
| 14 |
|
| 15 |
DESCRIPTION="Ruby interface to the id3lib C++ library"
|
| 16 |
HOMEPAGE="http://id3lib-ruby.rubyforge.org/"
|
| 17 |
|
| 18 |
LICENSE="Ruby"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="~amd64 ~ppc64 ~x86"
|
| 21 |
IUSE=""
|
| 22 |
|
| 23 |
DEPEND="${DEPEND} media-libs/id3lib"
|
| 24 |
RDEPEND="${RDEPEND} media-libs/id3lib"
|
| 25 |
|
| 26 |
each_ruby_configure() {
|
| 27 |
pushd ext/id3lib_api
|
| 28 |
${RUBY} extconf.rb
|
| 29 |
popd
|
| 30 |
}
|
| 31 |
|
| 32 |
each_ruby_compile() {
|
| 33 |
pushd ext/id3lib_api
|
| 34 |
emake || die "Unable to compile extension."
|
| 35 |
popd
|
| 36 |
}
|
| 37 |
|
| 38 |
each_ruby_install() {
|
| 39 |
mv ext/id3lib_api/id3lib_api.so lib || die "Unable to install extension."
|
| 40 |
|
| 41 |
each_fakegem_install
|
| 42 |
}
|