summaryrefslogtreecommitdiff
path: root/dev-ruby/ffi
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-04 00:07:50 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-04 00:07:50 +0100
commitdafa6f367240d1f5329ca89fb6f78985dbdc025b (patch)
tree96ba5ff3cc1d06604d928ca1b58ed15a4f8733dc /dev-ruby/ffi
parenta3bb28551df94028000fb72308a9e9baa01458b0 (diff)
gentoo auto-resync : 04:06:2024 - 00:07:50
Diffstat (limited to 'dev-ruby/ffi')
-rw-r--r--dev-ruby/ffi/Manifest2
-rw-r--r--dev-ruby/ffi/ffi-1.17.0.ebuild66
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-ruby/ffi/Manifest b/dev-ruby/ffi/Manifest
index 49d4e3459288..bd3aaecfef7a 100644
--- a/dev-ruby/ffi/Manifest
+++ b/dev-ruby/ffi/Manifest
@@ -6,7 +6,9 @@ AUX use-libffi-closure-allocations-on-hppa.patch 761 BLAKE2B a6f460a967752b20ecf
DIST ffi-git-1.15.5.tgz 168139 BLAKE2B 2ddd5bd7bfb7bcd39b6d740cbb1e0f4cd419ce6cb4ec12926f91f254b3f3142bc6166728a81a6f23dccfbf7aec911c63237c20fb0e2c70d30d48f4648e352585 SHA512 3668bafae936bf5010f014fbcf63258b023bcc318882775e7d2fcfc11334722ec2b6e8a8b9c910d406889fb173dd503c5c13f5af8e4f6927921f12f688461707
DIST ffi-git-1.16.2.tgz 183435 BLAKE2B e2c9dad9c18f1a675905a000c8cec4ecfd0213df52476df21a035ca96faf257260896721364fcadc2e3bfec364dc7d036fc7402ebcc1c1a10af15f8ce9e2df7c SHA512 8329b67fbb6b1c9a8df1eacc2f8b1c2e2b2d80902914af76060fb9f3dad493ca4cfa0624596c080d641f38324bef165f2a6f7fafefe3e0e0653951f8189ed579
DIST ffi-git-1.16.3.tgz 183977 BLAKE2B 97f4f0bfc8f43e3a3651b48345c72cc8913f5658c2e838835340082205880309b8f270116dffbc253c78e63ae1c94f392c6ef8741e52852890ac81d00767de19 SHA512 622aae9d55b8e859eab58988eaf976206010ab816351567f2525e606b83b3349ce6b9f114208ba9a7c6de97cc6fe73f5708cf968b7dea0944134c6cb44b55c9b
+DIST ffi-git-1.17.0.tgz 192947 BLAKE2B 86340ad6f2768c68f50de28cd5ee10adccee28a93b71136185993025d13fba2b035c6ff212583a941934bb65822ec60ca3d9968f100eec372956a1d030692650 SHA512 70ba69172bdaebc731a3aa1ae8a2959a31ca82d27d1fb9784bb07b51ba8d4912fc1c880fd709e1aad048fc1f70a161d6c4814617ff403d2d94c44758b143db4b
EBUILD ffi-1.15.5-r2.ebuild 2011 BLAKE2B a8ee77023acb76d3697a3f4aabeb9fd7b698b10b5cfdc5668b2307ebd8959e6286929370ee8392db592bf9ba928f98cfa4a0d28e6a8a28cd0109131e8d063a72 SHA512 13dff67eb0bf7b5ad5da6d9832884789dbd87ed751223c6e8176b8e0fcce4c3178ecf88d33db25176103909cd4e357ed6c72732c2d2d84c2c3252893b4da6841
EBUILD ffi-1.16.2.ebuild 1699 BLAKE2B f22cde54a65ba14d8026330f3743c8b9fe91142315a169632f5694d4b659810609804c6f2e2833e257e5a9d97beb6d4f4a29f45cb36b2f512d8e6ccc5ad9e8e8 SHA512 bbaeec58868e19d0d6ad91f4a49b358971d6ccc215e3f1fef63bf7762b42ad19393ab0080eaab25afd79f1fe700126fe07a3f9981b12c17897fffc86a0522781
EBUILD ffi-1.16.3.ebuild 1713 BLAKE2B fa47cfe8ed52e1e8c52e4ad14ff72ea92c3f8f224ad4b42c94775545267cfb4c10b11dced426fa7ae4f17a42e810aec4607dd08d7aaf5518f9a13a625fb4672f SHA512 3180bbbfae9e5c84912f18027a90e798b21f4ed315da7cb822c15850860438e34a0f682b993a8636833ee51e1b77cf75c25421bd004a07446366fb45a2a44834
+EBUILD ffi-1.17.0.ebuild 1713 BLAKE2B 20fd925ab5e75322e80af61fec5af2b6a0568c0a70341e8950f64f1d9a06734c7b1956b121b7d56237840fcd19b4ff419be2ebdb05731edafde72c1692b95820 SHA512 a6a97f519d4bf398325e6b079950689e33b8ddc8c5a3bc716e7f5be4a0e0d8237d923391fdcaccfc00c5976018356f767956068cd82f4a4d9acdd2aba2731da8
MISC metadata.xml 334 BLAKE2B 02ad2c909797d4aaf2a23497611777a790000683866cfbd9d12c4b19cca6de902e219584c4edc85c46b4b0dc51c63e770506a077a4c1052b46f8df19a9588c15 SHA512 e72dc6ce177ad3881f5465f10cd44ca6740b7603ab4e55cfa9e6088be3c6615abeefaee4b717e76fab2850c64d66eee626115544e10709f64c4187f1987bcfe3
diff --git a/dev-ruby/ffi/ffi-1.17.0.ebuild b/dev-ruby/ffi/ffi-1.17.0.ebuild
new file mode 100644
index 000000000000..0ca030c4fc9a
--- /dev/null
+++ b/dev-ruby/ffi/ffi-1.17.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="ffi.gemspec"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/ffi_c/extconf.rb)
+
+inherit ruby-fakegem toolchain-funcs
+
+DESCRIPTION="Ruby extension for programmatically loading dynamic libraries"
+HOMEPAGE="https://github.com/ffi/ffi/wiki"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${PN}-git-${PV}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+
+# Needs recent libffi for HPPA fixes (and probably Apple arm64 too)
+RDEPEND+=" >=dev-libs/libffi-3.4.4-r1:="
+DEPEND+=" >=dev-libs/libffi-3.4.4-r1:="
+
+ruby_add_bdepend "dev-ruby/rake"
+
+all_ruby_prepare() {
+ sed -i -e '/tasks/ s:^:#:' \
+ -e '/Gem::Tasks/,/end/ s:^:#:' Rakefile || die
+
+ sed -e '/require/c\require "./lib/ffi/version"' \
+ -e 's/git ls-files -z/find * -print0/' \
+ -e '/^ lfs/,/^ end/ s:^:#:' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Fix Makefile for tests
+ sed -i -e '/CCACHE :=/ s:^:#:' \
+ -e 's/-O2//' \
+ -e 's/^CFLAGS =/CFLAGS +=/' spec/ffi/fixtures/GNUmakefile || die
+
+ # Remove bundled version of libffi.
+ rm -rf ext/ffi_c/libffi || die
+}
+
+each_ruby_compile() {
+ each_fakegem_compile
+
+ ${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/*
+}