commit:     c0a7149050198b7ffeb96afd865e9078228c4cb8
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  8 15:56:02 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Dec  8 15:56:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0a71490

app-crypt/jitterentropy: Version bump to 3.6.3

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 app-crypt/jitterentropy/Manifest                   |  1 +
 app-crypt/jitterentropy/jitterentropy-3.6.3.ebuild | 48 ++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/app-crypt/jitterentropy/Manifest b/app-crypt/jitterentropy/Manifest
index 089c5f033c00..c22e7d60a77f 100644
--- a/app-crypt/jitterentropy/Manifest
+++ b/app-crypt/jitterentropy/Manifest
@@ -1 +1,2 @@
 DIST jitterentropy-3.6.0.tar.gz 96456 BLAKE2B 
5e4fc185f16b59456a681e37f90de3b1e381bd6269bf72294822c1b8db11bbd5fe48640f2f38257c9b1238df38df7d95c2d1b9136b12364dde6e5cf3395c2e6e
 SHA512 
8b234d0ac8115d004e8b1f41318e42d72324dfcbea0b3ba96499a6f9d740e13659c5bea032f77baad8d8ea3846fcd628665df573ab12b6111785f4bb5954834c
+DIST jitterentropy-3.6.3.tar.gz 102126 BLAKE2B 
2a6dae38c0347340515d8b1df6824e365c130f4f3329448ce0ed13ab1ba5e118b0f09bbae5a1b498ede28246ff289f1eba0adc3377a878dafc049e5ef182b3d1
 SHA512 
b4ddac5ca68da67ae1f8743313471c2ebb0965e76c7990c10d0f1d4a94fb100756f1ada5607fe7268efd696b7eebee9035c48d4035fd9eda6483de002ce9e0ff

diff --git a/app-crypt/jitterentropy/jitterentropy-3.6.3.ebuild 
b/app-crypt/jitterentropy/jitterentropy-3.6.3.ebuild
new file mode 100644
index 000000000000..1fce9535c7fc
--- /dev/null
+++ b/app-crypt/jitterentropy/jitterentropy-3.6.3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Hardware RNG based on CPU timing jitter"
+HOMEPAGE="https://github.com/smuellerDD/jitterentropy-library";
+SRC_URI="https://github.com/smuellerDD/jitterentropy-library/archive/v${PV}.tar.gz
 -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-library-${PV}"
+
+# For future reference, tests/raw-entropy/validation-{restart,runtime}
+# have a weird license clause where it says:
+#   The licensee IS NOT granted permission to redistribute the source code or
+#   derivatives of the source code, and the binaries compiled from the source
+#   code or its derivatives to any third parties.
+# Do not package these two components!
+LICENSE="BSD"
+SLOT="0/3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="static-libs"
+
+src_prepare() {
+       default
+
+       # Disable man page compression on install
+       sed -e '/\tgzip.*man/ d' -i Makefile || die
+}
+
+src_compile() {
+       # Upstream defines some of CFLAGS in the Makefile using '?='
+       # This allows those default flags to be overwritten by
+       # user-defined CFLAGS. Restore some of the defaults.
+       append-cflags '-fwrapv' '-fvisibility=hidden' '-fPIE'
+       # Optimizations are not allowed by upstream, which already
+       # overrides CFLAGS in Makefile. We need to handle CPPFLAGS here.
+       append-cppflags '-O0'
+       emake AR="$(tc-getAR)" CC="$(tc-getCC)"
+}
+
+src_install() {
+       emake PREFIX="${EPREFIX}/usr" \
+                 LIBDIR="$(get_libdir)" \
+                 DESTDIR="${D}" \
+                 INSTALL_STRIP="install" \
+                 install $(usex static-libs install-static '')
+}

Reply via email to