From e226738e6fe702b722b39a8c0625309fcce56ca8 Mon Sep 17 00:00:00 2001 From: David Guglielmi Date: Sun, 5 Oct 2025 13:26:08 +0200 Subject: [PATCH] app-forensics/readpe: add 0.85.1 --- app-forensics/readpe/Manifest | 1 + app-forensics/readpe/readpe-0.85.1.ebuild | 35 +++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 app-forensics/readpe/readpe-0.85.1.ebuild diff --git a/app-forensics/readpe/Manifest b/app-forensics/readpe/Manifest index e0ff47b..4cc6cd7 100644 --- a/app-forensics/readpe/Manifest +++ b/app-forensics/readpe/Manifest @@ -1 +1,2 @@ DIST readpe-0.84.tar.gz 642372 BLAKE2B 59c326fad879c172c9b90964e2eb140fc4df2db3c7ee3b00324ed659fb8eb70c356036b3c601eaed6fc8e91dfc1ab29166383a5d7ded8b3d8970b601617c3f24 SHA512 facb4db30e46b05436888614302c784af543914f7aaa3c5a499352a6df71ea29c512f97304981a51f8e852a01ff95d1a3c7d885add86e8bb0c28cf805f7ed30b +DIST readpe-0.85.1.tar.gz 648014 BLAKE2B e1d07b32fcb48f69f50b5777e07ac5bc9c1e9c9abfbcf35e7165da43b81431a6a80d7336932b2969a292c41f55b1bccd4959d9e71c449b2f941347bb6fca11c7 SHA512 3877b80657a707e4cf92cae665a643f05d3b712a31cdb16c2f0fee2b3088dd96539083aec0030f4b3f8a62ea071f1f71d5eec6fe480e640e4cdd72b534072432 diff --git a/app-forensics/readpe/readpe-0.85.1.ebuild b/app-forensics/readpe/readpe-0.85.1.ebuild new file mode 100644 index 0000000..123bcdd --- /dev/null +++ b/app-forensics/readpe/readpe-0.85.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Multiplatform command line toolkit to work with PE binaries" +HOMEPAGE="https://github.com/mentebinaria/readpe" +SRC_URI=" + https://github.com/mentebinaria/readpe/archive/v${PV}.tar.gz + -> ${P}.tar.gz +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="dev-libs/openssl" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${PN}-fix-manpages-compression.patch" ) + +src_prepare() { + sed -i \ + -e '/^prefix/s#\([^=]*\).*$#\1= '"${EPREFIX}/usr"'#' \ + -e '/^libdir/s#\([^=]*\).*$#\1= /usr/'$(get_libdir)'#' \ + src/Makefile lib/libpe/Makefile || die + + default +} + +src_compile() { + emake CC="$(tc-getCC)" +}