From 34fa5b0661fa3ea99b3aa6287b2179eede8f024e Mon Sep 17 00:00:00 2001 From: David Seifert Date: Wed, 21 Aug 2019 09:55:08 +0200 Subject: [PATCH] dev-libs/ilbc-rfc3951: Port to EAPI 7 Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: David Seifert --- dev-libs/ilbc-rfc3951/Manifest | 2 +- .../files/ilbc-rfc3951-asneeded.patch | 4 ++-- .../ilbc-rfc3951/ilbc-rfc3951-0-r1.ebuild | 23 +++++++++++-------- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/dev-libs/ilbc-rfc3951/Manifest b/dev-libs/ilbc-rfc3951/Manifest index 3dc92b229c1e..ef6c16aeaf33 100644 --- a/dev-libs/ilbc-rfc3951/Manifest +++ b/dev-libs/ilbc-rfc3951/Manifest @@ -1 +1 @@ -DIST ilbc-rfc3951.tar.gz 330306 BLAKE2B cf8c56d9fc3dd2dc6a2dd241f3b0cddb7e7f6cea126056d2ab94aaf8add382f1bc1d9b03c9a91110197e0d82253ca8e824cf37bc1622af26fdf0939204736c35 SHA512 7828a9c5a193ebdfcb383d1edad0868afdee0f71d1a8a878c7d9ea2078fd63f57d31b34ae2cf4890d5abc28c8f5f4ee940c665a126f0512d1e79c4f76a72fbcf +DIST ilbc-rfc3951-0.tar.gz 330306 BLAKE2B cf8c56d9fc3dd2dc6a2dd241f3b0cddb7e7f6cea126056d2ab94aaf8add382f1bc1d9b03c9a91110197e0d82253ca8e824cf37bc1622af26fdf0939204736c35 SHA512 7828a9c5a193ebdfcb383d1edad0868afdee0f71d1a8a878c7d9ea2078fd63f57d31b34ae2cf4890d5abc28c8f5f4ee940c665a126f0512d1e79c4f76a72fbcf diff --git a/dev-libs/ilbc-rfc3951/files/ilbc-rfc3951-asneeded.patch b/dev-libs/ilbc-rfc3951/files/ilbc-rfc3951-asneeded.patch index 8cc197d20626..115d339dd861 100644 --- a/dev-libs/ilbc-rfc3951/files/ilbc-rfc3951-asneeded.patch +++ b/dev-libs/ilbc-rfc3951/files/ilbc-rfc3951-asneeded.patch @@ -1,5 +1,5 @@ ---- src/Makefile.am.orig 2006-07-11 01:18:20.000000000 +1000 -+++ src/Makefile.am 2006-07-11 01:21:20.000000000 +1000 +--- a/src/Makefile.am ++++ b/src/Makefile.am @@ -10,6 +10,8 @@ doCPLC.c gainquant.c hpOutput.c iLBC_define.h lsf.c syntFilter.c \ doCPLC.h gainquant.h hpOutput.h iLBC_encode.c lsf.h syntFilter.h diff --git a/dev-libs/ilbc-rfc3951/ilbc-rfc3951-0-r1.ebuild b/dev-libs/ilbc-rfc3951/ilbc-rfc3951-0-r1.ebuild index 075b530085fd..c93ceda1bb01 100644 --- a/dev-libs/ilbc-rfc3951/ilbc-rfc3951-0-r1.ebuild +++ b/dev-libs/ilbc-rfc3951/ilbc-rfc3951-0-r1.ebuild @@ -1,29 +1,34 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=0 +EAPI=7 -inherit eutils autotools +inherit autotools DESCRIPTION="iLBC is a speech codec suitable for robust voice communication over IP" HOMEPAGE="https://webrtc.org/license/ilbc-freeware/" -SRC_URI="http://simon.morlat.free.fr/download/1.1.x/source/ilbc-rfc3951.tar.gz" +SRC_URI="http://simon.morlat.free.fr/download/1.1.x/source/ilbc-rfc3951.tar.gz -> ${P}.tar.gz" # relicensed under 3-clause BSD license, bug 390797 LICENSE="BSD" SLOT="0" KEYWORDS="alpha amd64 ~arm arm64 ~hppa ia64 ppc ppc64 sparc x86" -IUSE="" S="${WORKDIR}/${PN}" +PATCHES=( "${FILESDIR}"/${PN}-asneeded.patch ) -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${PN}-asneeded.patch +src_prepare() { + default eautoreconf } +src_configure() { + econf \ + --enable-shared \ + --disable-static +} + src_install() { - emake DESTDIR="${D}" install || die + default + find "${D}" -name '*.la' -delete || die } -- 2.26.2