summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2019-10-07 01:29:47 +0200
committerDavid Seifert <soap@gentoo.org>2019-10-20 14:34:12 +0200
commite2f76130d252cbbefd0173a4d5154b711f2401b5 (patch)
tree0b26a590778edc174919513fea6a85c3f5445eca /media-sound/gsm
parentsys-kernel/pf-sources: bump to 5.3-pf4 (diff)
downloadgentoo-e2f76130d252cbbefd0173a4d5154b711f2401b5.tar.gz
gentoo-e2f76130d252cbbefd0173a4d5154b711f2401b5.tar.bz2
gentoo-e2f76130d252cbbefd0173a4d5154b711f2401b5.zip
media-sound/gsm: do not install static libraries
Closes: https://github.com/gentoo/gentoo/pull/13069 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound/gsm')
-rw-r--r--media-sound/gsm/gsm-1.0.13-r1.ebuild28
1 files changed, 19 insertions, 9 deletions
diff --git a/media-sound/gsm/gsm-1.0.13-r1.ebuild b/media-sound/gsm/gsm-1.0.13-r1.ebuild
index 60550df0a103..133997802724 100644
--- a/media-sound/gsm/gsm-1.0.13-r1.ebuild
+++ b/media-sound/gsm/gsm-1.0.13-r1.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
+EAPI=7
+
+inherit flag-o-matic multilib-minimal toolchain-funcs
DESCRIPTION="Lossy speech compression library and tool"
HOMEPAGE="https://packages.qa.debian.org/libg/libgsm.html"
@@ -11,24 +12,33 @@ SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="gsm"
SLOT="0"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 sparc x86"
-IUSE=""
-S=${WORKDIR}/${PN}-"$(replace_version_separator 2 '-pl' )"
+S="${WORKDIR}/${PN}-$(ver_rs 2 '-pl' )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-shared.patch
+ "${FILESDIR}"/${PN}-1.0.12-memcpy.patch
+ "${FILESDIR}"/${PN}-1.0.12-64bit.patch
+)
DOCS=( ChangeLog MACHINES MANIFEST README )
src_prepare() {
- epatch "${FILESDIR}"/${P}-shared.patch \
- "${FILESDIR}"/${PN}-1.0.12-memcpy.patch \
- "${FILESDIR}"/${PN}-1.0.12-64bit.patch
+ default
+ sed -e 's/\$(GSM_INSTALL_LIB)\/libgsm.a //g' -i Makefile || die
+
multilib_copy_sources
}
-multilib_src_compile() {
+src_configure() {
# From upstream Makefile. Define this if your host multiplies
# floats faster than integers, e.g. on a SPARCstation.
use sparc && append-flags -DUSE_FLOAT_MUL -DFAST
+ multilib-minimal_src_compile
+}
+
+multilib_src_compile() {
emake -j1 CCFLAGS="${CFLAGS} -c -DNeedFunctionPrototypes=1" \
LD="$(tc-getCC)" AR="$(tc-getAR)" CC="$(tc-getCC)"
}
@@ -44,7 +54,7 @@ multilib_src_install() {
TOAST_INSTALL_MAN="${ED}"/usr/share/man/man1 \
install
- dolib lib/libgsm.so*
+ dolib.so lib/libgsm.so*
dosym ../gsm/gsm.h /usr/include/libgsm/gsm.h
}