diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-07 12:29:08 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-07 12:29:08 +0100 |
commit | 6c1090c8458fa6e15fd24227293d60bbf356eb60 (patch) | |
tree | 26a7d6ff13e906f3f47a6aca8e915c84b8f25bd0 /dev-ruby/rjb | |
parent | 8bf02d8edf7e8947a205e2dca77bee4c4e31739b (diff) |
gentoo auto-resync : 07:09:2024 - 12:29:07
Diffstat (limited to 'dev-ruby/rjb')
-rw-r--r-- | dev-ruby/rjb/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/rjb/rjb-1.7.3.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-ruby/rjb/Manifest b/dev-ruby/rjb/Manifest index f432806fb32e..3d29cd507f80 100644 --- a/dev-ruby/rjb/Manifest +++ b/dev-ruby/rjb/Manifest @@ -1,3 +1,5 @@ DIST rjb-1.6.9.gem 74752 BLAKE2B c8264fd0401044d9099717ae8770a30ce6bdfd12c3acfc2024b21330e3fdb07604bba69600a8808aa179c6459eb2d140e7b5822cbf58c3ea8ce47569bc92463b SHA512 c1ccae10361be881af4a129c0640ced00d00e909442b517150036cd44d5927cf24dc87bc0c30f3703f96955f114e0c0a5ff2d0f5fc555b71ade0f98e6b388426 +DIST rjb-1.7.3.gem 76800 BLAKE2B 83bf6208e332fe1a339e74ae46bcacb4366c02fc089a5f2e463e6a53eb707203a59c50aaaaffe36bee984ca5bf0a06a501e3e31f1ea0cb35647ce0ceceadf495 SHA512 ea0b0a233a9e8a8030c382582f81776254d261d025310b468e01f5efab6978710b5eedb1a15acd2fb9cc57e083aa8a65a82137ea81ba9c061d999dcf82c35f9d EBUILD rjb-1.6.9.ebuild 1982 BLAKE2B 4968540385d2f1a0f080e919b37aa21b9d41b2edae3ef3511b2b669646afe1656f559d8290089087cf847947b19ebb4bda440e43b75156147446728ec11c9306 SHA512 6a4d08468018be3ef5b2da900be8aecdbb741270c53e4f6086fed6d7b7c1c6fe81bf563a823d4c571b0a48b219332cf9f747b391835e9e998d6774e9a33c0aa6 +EBUILD rjb-1.7.3.ebuild 1982 BLAKE2B 4968540385d2f1a0f080e919b37aa21b9d41b2edae3ef3511b2b669646afe1656f559d8290089087cf847947b19ebb4bda440e43b75156147446728ec11c9306 SHA512 6a4d08468018be3ef5b2da900be8aecdbb741270c53e4f6086fed6d7b7c1c6fe81bf563a823d4c571b0a48b219332cf9f747b391835e9e998d6774e9a33c0aa6 MISC metadata.xml 326 BLAKE2B d2451bd11dfe8b88c20cd9a54983a69a454f39f148d319af39a305523cdc6c79ce3a7bbca0e71a98914f1af8b8b5e298c45e05eb1d6ff2058567bfcd6536b746 SHA512 d7ec66f37e9620075c23d21d874bffa9983906b833ab67f5480c308b02dd168ba558acf164423228da9d618b25abbbe00e7803400f3abf07a04956a7ec9afcfd diff --git a/dev-ruby/rjb/rjb-1.7.3.ebuild b/dev-ruby/rjb/rjb-1.7.3.ebuild new file mode 100644 index 000000000000..ef80fb653497 --- /dev/null +++ b/dev-ruby/rjb/rjb-1.7.3.ebuild @@ -0,0 +1,73 @@ +# 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_EXTRADOC="readme.txt ChangeLog" +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_EXTRAINSTALL="data" + +RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb) + +inherit java-pkg-2 ruby-fakegem + +DESCRIPTION="Rjb is a Ruby-Java software bridge" +HOMEPAGE="https://github.com/arton/rjb" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples hardened" + +DEPEND="|| ( virtual/jdk:17 virtual/jdk:11 virtual/jdk:1.8 ) + hardened? ( sys-apps/paxctl )" +RDEPEND="|| ( virtual/jre:17 virtual/jre:11 virtual/jre:1.8 )" + +pkg_setup() { + ruby-ng_pkg_setup + java-pkg-2_pkg_setup +} + +all_ruby_prepare() { + # The console is not available for testing. + sed -i -e '/test_noarg_sinvoke/,/end/ s:^:#:' test/test.rb || die + + # Avoid encoding tests since not all locales may be available. + sed -i -e '/test_kjconv/,/^ end/ s:^:#:' test/test.rb || die + + # Fix build on openjdk-11 + sed -i -e 's#javah -classpath ../data/rjb jp.co.infoseek.hp.arton.rjb.RBridge#javac -h . -classpath ../data/rjb RBridge.java#g' ext/extconf.rb || die +} + +each_ruby_prepare() { + #dev-lang/ruby might need the "hardened" flag to enforce the following: + if use hardened; then + paxctl -v /usr/bin/ruby 2>/dev/null | grep MPROTECT | grep disabled || ewarn '!!! rjb will only work if ruby is MPROTECT disabled\n please disable it if required using paxctl -m /usr/bin/ruby' + fi + # force compilation of class file for our JVM + rm -rf data +} + +each_ruby_install() { + each_fakegem_install + + if use examples; then + dodoc -r samples + fi +} + +each_ruby_test() { + if use hardened; then + paxctl -v ${RUBY} 2>/dev/null | grep MPROTECT | grep -q disabled + if [ $? = 0 ]; then + ${RUBY} -C test -I../lib:.:../ext test.rb || die + else + ewarn "${RUBY} has MPROTECT enabled, rjb will not work until it is disabled, skipping tests." + fi + else + ${RUBY} -C test -I../lib:.:../ext test.rb || die + fi +} |