mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
d25c17bdf1
commit
b35052394b
13
dev-libs/libmelf/files/libmelf-0.4.0-r2-ldflags-soname.patch
Normal file
13
dev-libs/libmelf/files/libmelf-0.4.0-r2-ldflags-soname.patch
Normal 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()
|
||||
52
dev-libs/libmelf/libmelf-0.4.0-r2.ebuild
Normal file
52
dev-libs/libmelf/libmelf-0.4.0-r2.ebuild
Normal 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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user