dev-libs/libmelf: update EAPI 6 -> 8

Closes: https://bugs.gentoo.org/337187
Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Thomas Bracht Laumann Jespersen 2023-09-07 07:50:19 +00:00 committed by Ulrich Müller
parent d25c17bdf1
commit b35052394b
No known key found for this signature in database
GPG Key ID: 5188335088415E2E
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/configure.in b/configure.in
index b25f195..7a7e320 100644
--- a/configure.in
+++ b/configure.in
@@ -25,7 +25,7 @@ AC_MSG_RESULT($cache_sys_os)
if test "x$cache_sys_os" = "xSolaris"; then
SHAREDEXEC="ld -dy -r -o libmelf.so \${OBJS}"
else
- SHAREDEXEC="\${CC} \${FLAGS} -shared \${OBJS} -o libmelf.so"
+ SHAREDEXEC="\${CC} \${FLAGS} \${LDFLAGS} -shared \${OBJS} -Wl,-soname,libmelf.so -o libmelf.so"
fi
AC_C_BIGENDIAN()

View File

@ -0,0 +1,52 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools flag-o-matic toolchain-funcs
DESCRIPTION="libmelf is a library interface for manipulating ELF object files"
HOMEPAGE="https://www.hick.org/code/skape/libmelf/"
SRC_URI="https://www.hick.org/code/skape/${PN}/${P}.tar.gz"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
PATCHES=(
# This patch was gained from the elfsign-0.2.2 release
"${FILESDIR}"/${PN}-0.4.1-unfinal-release.patch
# Cleanup stuff
"${FILESDIR}"/${PN}-0.4.0-r1-gcc-makefile-cleanup.patch
# Respect LDFLAGS when linking, set SONAME
"${FILESDIR}"/${PN}-0.4.0-r2-ldflags-soname.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
tc-export CC AR RANLIB
append-flags -fPIC
default
}
src_compile() {
emake OPTFLAGS="${CFLAGS}"
}
src_install() {
dobin tools/elfres
dolib.so libmelf.so
use static-libs && dolib.a libmelf.a
insinto /usr/include
doins melf.h stdelf.h
HTML_DOCS=( docs/html/. )
einstalldocs
}