summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2020-11-16 00:22:49 +0100
committerDavid Seifert <soap@gentoo.org>2020-11-16 00:22:49 +0100
commitaf7f1a1d68cbfbbcf757a5097d22cc6438294467 (patch)
tree3438ff9ad3579d33fa031e3f7df46419e36eb711 /dev-games
parentdev-embedded/stlink: disable static libs (diff)
downloadgentoo-af7f1a1d68cbfbbcf757a5097d22cc6438294467.tar.gz
gentoo-af7f1a1d68cbfbbcf757a5097d22cc6438294467.tar.bz2
gentoo-af7f1a1d68cbfbbcf757a5097d22cc6438294467.zip
dev-games/paklib: disable static libs
Closes: https://bugs.gentoo.org/722692 Closes: https://bugs.gentoo.org/726876 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/paklib/paklib-0.3.ebuild23
1 files changed, 14 insertions, 9 deletions
diff --git a/dev-games/paklib/paklib-0.3.ebuild b/dev-games/paklib/paklib-0.3.ebuild
index b046ce39026f..746547e06b5b 100644
--- a/dev-games/paklib/paklib-0.3.ebuild
+++ b/dev-games/paklib/paklib-0.3.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
+
inherit toolchain-funcs
DESCRIPTION="library for accessing Quake pak files"
@@ -11,19 +12,23 @@ SRC_URI="mirror://sourceforge/paklib/pak-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
-IUSE=""
-S=${WORKDIR}/pak
+S="${WORKDIR}/pak"
src_compile() {
- $(tc-getCC) ${LDFLAGS} ${CFLAGS} -fPIC -shared pak.c -o libpak.so || die "pak.so failed"
- $(tc-getCC) ${CFLAGS} -c pak.c -o libpak.a || die "pak.a failed"
+ "$(tc-getCC)" \
+ ${LDFLAGS} \
+ ${CFLAGS} \
+ ${CPPFLAGS} \
+ -Wl,-soname,libpak.so \
+ -fPIC \
+ -shared \
+ pak.c -o libpak.so || die "pak.so failed"
}
src_install() {
dolib.so libpak.so
- dolib.a libpak.a
- insinto /usr/include
- doins pak.h
+ doheader pak.h
+
dodoc AUTHORS NEWS README TODO pak.c pak.h
}