commit:     010f88028d76247eb2fbf56537c2ef6cd4854713
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 30 19:42:33 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 30 19:43:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=010f8802

sys-libs/librtas: add 2.0.6

Bug: https://bugs.gentoo.org/955091
Closes: https://bugs.gentoo.org/956769
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/librtas/Manifest             |  1 +
 sys-libs/librtas/librtas-2.0.6.ebuild | 41 +++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/sys-libs/librtas/Manifest b/sys-libs/librtas/Manifest
index dc4629f63231..42c0be0c3127 100644
--- a/sys-libs/librtas/Manifest
+++ b/sys-libs/librtas/Manifest
@@ -1 +1,2 @@
 DIST librtas-2.0.3.tar.gz 95483 BLAKE2B 
38ce5c3924dfdb18f3a9a6e309a0ba093468b12e05b38dd81525b59ddd5afda65da3c46b7b48c1e8aaa1dc0afc6cb1eaf7d930e6e27bb1a06005a7f24620a9cd
 SHA512 
3ff59007ad6fc893d226ae9413b57b8b478a214a824f60c2af58a65c0a3cefecc0d19bb4c791b677a0d5c1d7da9646d66f48d0e0446768092ef7afd6e4baff34
+DIST librtas-2.0.6.tar.gz 152699 BLAKE2B 
cb23776f87127c36dd99e3505fa2a7af98b8b6fd04d50d78e7a34127c57102c63be6fae692e82dac1f4ddef772417417c4b754bfdc22be8a75440550aa8259f9
 SHA512 
ad2e8b4c8e32bae708e5243625eaa63023f93d23eaa4d6675c46eb68766abcaa90f9555d6a3c79d2a564fad132d35a8afc4035d44c76a63c64dcb3b25e15a0c4

diff --git a/sys-libs/librtas/librtas-2.0.6.ebuild 
b/sys-libs/librtas/librtas-2.0.6.ebuild
new file mode 100644
index 000000000000..0a0bf7ea145c
--- /dev/null
+++ b/sys-libs/librtas/librtas-2.0.6.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="A set of libraries for userspace access to RTAS on the PowerPC 
platform(s)"
+HOMEPAGE="https://github.com/ibm-power-utilities/librtas";
+SRC_URI="https://github.com/ibm-power-utilities/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~ppc ~ppc64"
+IUSE="static-libs test"
+RESTRICT="!test? ( test )"
+
+DEPEND="test? ( >=dev-util/cmocka-1.1.7 )"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               $(use_enable static-libs static)
+               $(use_enable test tests)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install docdir="${EPREFIX}"/usr/share/doc/${PF}
+       find "${D}" -name '*.la' -delete || die
+       # librtas_src/syscall_rmo.c: static const char *lockfile_path = 
"/var/lock/LCK..librtas";
+       # this way we prevent sandbox violations in lscpu linked to rtas
+       dodir /etc/sandbox.d
+       echo 'SANDBOX_PREDICT="/run/lock/LCK..librtas"' > 
"${ED}"/etc/sandbox.d/50librtas || die
+}

Reply via email to