1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 09:32:37 +01:00

app-forensics/readpe: bump to 0.84 (previously named app-forensics/pev)

This commit is contained in:
2024-05-08 17:09:29 +02:00
parent 4c87049913
commit 6c11dd6d7b
6 changed files with 47 additions and 39 deletions

View File

@@ -0,0 +1 @@
DIST readpe-0.84.tar.gz 642372 BLAKE2B 59c326fad879c172c9b90964e2eb140fc4df2db3c7ee3b00324ed659fb8eb70c356036b3c601eaed6fc8e91dfc1ab29166383a5d7ded8b3d8970b601617c3f24 SHA512 facb4db30e46b05436888614302c784af543914f7aaa3c5a499352a6df71ea29c512f97304981a51f8e852a01ff95d1a3c7d885add86e8bb0c28cf805f7ed30b

View File

@@ -0,0 +1,11 @@
diff -dNur a/src/Makefile b/src/Makefile
--- a/src/Makefile 2022-08-14 00:20:29.499231275 +0200
+++ b/src/Makefile 2022-08-14 00:21:54.135805153 +0200
@@ -157,7 +157,7 @@
for prog in $(PROGS); do \
$(INSTALL_PROGRAM) $(INSTALL_FLAGS) $(pev_BUILDDIR)/$$prog $(DESTDIR)$(bindir); \
$(CHK_FILE_EXISTS) $(MANDIR)/$$prog$(man1ext) && \
- gzip -c -9 $(MANDIR)/$$prog$(man1ext) > $(DESTDIR)$(man1dir)/$$prog$(man1ext).gz || \
+ mv $(MANDIR)/$$prog$(man1ext) $(DESTDIR)$(man1dir)/$$prog$(man1ext) || \
echo -n; \
done

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>david.guglielmi@gmail.com</email>
<name>David GUGLIELMI</name>
</maintainer>
<upstream>
<remote-id type="github">mentebinaria/readpe</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,35 @@
# Copyright 2024 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)"
}