summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-01-07 13:15:52 +0000
committerHans de Graaff <graaff@gentoo.org>2011-01-07 13:15:52 +0000
commit7d9e93bb1aa71047e233d8b4b0a7313171bd1506 (patch)
treeaab7503fd54dcfc19e71489f710932e60752d01c /dev-ruby
parentFix src_uri calculation per bug #350927. Thanks to Lars (Poly-C) for the patch. (diff)
downloadgentoo-2-7d9e93bb1aa71047e233d8b4b0a7313171bd1506.tar.gz
gentoo-2-7d9e93bb1aa71047e233d8b4b0a7313171bd1506.tar.bz2
gentoo-2-7d9e93bb1aa71047e233d8b4b0a7313171bd1506.zip
Initial import. This is the defacto mysql gem for Rails 3 projects. It supersedes dev-ruby/mysql-ruby.
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/mysql2/ChangeLog11
-rw-r--r--dev-ruby/mysql2/metadata.xml5
-rw-r--r--dev-ruby/mysql2/mysql2-0.2.6.ebuild35
3 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/mysql2/ChangeLog b/dev-ruby/mysql2/ChangeLog
new file mode 100644
index 000000000000..335440fe0540
--- /dev/null
+++ b/dev-ruby/mysql2/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-ruby/mysql2
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql2/ChangeLog,v 1.1 2011/01/07 13:15:52 graaff Exp $
+
+*mysql2-0.2.6 (07 Jan 2011)
+
+ 07 Jan 2011; Hans de Graaff <graaff@gentoo.org> +mysql2-0.2.6.ebuild,
+ +metadata.xml:
+ Initial import. This is the defacto mysql gem for Rails 3 projects. It
+ supersedes dev-ruby/mysql-ruby.
+
diff --git a/dev-ruby/mysql2/metadata.xml b/dev-ruby/mysql2/metadata.xml
new file mode 100644
index 000000000000..852136183369
--- /dev/null
+++ b/dev-ruby/mysql2/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/mysql2/mysql2-0.2.6.ebuild b/dev-ruby/mysql2/mysql2-0.2.6.ebuild
new file mode 100644
index 000000000000..4f5496d92efd
--- /dev/null
+++ b/dev-ruby/mysql2/mysql2-0.2.6.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql2/mysql2-0.2.6.ebuild,v 1.1 2011/01/07 13:15:52 graaff Exp $
+
+EAPI="3"
+USE_RUBY="ruby18 ree18"
+
+# Tests require a live MySQL database.
+RUBY_FAKEGEM_TASK_TEST=""
+
+RUBY_FAKEGEM_TASK_DOC=""
+
+RUBY_FAKEGEM_EXTRADOC="README.rdoc CHANGELOG.md"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="A modern, simple and very fast Mysql library for Ruby - binding to libmysql."
+HOMEPAGE="https://github.com/brianmario/mysql2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="${DEPEND} virtual/mysql[-static]"
+RDEPEND="${RDEPEND} virtual/mysql[-static]"
+
+each_ruby_configure() {
+ ${RUBY} -Cext/mysql2 extconf.rb --with-mysql-config "${EPREFIX}/usr/bin/mysqlconfig" || die
+}
+
+each_ruby_compile() {
+ emake -Cext/mysql2 || die
+ cp ext/mysql2/mysql2$(get_modname) lib/mysql2/ || die
+}