summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-02-26 07:52:58 +0000
committerHans de Graaff <graaff@gentoo.org>2011-02-26 07:52:58 +0000
commit07f0c60fdb93926860db8f0c4e5d2668f241911a (patch)
treed985f79a308d9f4aef0bc78547c2d97670875853 /dev-ruby/mysql-ruby
parentRemove old version. (diff)
downloadhistorical-07f0c60fdb93926860db8f0c4e5d2668f241911a.tar.gz
historical-07f0c60fdb93926860db8f0c4e5d2668f241911a.tar.bz2
historical-07f0c60fdb93926860db8f0c4e5d2668f241911a.zip
Revision bump to create new stable candidate.
Package-Manager: portage-2.1.9.25/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/mysql-ruby')
-rw-r--r--dev-ruby/mysql-ruby/ChangeLog8
-rw-r--r--dev-ruby/mysql-ruby/mysql-ruby-2.8.2-r1.ebuild64
-rw-r--r--dev-ruby/mysql-ruby/mysql-ruby-2.8.2.ebuild4
3 files changed, 73 insertions, 3 deletions
diff --git a/dev-ruby/mysql-ruby/ChangeLog b/dev-ruby/mysql-ruby/ChangeLog
index 2078a774be6a..8474e8b83e17 100644
--- a/dev-ruby/mysql-ruby/ChangeLog
+++ b/dev-ruby/mysql-ruby/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/mysql-ruby
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/ChangeLog,v 1.91 2011/01/08 08:39:47 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/ChangeLog,v 1.92 2011/02/26 07:52:58 graaff Exp $
+
+*mysql-ruby-2.8.2-r1 (26 Feb 2011)
+
+ 26 Feb 2011; Hans de Graaff <graaff@gentoo.org> mysql-ruby-2.8.2.ebuild,
+ +mysql-ruby-2.8.2-r1.ebuild:
+ Revision bump to create new stable candidate.
08 Jan 2011; Hans de Graaff <graaff@gentoo.org> mysql-ruby-2.8.2.ebuild,
-files/mysql-ruby-2.8.2-test.patch, +files/mysql-ruby-2.8.2-test2.patch:
diff --git a/dev-ruby/mysql-ruby/mysql-ruby-2.8.2-r1.ebuild b/dev-ruby/mysql-ruby/mysql-ruby-2.8.2-r1.ebuild
new file mode 100644
index 000000000000..18f7513421f9
--- /dev/null
+++ b/dev-ruby/mysql-ruby/mysql-ruby-2.8.2-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2011 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.2-r1.ebuild,v 1.1 2011/02/26 07:52:58 graaff Exp $
+
+EAPI="3"
+USE_RUBY="ruby18 ree18 ruby19"
+
+RUBY_FAKEGEM_NAME="mysql"
+
+RUBY_FAKEGEM_TASK_TEST=""
+RUBY_FAKEGEM_TASK_DOC=""
+
+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[-static]"
+RDEPEND="${DEPEND}"
+
+TEST_DIR="/usr/share/${PN}/test/"
+
+all_ruby_prepare() {
+ epatch "${FILESDIR}/${P}-test2.patch"
+}
+
+each_ruby_configure() {
+ ${RUBY} extconf.rb --with-mysql-config "${EPREFIX}/usr/bin/mysqlconfig" || die
+}
+
+each_ruby_compile() {
+ emake || die
+}
+
+each_ruby_install() {
+ emake DESTDIR="${D}" install || die
+ ruby_fakegem_install_gemspec
+}
+
+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
+}
diff --git a/dev-ruby/mysql-ruby/mysql-ruby-2.8.2.ebuild b/dev-ruby/mysql-ruby/mysql-ruby-2.8.2.ebuild
index 32bbcb02d53f..b36b3cacc5db 100644
--- a/dev-ruby/mysql-ruby/mysql-ruby-2.8.2.ebuild
+++ b/dev-ruby/mysql-ruby/mysql-ruby-2.8.2.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2011 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.2.ebuild,v 1.3 2011/01/08 08:39:47 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/mysql-ruby-2.8.2.ebuild,v 1.4 2011/02/26 07:52:58 graaff Exp $
EAPI="3"
-USE_RUBY="ruby18 ree18 ruby19"
+USE_RUBY="ruby18 ree18"
RUBY_FAKEGEM_NAME="mysql"