summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2009-12-15 09:44:32 +0000
committerAlex Legler <a3li@gentoo.org>2009-12-15 09:44:32 +0000
commit0d934c4953a91dd6b4543b8ed6831ddb7f3e9321 (patch)
treea5da895bb5f9894ce7c44eab79e43108c54afc3d
parentChange X11 to MIT in LICENSE. (diff)
downloadgentoo-2-0d934c4953a91dd6b4543b8ed6831ddb7f3e9321.tar.gz
gentoo-2-0d934c4953a91dd6b4543b8ed6831ddb7f3e9321.tar.bz2
gentoo-2-0d934c4953a91dd6b4543b8ed6831ddb7f3e9321.zip
revbump to ruby-ng, fixing bug 261141
(Portage version: 2.2_rc59/cvs/Linux x86_64)
-rw-r--r--dev-ruby/mysql-ruby/ChangeLog7
-rw-r--r--dev-ruby/mysql-ruby/mysql-ruby-2.8.1-r1.ebuild65
2 files changed, 71 insertions, 1 deletions
diff --git a/dev-ruby/mysql-ruby/ChangeLog b/dev-ruby/mysql-ruby/ChangeLog
index 05b66ebe5a29..cce641bb2d73 100644
--- a/dev-ruby/mysql-ruby/ChangeLog
+++ b/dev-ruby/mysql-ruby/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/mysql-ruby
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/ChangeLog,v 1.68 2009/12/10 20:09:50 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/ChangeLog,v 1.69 2009/12/15 09:44:31 a3li Exp $
+
+*mysql-ruby-2.8.1-r1 (14 Dec 2009)
+
+ 14 Dec 2009; Alex Legler <a3li@gentoo.org> +mysql-ruby-2.8.1-r1.ebuild:
+ revbump to use ruby-fakegem, fixing bug 261141
10 Dec 2009; Markus Meier <maekke@gentoo.org> mysql-ruby-2.8.1.ebuild:
amd64/x86 stable, bug #296340
diff --git a/dev-ruby/mysql-ruby/mysql-ruby-2.8.1-r1.ebuild b/dev-ruby/mysql-ruby/mysql-ruby-2.8.1-r1.ebuild
new file mode 100644
index 000000000000..7345274c254b
--- /dev/null
+++ b/dev-ruby/mysql-ruby/mysql-ruby-2.8.1-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/mysql-ruby-2.8.1-r1.ebuild,v 1.1 2009/12/15 09:44:32 a3li Exp $
+
+EAPI="2"
+USE_RUBY="ruby18 ruby19"
+
+RUBY_FAKEGEM_NAME="mysql"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A Ruby extension library to use MySQL"
+HOMEPAGE="http://www.tmtm.org/en/mysql/ruby/"
+SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="test"
+
+DEPEND="virtual/mysql"
+RDEPEND="${DEPEND}"
+
+TEST_DIR="/usr/share/${PN}/test/"
+
+all_ruby_prepare() {
+ if use hppa; then
+ sed -e 's/LONG_LONG/long long/' -i "${S}"/mysql.c.in || die
+ fi
+
+ epatch "${FILESDIR}/${P}-test.patch"
+}
+
+each_ruby_configure() {
+ ${RUBY} extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake || die
+}
+
+each_ruby_install() {
+ make DESTDIR="${D}" install || die
+ ruby_fakegem_genspec
+}
+
+all_fakegem_install() {
+ dohtml * || die
+
+ if use test ; then
+ insinto $TEST_DIR
+ doins test.rb || die
+ fi
+}
+
+src_test() {
+ elog
+ elog "To test the library you need to start MySQL first."
+ elog "Then run:"
+ elog
+ elog " % ruby ${TEST_DIR}test.rb <hostname> <user> <password>"
+ elog
+ elog "See /usr/share/doc/${PF}/html/README.html for details."
+ elog
+}