summaryrefslogtreecommitdiff
path: root/dev-ruby/ffi
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/ffi
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/ffi')
-rw-r--r--dev-ruby/ffi/Manifest7
-rw-r--r--dev-ruby/ffi/ffi-1.9.18.ebuild64
-rw-r--r--dev-ruby/ffi/ffi-1.9.6-r2.ebuild66
-rw-r--r--dev-ruby/ffi/metadata.xml11
4 files changed, 148 insertions, 0 deletions
diff --git a/dev-ruby/ffi/Manifest b/dev-ruby/ffi/Manifest
new file mode 100644
index 000000000000..80a3481a420b
--- /dev/null
+++ b/dev-ruby/ffi/Manifest
@@ -0,0 +1,7 @@
+DIST ffi-git-1.9.18.tgz 901805 SHA256 8daf534dd511fb52a4f73d400b5e6e99c68d07e4a724e02541b06291e87cb08f SHA512 49c52e5e42e436b7969c35a34b28bd7929d75372638ac5373486a1d624026c12dc682009bc101e4a2c8f1442ed6f1ba17b438cda2e02d4256622b489c4bd9945 WHIRLPOOL e409bc63059eb00d8d075ddf0d52a2a16ec49d7149facfc81a0366c62288d8c82c090585c5e0ab42367145c4ddf2bdcf6f25faab93ab1cfe2269915b558f3e4d
+DIST ffi-git-1.9.6.tgz 895468 SHA256 b27a59bf2eddcc17abaf7063a64e527fa892ba95cdb6320aba6fa945c769c9c7 SHA512 4b690b70db41642be679f13b33a67e27e1a4b14ca56d6ce355ea0a300c793a63e1081fb19d4c4bd395c1bea55a1669b96e3405932fffeebd328809a410fe3e8f WHIRLPOOL 7f5ad8d7766b037e24cff4721db02f05b39604c1be5e07ddad9de4a5155124d2a05ebd43209dfc2491cdc50ea08e5cda856f7502bf1c12666fa19b77516c81f7
+EBUILD ffi-1.9.18.ebuild 1541 SHA256 09e921aa8a0e958df472440e101224c398f501043ac8b00c1e796c657f69d033 SHA512 527e40b6436a0a12f7a6cc176cb1dc18b48b36d66aa31e6880b1e5c1f0d4f173b010485cbd96e7e36ecca1ad3f36892214c3f4a87ca902f75c953f1a950031fc WHIRLPOOL d3075a4e6c3467343b9509dfe5ac5e3db023c9243fd96453fb3cd9cd38785d422afc6f781ff82f65279a6f343092273a94483e28cb526f128367a260917649b3
+EBUILD ffi-1.9.6-r2.ebuild 1559 SHA256 52240738f1bc725ae47638d99a9f723105ffe6c6300980b54b66539aad4679ef SHA512 e57a07581f2a82a0607c44cd98ae70b613856526293f80e906bb17f75e654db3c156a958d74dd3aae361f83b490027c69d58003a10bc97ecdcd469243f36eef4 WHIRLPOOL ba4c8e3a3759e2ca3195e8f51b6299b3661641034c6aa7ed04d6bf32a361930a2519f42049290954b3f9c9ddce07e19851de96a9164086b31835ecd048dfde67
+MISC ChangeLog 4683 SHA256 86870362a94308c1d47550ff809b0447f586c4e760eeeed82ccc9874be312453 SHA512 f9dc6c3755972e0adeacb913ac41ebae23ef257032ca15733a242b8d0b93d71acfa3367525e93660c12561606dd308b40228b2f3da8dc9819719c38ccb3694ca WHIRLPOOL 8c7d531d01583d66d10e3d44180d012952d4763649cde25291f9495f8b39967791aeccca899b500c920bb0f6ec1c378186087dbd62b5f40c58e7ee202b5e37c8
+MISC ChangeLog-2015 13170 SHA256 8e817727910b53e3867d553d49eb9d9a8486435523294e0b42bd103476f8dd68 SHA512 574b1e6ec251da2b4726da0a04a7b963700e5b828a9f04c9ccefe1d9eebbb6b0a7fa5fafe4a9835e4fab6aa45d91d7e50be90c0f31d898a6a58c753bb98fa09e WHIRLPOOL 7ca50df63d77c5401db555fad29b420216dfa6743b00f83dfcc0b1d8df056cf2f854bf9e201b7cc67df953aa9857a97733828937d77ba9acd2487a1d9fb0582c
+MISC metadata.xml 333 SHA256 ceb4a369e25b0d392345bb749810f1c90c01ecbda2357e9fa5e1f45aadb539f0 SHA512 9105a49b39afce8695d4c8e7082690ca25806cf08ad6b6b9528343e1bfc72097369ab2868b3eebde55c6cd70d0baae1f085b4ad3468a9c5621d97dd8def76173 WHIRLPOOL 9ba6fd985cf69183b36d11fb1a258036f41e4439588c563a1026b08d29d2ac2c70fb014fd47ac93569bcc399408177779660f2c9051377c876cf83f88cad52f5
diff --git a/dev-ruby/ffi/ffi-1.9.18.ebuild b/dev-ruby/ffi/ffi-1.9.18.ebuild
new file mode 100644
index 000000000000..8e74ef40552e
--- /dev/null
+++ b/dev-ruby/ffi/ffi-1.9.18.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="Ruby extension for programmatically loading dynamic libraries"
+HOMEPAGE="https://wiki.github.com/ffi/ffi"
+
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${PN}-git-${PV}.tgz"
+
+IUSE=""
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+RDEPEND+=" virtual/libffi"
+DEPEND+=" virtual/libffi"
+
+ruby_add_bdepend "dev-ruby/rake"
+
+all_ruby_prepare() {
+ sed -i -e '/tasks/ s:^:#:' \
+ -e '/Gem::Tasks/,/end/ s:^:#:' Rakefile || die
+
+ # Fix Makefile for tests
+ sed -i -e '/CCACHE :=/ s:^:#:' \
+ -e 's/-O2//' \
+ -e 's/^CFLAGS =/CFLAGS +=/' libtest/GNUmakefile || die
+
+ # Remove bundled version of libffi.
+ rm -rf ext/ffi_c/libffi || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -Cext/ffi_c extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake -Cext/ffi_c V=1
+ cp ext/ffi_c/ffi_c$(get_modname) lib/ || die
+
+ ${RUBY} -S rake -f gen/Rakefile || die "types.conf generation failed"
+}
+
+each_ruby_test() {
+ CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${RUBY} -S rspec spec || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ docinto examples
+ dodoc samples/*
+}
diff --git a/dev-ruby/ffi/ffi-1.9.6-r2.ebuild b/dev-ruby/ffi/ffi-1.9.6-r2.ebuild
new file mode 100644
index 000000000000..70bd141ed0a0
--- /dev/null
+++ b/dev-ruby/ffi/ffi-1.9.6-r2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# jruby → unneeded, this is part of the standard JRuby distribution, and
+# would just install a dummy.
+USE_RUBY="ruby22"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby extension for programmatically loading dynamic libraries"
+HOMEPAGE="https://wiki.github.com/ffi/ffi"
+
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${PN}-git-${PV}.tgz"
+
+IUSE=""
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
+
+RDEPEND+=" virtual/libffi"
+DEPEND+=" virtual/libffi"
+
+ruby_add_bdepend "dev-ruby/rake"
+
+all_ruby_prepare() {
+ sed -i -e '/tasks/ s:^:#:' \
+ -e '/Gem::Tasks/,/end/ s:^:#:' Rakefile || die
+
+ # Fix Makefile for tests
+ sed -i -e '/CCACHE :=/ s:^:#:' \
+ -e 's/-O2//' \
+ -e 's/^CFLAGS =/CFLAGS +=/' libtest/GNUmakefile || die
+
+ # Remove bundled version of libffi.
+ rm -rf ext/ffi_c/libffi || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -Cext/ffi_c extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake -Cext/ffi_c V=1
+ cp ext/ffi_c/ffi_c.so lib/ || die
+
+ ${RUBY} -S rake -f gen/Rakefile || die "types.conf generation failed"
+}
+
+each_ruby_test() {
+ CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${RUBY} -S rspec spec || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ docinto examples
+ dodoc samples/*
+}
diff --git a/dev-ruby/ffi/metadata.xml b/dev-ruby/ffi/metadata.xml
new file mode 100644
index 000000000000..48be43c36df0
--- /dev/null
+++ b/dev-ruby/ffi/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ffi/ffi</remote-id>
+ </upstream>
+</pkgmetadata>