diff options
author | Hans de Graaff <graaff@gentoo.org> | 2011-03-13 19:10:24 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2011-03-13 19:10:24 +0000 |
commit | 02f36ab3aea29c4936eaa4df2caf83b12c2052e1 (patch) | |
tree | 3b59203da02f76bdcb04eb7f843b5d53d317a1e2 /dev-ruby/ruby-activeldap | |
parent | Stable on alpha, bug #357417 (diff) | |
download | gentoo-2-02f36ab3aea29c4936eaa4df2caf83b12c2052e1.tar.gz gentoo-2-02f36ab3aea29c4936eaa4df2caf83b12c2052e1.tar.bz2 gentoo-2-02f36ab3aea29c4936eaa4df2caf83b12c2052e1.zip |
Use our own metadata to avoid problems with versioning.
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/ruby-activeldap')
-rw-r--r-- | dev-ruby/ruby-activeldap/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/ruby-activeldap/ruby-activeldap-1.2.2-r1.ebuild | 57 |
2 files changed, 64 insertions, 1 deletions
diff --git a/dev-ruby/ruby-activeldap/ChangeLog b/dev-ruby/ruby-activeldap/ChangeLog index 53fabb496d25..2eca00e672ff 100644 --- a/dev-ruby/ruby-activeldap/ChangeLog +++ b/dev-ruby/ruby-activeldap/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/ruby-activeldap # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-activeldap/ChangeLog,v 1.27 2011/01/10 17:55:12 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-activeldap/ChangeLog,v 1.28 2011/03/13 19:10:24 graaff Exp $ + +*ruby-activeldap-1.2.2-r1 (13 Mar 2011) + + 13 Mar 2011; Hans de Graaff <graaff@gentoo.org> + +ruby-activeldap-1.2.2-r1.ebuild: + Use our own metadata to avoid problems with versioning. 10 Jan 2011; Hans de Graaff <graaff@gentoo.org> ruby-activeldap-1.2.2.ebuild: diff --git a/dev-ruby/ruby-activeldap/ruby-activeldap-1.2.2-r1.ebuild b/dev-ruby/ruby-activeldap/ruby-activeldap-1.2.2-r1.ebuild new file mode 100644 index 000000000000..89e0ec084741 --- /dev/null +++ b/dev-ruby/ruby-activeldap/ruby-activeldap-1.2.2-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-activeldap/ruby-activeldap-1.2.2-r1.ebuild,v 1.1 2011/03/13 19:10:24 graaff Exp $ + +EAPI="2" +USE_RUBY="ruby18" + +RUBY_FAKEGEM_TASK_DOC="docs" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGES README TODO" +RUBY_FAKEGEM_EXTRAINSTALL="data po rails rails_generators" +RUBY_FAKEGEM_NAME="activeldap" + +inherit ruby-fakegem + +MY_P="${P/ruby-/}" +DESCRIPTION="Ruby/ActiveLDAP provides an activerecord inspired object oriented interface to LDAP" +HOMEPAGE="http://ruby-activeldap.rubyforge.org/doc/" +SRC_URI="mirror://rubygems/${MY_P}.gem" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~x86 ~x86-macos" +IUSE="" + +# Most tests require a live LDAP server to run. +RESTRICT="test" + +ruby_add_bdepend "dev-ruby/hoe" +ruby_add_bdepend "test? ( virtual/ruby-test-unit )" + +ruby_add_rdepend " + =dev-ruby/activerecord-2.3* + ~dev-ruby/locale-2.0.5 + =dev-ruby/ruby-gettext-2.1.0* + =dev-ruby/gettext_activerecord-2.1.0* + >=dev-ruby/ruby-ldap-0.8.2" + +all_ruby_prepare() { + # Make activeldap more lenient towards newer Rails versions. + sed -i -e "s/= 2.3.8/~>2.3.5/" lib/active_ldap.rb || die + # And use our own stub metadata to avoid problems there as well. + rm ../metadata || die +} + +each_ruby_test() { + # Tests use test-unit-2 which is currently masked in tree. + # Version 2.0.6 is bundled so use that for now. + RUBYLIB=test-unit/lib ${RUBY} -S rake test || die "Tests failed." +} + +all_ruby_install() { + all_fakegem_install + + insinto /usr/share/doc/${PF} + doins -r examples +} |