diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-28 13:01:42 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-28 13:01:42 +0000 |
commit | e97c5698c05e75bf01d3be42127ee7d88660f8ad (patch) | |
tree | 0a0b630163e53ac3a259d7a0579bb322b20e48da /dev-ruby/ruby-bdb | |
parent | Use insinto/newins instead of mkdir/cp (diff) | |
download | gentoo-2-e97c5698c05e75bf01d3be42127ee7d88660f8ad.tar.gz gentoo-2-e97c5698c05e75bf01d3be42127ee7d88660f8ad.tar.bz2 gentoo-2-e97c5698c05e75bf01d3be42127ee7d88660f8ad.zip |
Add a new ebuild based on ruby-ng.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/ruby-bdb')
-rw-r--r-- | dev-ruby/ruby-bdb/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/ruby-bdb/ruby-bdb-0.6.5-r1.ebuild | 60 |
2 files changed, 68 insertions, 2 deletions
diff --git a/dev-ruby/ruby-bdb/ChangeLog b/dev-ruby/ruby-bdb/ChangeLog index e7812c78117c..4f93672579e1 100644 --- a/dev-ruby/ruby-bdb/ChangeLog +++ b/dev-ruby/ruby-bdb/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/ruby-bdb -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-bdb/ChangeLog,v 1.33 2009/08/22 22:23:25 a3li Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-bdb/ChangeLog,v 1.34 2010/01/28 13:01:42 flameeyes Exp $ + +*ruby-bdb-0.6.5-r1 (28 Jan 2010) + + 28 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> + +ruby-bdb-0.6.5-r1.ebuild: + Add a new ebuild based on ruby-ng. 22 Aug 2009; Alex Legler <a3li@gentoo.org> ruby-bdb-0.6.5.ebuild: Remove ruby16 and ruby19 from USE_RUBY diff --git a/dev-ruby/ruby-bdb/ruby-bdb-0.6.5-r1.ebuild b/dev-ruby/ruby-bdb/ruby-bdb-0.6.5-r1.ebuild new file mode 100644 index 000000000000..e53944da0d16 --- /dev/null +++ b/dev-ruby/ruby-bdb/ruby-bdb-0.6.5-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-bdb/ruby-bdb-0.6.5-r1.ebuild,v 1.1 2010/01/28 13:01:42 flameeyes Exp $ + +EAPI=2 + +USE_RUBY="ruby18" + +inherit db-use ruby-ng + +MY_P=${P/ruby-/} + +DESCRIPTION="Ruby interface to Berkeley DB" +HOMEPAGE="http://moulon.inra.fr/ruby/bdb.html" +SRC_URI="ftp://moulon.inra.fr/pub/ruby/${MY_P}.tar.gz" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="doc" + +S=${WORKDIR}/${MY_P} + +RDEPEND=">=sys-libs/db-3.2.9" +DEPEND="${RDEPEND}" + +each_ruby_configure() { + ${RUBY} extconf.rb --with-db-include=$(db_includedir) \ + --with-db-version=$(db_libname | sed -e 's:db::') \ + || die "extconf failed" +} + +each_ruby_compile() { + emake || die "emake failed" + + if use doc; then + emake rdoc || die "rdoc failed" + fi +} + +each_ruby_test() { + emake test || die "tests failed" +} + +each_ruby_install() { + doruby src/bdb.so + + dodoc README.en Changes || die + dohtml bdb.html || die + + if use doc; then + pushd docs &>/dev/null + docinto api + dohtml -r doc || die + popd &>/dev/null + fi + + insinto /usr/share/doc/${PF}/examples + doins -r examples/* || die +} |