/[gentoo-x86]/dev-ruby/postgres/postgres-0.7.9.20080128-r2.ebuild
Gentoo

Contents of /dev-ruby/postgres/postgres-0.7.9.20080128-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Aug 16 03:44:31 2012 UTC (5 years, 5 months ago) by flameeyes
Branch: MAIN
Move to new location.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64, RepoMan options: --force)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/postgres/ruby-postgres-0.7.9.20080128-r2.ebuild,v 1.9 2012/07/01 18:31:45 armin76 Exp $
4
5 EAPI=2
6 USE_RUBY="ruby18 ree18"
7
8 RUBY_FAKEGEM_TASK_TEST=""
9 RUBY_FAKEGEM_TASK_DOC=""
10 RUBY_FAKEGEM_EXTRADOC="Contributors README"
11
12 RUBY_FAKEGEM_NAME="postgres"
13
14 # changes 0.7.1.20060406 to 0.7.1.2006.04.06
15
16 # ideally, PV would have been this to start with, but can't change it now as
17 # 0.7.1.20051221 > 0.7.1.2006.04.06.
18 RUBY_FAKEGEM_VERSION="0.7.9.2008.01.28"
19
20 inherit multilib ruby-fakegem versionator
21
22 MY_P="${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}"
23
24 DESCRIPTION="An extension library to access a PostgreSQL database from Ruby"
25 HOMEPAGE="http://ruby.scripting.ca/postgres"
26 SRC_URI="mirror://rubygems/${MY_P}.gem"
27 LICENSE="GPL-2 Ruby"
28 SLOT="0"
29 KEYWORDS="amd64 hppa ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
30 IUSE=""
31
32 RDEPEND="${RDEPEND} dev-db/postgresql-base"
33 DEPEND="${DEPEND} dev-db/postgresql-base"
34
35 all_ruby_prepare() {
36 # Remove yaml metadata so we supply our own gemspec. There are no
37 # ruby dependencies and this might fix bug 407829.
38 rm ../metadata || die
39 }
40
41 each_ruby_configure() {
42 ${RUBY} -Cext extconf.rb || die
43 }
44
45 each_ruby_compile() {
46 emake -Cext || die
47 }
48
49 each_ruby_install() {
50 mkdir lib || die
51 mv ext/postgres$(get_modname) lib/ || die
52
53 each_fakegem_install
54 }

  ViewVC Help
Powered by ViewVC 1.1.20