summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-01 23:35:11 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-01 23:35:11 +0000
commit86541a04810e6971c93457647d9390e59cebd077 (patch)
tree503abd9b58aabcade2a477d1ad942e568eebe738 /dev-ruby/pg
parentDon't error out if there is neither bin nor lib directories to install. (diff)
downloadhistorical-86541a04810e6971c93457647d9390e59cebd077.tar.gz
historical-86541a04810e6971c93457647d9390e59cebd077.tar.bz2
historical-86541a04810e6971c93457647d9390e59cebd077.zip
Initial import of the pg gem, to replace the old ruby-postgres driver where possible.
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/pg')
-rw-r--r--dev-ruby/pg/ChangeLog11
-rw-r--r--dev-ruby/pg/Manifest14
-rw-r--r--dev-ruby/pg/metadata.xml5
-rw-r--r--dev-ruby/pg/pg-0.8.0.ebuild47
4 files changed, 77 insertions, 0 deletions
diff --git a/dev-ruby/pg/ChangeLog b/dev-ruby/pg/ChangeLog
new file mode 100644
index 000000000000..1b6425ddd824
--- /dev/null
+++ b/dev-ruby/pg/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-ruby/pg
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/ChangeLog,v 1.1 2010/01/01 23:35:11 flameeyes Exp $
+
+*pg-0.8.0 (01 Jan 2010)
+
+ 01 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> +pg-0.8.0.ebuild,
+ +metadata.xml:
+ Initial import of the pg gem, to replace the old ruby-postgres driver
+ where possible.
+
diff --git a/dev-ruby/pg/Manifest b/dev-ruby/pg/Manifest
new file mode 100644
index 000000000000..246aaca413cf
--- /dev/null
+++ b/dev-ruby/pg/Manifest
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST pg-0.8.0.gem 71680 RMD160 4d966f6eb01f9341e9bc6adac8f0367798f9cf2c SHA1 a00a560068901f13a01a814f7d98e47f7d494f0a SHA256 6b3319d7cce4fdaaa2ab149bec70dadeaeb21889f92fb4a7e37fbda0bac2c9c0
+EBUILD pg-0.8.0.ebuild 1091 RMD160 e2b7a907aaee4cef480c4ce0d868c3eadeda85f7 SHA1 e17e3847a540c688b8e37b2d8565b18ac7d425e9 SHA256 d5eaa8b11da61e1c3845127f859ea1c3de232808ef3238758e0573d865182ff0
+MISC ChangeLog 405 RMD160 215139e5b21300ccb94636783f96b1aa0d438cbe SHA1 ed945a0f0af437120ca91f171fdfa7392f53f5c3 SHA256 3b3a8dd8b7326400333c591534c28cd93dcc03f8fd547977ce355c2492989f91
+MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.14 (GNU/Linux)
+
+iEYEARECAAYFAks+hrYACgkQAiZjviIA2XiyAgCfUjbKDxqcjsfGP9d+ANepcElE
+vsAAnRBM0GIyRbptBFYqXd3BdLfkrxm5
+=7MbJ
+-----END PGP SIGNATURE-----
diff --git a/dev-ruby/pg/metadata.xml b/dev-ruby/pg/metadata.xml
new file mode 100644
index 000000000000..852136183369
--- /dev/null
+++ b/dev-ruby/pg/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ruby</herd>
+</pkgmetadata>
diff --git a/dev-ruby/pg/pg-0.8.0.ebuild b/dev-ruby/pg/pg-0.8.0.ebuild
new file mode 100644
index 000000000000..874759b698a7
--- /dev/null
+++ b/dev-ruby/pg/pg-0.8.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/pg-0.8.0.ebuild,v 1.1 2010/01/01 23:35:11 flameeyes Exp $
+
+EAPI=2
+USE_RUBY="ruby18 ruby19"
+
+# Tests will always fail because they need access to the pgsql server
+RUBY_FAKEGEM_TEST_TASK="spec"
+RESTRICT="test"
+
+RUBY_FAKEGEM_DOCDIR="doc/rdoc"
+RUBY_FAKEGEM_EXTRADOC="ChangeLog Contributors README"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby extension library providing an API to PostgreSQL"
+HOMEPAGE="http://bitbucket.org/ged/ruby-pg/"
+
+LICENSE="|| ( GPL-2 Ruby )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+all_ruby_prepare() {
+ sed -i \
+ -e '/ext_helper/s:^:#:' \
+ -e '/task :spec =>/s:^:#:' \
+ Rakefile || die "Rakefile fix failed"
+}
+
+each_ruby_compile() {
+ pushd "${S}"/ext
+ ${RUBY} extconf.rb || die "extconf.rb failed"
+ emake || die "emake failed"
+ popd
+}
+
+each_ruby_install() {
+ ruby_fakegem_newins ext/pg.so lib/pg.so
+ each_fakegem_install
+}
+
+all_ruby_install() {
+ docinto examples
+ dodoc sample/*.rb || die "sample installation failed"
+}