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 2E180158089 for ; Thu, 28 Sep 2023 04:38:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31CF12BC025; Thu, 28 Sep 2023 04:38:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D3CEE2BC013 for ; Thu, 28 Sep 2023 04:38:07 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2477C335CE9 for ; Thu, 28 Sep 2023 04:38:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C6BE3126E for ; Thu, 28 Sep 2023 04:38:05 +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: <1695875882.75bae68dd8e2993f8830374b08310146b69dbd52.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.6.8.ebuild X-VCS-Directories: dev-ruby/rjb/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 75bae68dd8e2993f8830374b08310146b69dbd52 X-VCS-Branch: master Date: Thu, 28 Sep 2023 04:38:05 +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: c3cc4dd1-e244-47f2-a4f7-d01424bf22c6 X-Archives-Hash: 5d655e600a49679fcb1a6053a57c5329 commit: 75bae68dd8e2993f8830374b08310146b69dbd52 Author: Hans de Graaff gentoo org> AuthorDate: Thu Sep 28 04:37:52 2023 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Thu Sep 28 04:38:02 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75bae68d dev-ruby/rjb: add 1.6.8 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rjb/Manifest | 1 + dev-ruby/rjb/rjb-1.6.8.ebuild | 73 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/dev-ruby/rjb/Manifest b/dev-ruby/rjb/Manifest index 28ab61da4b82..b522ee00306d 100644 --- a/dev-ruby/rjb/Manifest +++ b/dev-ruby/rjb/Manifest @@ -1 +1,2 @@ DIST rjb-1.6.7.gem 74752 BLAKE2B 835bc45b4568599e030033d9cff4d1df2da2cffd63ad594a437eeae7974d5e6f1bea490631c79f0990697f006e0006aab923134860aaf57312b153f750bda62b SHA512 ae5980621900d2605372f1cb3783d213e19da7bf1a7b2834dbdb99895476ecf2dad0ee474140e2747bbd477a5ab6d4be94cc9bf4fd0b8f0109ded94d7621bb7e +DIST rjb-1.6.8.gem 74752 BLAKE2B 795e80879819b7a1b1834d901b9473f5a2ee39b1b68e264ef6ce7931bf312fd0a66e898bc2d4a86f2decca87fb1f6568709a6230b8ffbf3a2202d5951f97ca3d SHA512 f5c3a17ea494c484d5a3e929de370e697c971e9e976ce8a3b38c3fe2a5c074503e5edc91eb782d4e3f0ef0fd51d3a6ba9b147dff1c69e1e895c45f0fb84f478e diff --git a/dev-ruby/rjb/rjb-1.6.8.ebuild b/dev-ruby/rjb/rjb-1.6.8.ebuild new file mode 100644 index 000000000000..49bcfd18a275 --- /dev/null +++ b/dev-ruby/rjb/rjb-1.6.8.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32" + +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-1.8 + hardened? ( sys-apps/paxctl )" +RDEPEND=">=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 +}