commit:     b8d1ccba79828e40ab4a38cd6cad8dc120f55028
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 10 13:10:21 2020 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Wed Jun 10 13:10:56 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8d1ccba

media-video/rtmpdump: add static-libs USE flag

Closes: https://bugs.gentoo.org/727796
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 media-video/rtmpdump/rtmpdump-2.4_p20161210-r3.ebuild | 6 ++++--
 media-video/rtmpdump/rtmpdump-9999.ebuild             | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/media-video/rtmpdump/rtmpdump-2.4_p20161210-r3.ebuild 
b/media-video/rtmpdump/rtmpdump-2.4_p20161210-r3.ebuild
index 5f6a9cd3cb0..09a4ebf6598 100644
--- a/media-video/rtmpdump/rtmpdump-2.4_p20161210-r3.ebuild
+++ b/media-video/rtmpdump/rtmpdump-2.4_p20161210-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -11,7 +11,7 @@ HOMEPAGE="https://rtmpdump.mplayerhq.hu/";
 # the library is LGPL-2.1, the command is GPL-2
 LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
-IUSE="gnutls ssl libressl"
+IUSE="gnutls ssl static-libs libressl"
 
 DEPEND="ssl? (
                gnutls? (
@@ -98,4 +98,6 @@ multilib_src_install() {
        fi
        emake DESTDIR="${D}" prefix="${EPREFIX}/usr" 
mandir='$(prefix)/share/man' \
                CRYPTO="${crypto}" install
+       find "${D}" -name '*.la' -delete || die
+       use static-libs || find "${D}" -name '*.a' -delete || die
 }

diff --git a/media-video/rtmpdump/rtmpdump-9999.ebuild 
b/media-video/rtmpdump/rtmpdump-9999.ebuild
index aef12b6aa94..df14880ddc1 100644
--- a/media-video/rtmpdump/rtmpdump-9999.ebuild
+++ b/media-video/rtmpdump/rtmpdump-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -11,7 +11,7 @@ HOMEPAGE="https://rtmpdump.mplayerhq.hu/";
 # the library is LGPL-2.1, the command is GPL-2
 LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
-IUSE="gnutls ssl libressl"
+IUSE="gnutls ssl static-libs libressl"
 
 DEPEND="ssl? (
                gnutls? (
@@ -98,4 +98,6 @@ multilib_src_install() {
        fi
        emake DESTDIR="${D}" prefix="${EPREFIX}/usr" 
mandir='$(prefix)/share/man' \
                CRYPTO="${crypto}" install
+       find "${D}" -name '*.la' -delete || die
+       use static-libs || find "${D}" -name '*.a' -delete || die
 }

Reply via email to