# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-postgres/ruby-postgres-0.7.9.20080128-r2.ebuild,v 1.5 2011/07/24 17:35:51 armin76 Exp $ EAPI=2 USE_RUBY="ruby18 ree18" RUBY_FAKEGEM_TASK_TEST="" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_EXTRADOC="Contributors README" RUBY_FAKEGEM_NAME="postgres" # changes 0.7.1.20060406 to 0.7.1.2006.04.06 # ideally, PV would have been this to start with, but can't change it now as # 0.7.1.20051221 > 0.7.1.2006.04.06. RUBY_FAKEGEM_VERSION="0.7.9.2008.01.28" inherit multilib ruby-fakegem versionator MY_P="${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}" DESCRIPTION="An extension library to access a PostgreSQL database from Ruby" HOMEPAGE="http://ruby.scripting.ca/postgres" SRC_URI="mirror://rubygems/${MY_P}.gem" LICENSE="GPL-2 Ruby" SLOT="0" KEYWORDS="alpha amd64 ~hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" IUSE="" RDEPEND="${RDEPEND} dev-db/postgresql-base" DEPEND="${DEPEND} dev-db/postgresql-base" each_ruby_configure() { ${RUBY} -Cext extconf.rb || die } each_ruby_compile() { emake -Cext || die } each_ruby_install() { mkdir lib || die mv ext/postgres$(get_modname) lib/ || die each_fakegem_install }