From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A5206158083 for ; Sat, 7 Sep 2024 08:30:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 533FBE2A1F; Sat, 7 Sep 2024 08:30:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0C2CBE2A16 for ; Sat, 7 Sep 2024 08:30:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 13C49342FB0 for ; Sat, 7 Sep 2024 08:29:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 66BF91CC8 for ; Sat, 7 Sep 2024 08:29:57 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1725697779.860a1a600fdd9ccb36c0c661dd230b6e531743f4.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rjb/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rjb/Manifest dev-ruby/rjb/rjb-1.7.3.ebuild X-VCS-Directories: dev-ruby/rjb/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 860a1a600fdd9ccb36c0c661dd230b6e531743f4 X-VCS-Branch: master Date: Sat, 7 Sep 2024 08:29:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c272086d-128b-4aa7-aece-de9198112b8a X-Archives-Hash: b1028b6919e78ae6e26b670cafd4d79d commit: 860a1a600fdd9ccb36c0c661dd230b6e531743f4 Author: Hans de Graaff gentoo org> AuthorDate: Sat Sep 7 07:11:32 2024 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Sep 7 08:29:39 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=860a1a60 dev-ruby/rjb: add 1.7.3 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rjb/Manifest | 1 + dev-ruby/rjb/rjb-1.7.3.ebuild | 73 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/dev-ruby/rjb/Manifest b/dev-ruby/rjb/Manifest index 63df550819d0..ff757973a289 100644 --- a/dev-ruby/rjb/Manifest +++ b/dev-ruby/rjb/Manifest @@ -1 +1,2 @@ DIST rjb-1.6.9.gem 74752 BLAKE2B c8264fd0401044d9099717ae8770a30ce6bdfd12c3acfc2024b21330e3fdb07604bba69600a8808aa179c6459eb2d140e7b5822cbf58c3ea8ce47569bc92463b SHA512 c1ccae10361be881af4a129c0640ced00d00e909442b517150036cd44d5927cf24dc87bc0c30f3703f96955f114e0c0a5ff2d0f5fc555b71ade0f98e6b388426 +DIST rjb-1.7.3.gem 76800 BLAKE2B 83bf6208e332fe1a339e74ae46bcacb4366c02fc089a5f2e463e6a53eb707203a59c50aaaaffe36bee984ca5bf0a06a501e3e31f1ea0cb35647ce0ceceadf495 SHA512 ea0b0a233a9e8a8030c382582f81776254d261d025310b468e01f5efab6978710b5eedb1a15acd2fb9cc57e083aa8a65a82137ea81ba9c061d999dcf82c35f9d 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 +}