dev-ruby/rjb: added thanks to aricon for reporting need and bapa in #gentoo-sunrise for writing

This commit is contained in:
Zero_Chaos 2011-01-24 14:48:12 +00:00
parent c486525b1e
commit 974b7d6a83
3 changed files with 61 additions and 0 deletions

10
dev-ruby/rjb/Changelog Normal file
View file

@ -0,0 +1,10 @@
# ChangeLog for dev-ruby/rjb
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*rjb-1.3.4 (24 Jan 2011)
24 Jan 2011; Dean Matzkov <bapabooiee@gmail.com> +rjb-1.3.4.ebuild:
Created the hackiest ebuild in the world, as per the request of Zero_Chaos.

3
dev-ruby/rjb/Manifest Normal file
View file

@ -0,0 +1,3 @@
DIST rjb-1.3.4.gem 61440 RMD160 ce0a37cf50508e51e41a9a04260dcab955f97683 SHA1 801c69f2d2c4a638acfa06342a6ded4af2e2ffab SHA256 f756a152130a2ac28e7d50d8dbbf766e03df635b6a513e31de3f2850f0d5abc5
EBUILD rjb-1.3.4.ebuild 1203 RMD160 9220d8f231b7eb8b52d369bc652518838f2741b8 SHA1 d86f0bdd006c8305b1cb37c44202cb5f404fec73 SHA256 685978edb5e661b316a23acda60339c01bef57a15118033cbe18a0bc7ae64c41
MISC Changelog 289 RMD160 a760747cdd9dfe598517268ec76cc9f4aead2495 SHA1 5811c0f160ef3cb1db7b7d754767c61b075f03ba SHA256 1e05553cd13b2ad0e935a11df155e989fffa4fdedaaa78140eaaec3e451bc2df

View file

@ -0,0 +1,48 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
USE_RUBY="ruby18 ruby19"
RUBY_FAKEGEM_EXTRADOC="readme.txt readme.sj ChangeLog"
inherit ruby-fakegem
DESCRIPTION="Rjb is a Ruby-Java bridge"
HOMEPAGE="http://rjb.rubyforge.org/"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
each_ruby_configure() {
export JAVA_HOME=/etc/java-config-2/current-system-vm # <-- HACK !
${RUBY} -C ext extconf.rb || die "extconf.rb failed"
}
each_ruby_compile() {
cd ext
emake CFLAGS="${CFLAGS} -fPIC" archflags="${LDFLAGS}" || die "emake failed"
}
each_ruby_install() {
each_fakegem_install
local dest="${D}/$(ruby_fakegem_gemsdir)/gems/${P}"
# Untar the "data" tarball
tar -mxf ../data.tar.gz -C "${dest}" || die "untarring failed"
# Copy compiled extension into lib dir
cp ext/*.so "${dest}"/lib || die "copying lib failed"
# Copy everyting from ext, just in case
cp -r ext "${dest}" || die "copying ext failed"
# ...but remove some junk we know we won't need
cd "${dest}"
rm -f ext/*.o ext/mkmf.log > /dev/null 2>&1
rm -f ${RUBY_FAKEGEM_EXTRADOC} COPYING > /dev/null 2>&1 # already in /usr/share/doc
}