diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-05-05 07:01:19 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-05-05 07:10:49 +0200 |
commit | c9e4a4f5a969843ab6f8e0bfb5912dd94b0a8e19 (patch) | |
tree | a04f881b837ad95f82cf7e68f75839a8008e878b /dev-ruby/mysql2/mysql2-0.4.6.ebuild | |
parent | dev-ruby/mysql2: add 0.3.21 (diff) | |
download | gentoo-c9e4a4f5a969843ab6f8e0bfb5912dd94b0a8e19.tar.gz gentoo-c9e4a4f5a969843ab6f8e0bfb5912dd94b0a8e19.tar.bz2 gentoo-c9e4a4f5a969843ab6f8e0bfb5912dd94b0a8e19.zip |
dev-ruby/mysql2: add 0.4.6
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/mysql2/mysql2-0.4.6.ebuild')
-rw-r--r-- | dev-ruby/mysql2/mysql2-0.4.6.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-ruby/mysql2/mysql2-0.4.6.ebuild b/dev-ruby/mysql2/mysql2-0.4.6.ebuild new file mode 100644 index 000000000000..68afbc1d1e66 --- /dev/null +++ b/dev-ruby/mysql2/mysql2-0.4.6.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +# Tests require a live MySQL database but should all pass. +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTRADOC="README.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.4" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="" + +DEPEND="${DEPEND} virtual/libmysqlclient" +RDEPEND="${RDEPEND} virtual/libmysqlclient:=" + +each_ruby_configure() { + ${RUBY} -Cext/mysql2 extconf.rb --with-mysql-config "${EPREFIX}/usr/bin/mysqlconfig" || die +} + +each_ruby_compile() { + emake V=1 -Cext/mysql2 + cp ext/mysql2/mysql2$(get_modname) lib/mysql2/ || die +} |