diff options
-rw-r--r-- | dev-ruby/ruby-oci8/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/ruby-oci8/ruby-oci8-2.2.4.1.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/ruby-oci8/Manifest b/dev-ruby/ruby-oci8/Manifest index 9311fe095ae9..bbbc4be085e1 100644 --- a/dev-ruby/ruby-oci8/Manifest +++ b/dev-ruby/ruby-oci8/Manifest @@ -1,2 +1,3 @@ DIST ruby-oci8-2.1.8.gem 249856 SHA256 f5ab06e0312849b181e0b5e471f73b3070b9317ba289875f7ed44ee963b48f50 SHA512 897e5b86106b45e12bf359b8ed379a36a1c457daa1de9e7a8431f409ec25b12b20e30ed254a2bc77ab1abc0731f1c45e93860a36e0e6903c6fc7573a9ceeef9e WHIRLPOOL 7628ff11626619a82c02792d97ff66a2349af289d92fb52f928ff11c328a17dc8d1e02b16473028d0473f62d05617f07c30814030b32eb9908e52d49f4c259db DIST ruby-oci8-2.2.3.gem 317952 SHA256 0a2b5d6f0f8f8422e03ecd3c013360cda25641c9eca245db4529b2f27f388560 SHA512 67323ba01bb30f5e405f8b4b4e0d1749cb8c96a7b158cdd77079936e73ac651e27e1df2c0417cb20ec69fcd997a92113757c697b4e5e0b2f498c2a18da400fc4 WHIRLPOOL 8e1cf8d067132e1fdf23e4b31403056a618ad39ee078fb510dd42f8b450faff0ca3f19bce3c15e5721aab15bbad1a0707f741a861710e0bd1187a9ce7b23492f +DIST ruby-oci8-2.2.4.1.gem 325120 SHA256 0c3e9cfc655ef7b2ad3add3517b6dbb88134a4d1753021cfb435cb3b51e3abe9 SHA512 54323843ebd3f7252b6d96cd1136752172f879bb6a67842c38e3a84effae18fddb2350be2ed4257c1db5ee54bf7678a098e2b1424508d3e597778e874bcbf20f WHIRLPOOL aa97f56f075ee2be9fa9d03abc98806dd23a8759a5e7a55a3cf37cfcd05fd9206e8c1b5239d0fcbe88319abd498a26711046e0150beeceb11b8446b8eba9baaa diff --git a/dev-ruby/ruby-oci8/ruby-oci8-2.2.4.1.ebuild b/dev-ruby/ruby-oci8/ruby-oci8-2.2.4.1.ebuild new file mode 100644 index 000000000000..e46cef4cfdd8 --- /dev/null +++ b/dev-ruby/ruby-oci8/ruby-oci8-2.2.4.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +inherit multilib ruby-fakegem + +RUBY_FAKEGEM_EXTRADOC="NEWS README.md ChangeLog" +RUBY_FAKEGEM_RECIPE_DOC="rdoc" + +DESCRIPTION="A Ruby library for Oracle OCI8" +HOMEPAGE="https://rubygems.org/gems/ruby-oci8/" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND+=" dev-db/oracle-instantclient-basic" +DEPEND+=" dev-db/oracle-instantclient-basic" + +EXT_DIR="ext/oci8" + +each_ruby_configure() { + # configure the native libraries + ${RUBY} -C${EXT_DIR} extconf.rb --prefix="${D}/usr" || die "configure failed" +} + +each_ruby_compile() { + # compile the native libraries + emake -C ${EXT_DIR} V=1 || die "could not compile native library" +} + +each_ruby_install() { + # install the native libraries + emake -C ${EXT_DIR} install DESTDIR="${D}" || die "could not install native library" + # install the gem files + each_fakegem_install +} |