commit: 66ef49d85c2dda1f4043997985a2d866d0494716 Author: Hans de Graaff <hans <AT> degraaff <DOT> org> AuthorDate: Tue Sep 16 09:20:57 2014 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Tue Sep 16 09:20:57 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=dev/graaff.git;a=commit;h=66ef49d8
Add ruby20, ruby21. EAPI=5. Work around deprecated rake code. Package-Manager: portage-2.2.8-r1 --- dev-ruby/krb5-auth/ChangeLog | 7 +++- dev-ruby/krb5-auth/krb5-auth-0.7-r5.ebuild | 54 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/dev-ruby/krb5-auth/ChangeLog b/dev-ruby/krb5-auth/ChangeLog index 956f63d..4a6873d 100644 --- a/dev-ruby/krb5-auth/ChangeLog +++ b/dev-ruby/krb5-auth/ChangeLog @@ -1,7 +1,12 @@ # ChangeLog for dev-ruby/krb5-auth -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*krb5-auth-0.7-r5 (16 Sep 2014) + + 16 Sep 2014; Hans de Graaff <[email protected]> +krb5-auth-0.7-r5.ebuild: + Add ruby20, ruby21. EAPI=5. Work around deprecated rake code. + *krb5-auth-0.7-r4 (11 Oct 2012) 11 Oct 2012; Hans de Graaff <[email protected]> +krb5-auth-0.7-r4.ebuild, diff --git a/dev-ruby/krb5-auth/krb5-auth-0.7-r5.ebuild b/dev-ruby/krb5-auth/krb5-auth-0.7-r5.ebuild new file mode 100644 index 0000000..c90b44b --- /dev/null +++ b/dev-ruby/krb5-auth/krb5-auth-0.7-r5.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +USE_RUBY="ruby19 ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README TODO example.rb" + +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_EXTRAINSTALL="ext" + +inherit multilib ruby-fakegem + +DESCRIPTION="Ruby bindings for the Kerberos library" +HOMEPAGE="http://rubyforge.org/projects/krb5-auth/" +LICENSE="GPL-2" + +KEYWORDS="~amd64 ~x86 ~x86-macos" +SLOT="0" +IUSE="" + +DEPEND="${DEPEND} virtual/krb5" +RDEPEND="${RDEPEND} virtual/krb5" + +RUBY_PATCHES=( ${P}-ruby19.patch ) + +all_ruby_prepare() { + # Move the example out of the bin directory to avoid auto-installation + mv bin/example.rb . || die + rmdir bin || die +} + +each_ruby_configure() { + ${RUBY} -Cext extconf.rb || die +} + +each_ruby_compile() { + # We have injected --no-undefined in Ruby as a safety precaution + # against broken ebuilds, but these bindings unfortunately rely on + # a symbol that cannot be linked directly. + find . -name Makefile -print0 | xargs -0 \ + sed -i -e 's:-Wl,--no-undefined::' || die "--no-undefined removal failed" + + emake V=1 -Cext || die +} + +all_ruby_install() { + all_fakegem_install + + dodoc example.rb +}
