summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2020-11-14 21:19:13 +0100
committerDavid Seifert <soap@gentoo.org>2020-11-14 21:19:13 +0100
commit679b8f20fc2caecc03a9f845123baf88b322337c (patch)
tree987c1f153cadad68d588420e0eead61e33fe3a9f /media-libs/libreplaygain
parentmedia-libs/libofa: disable static libs (diff)
downloadgentoo-679b8f20fc2caecc03a9f845123baf88b322337c.tar.gz
gentoo-679b8f20fc2caecc03a9f845123baf88b322337c.tar.bz2
gentoo-679b8f20fc2caecc03a9f845123baf88b322337c.zip
media-libs/libreplaygain: disable static libs
Closes: https://bugs.gentoo.org/724606 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-libs/libreplaygain')
-rw-r--r--media-libs/libreplaygain/files/libreplaygain-static-libs.patch28
-rw-r--r--media-libs/libreplaygain/libreplaygain-477-r1.ebuild3
2 files changed, 30 insertions, 1 deletions
diff --git a/media-libs/libreplaygain/files/libreplaygain-static-libs.patch b/media-libs/libreplaygain/files/libreplaygain-static-libs.patch
new file mode 100644
index 000000000000..7772d620f13a
--- /dev/null
+++ b/media-libs/libreplaygain/files/libreplaygain-static-libs.patch
@@ -0,0 +1,28 @@
+From d06ffbc7d2e213e3d3743b1959ac774340bfe1d7 Mon Sep 17 00:00:00 2001
+From: Jakov Smolic <jakov.smolic@sartura.hr>
+Date: Sun, 20 Sep 2020 22:10:37 +0200
+Subject: [PATCH] src: CMakeLists: disable static libs
+
+Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
+---
+ src/CMakeLists.txt | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 121cdb4..837e959 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -1,9 +1,6 @@
+ include_directories(${libreplaygain_SOURCE_DIR}/include)
+
+-add_library(replaygain-static STATIC gain_analysis)
+-set_target_properties(replaygain-static PROPERTIES OUTPUT_NAME replaygain CLEAN_DIRECT_OUTPUT 1)
+-
+ add_library(replaygain-shared SHARED gain_analysis)
+ set_target_properties(replaygain-shared PROPERTIES OUTPUT_NAME replaygain CLEAN_DIRECT_OUTPUT 1 VERSION 1.0.0 SOVERSION 1)
+
+-install(TARGETS replaygain-static replaygain-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
++install(TARGETS replaygain-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
+--
+2.26.2
+
diff --git a/media-libs/libreplaygain/libreplaygain-477-r1.ebuild b/media-libs/libreplaygain/libreplaygain-477-r1.ebuild
index f1a6f5df2e81..171546eb7957 100644
--- a/media-libs/libreplaygain/libreplaygain-477-r1.ebuild
+++ b/media-libs/libreplaygain/libreplaygain-477-r1.ebuild
@@ -16,7 +16,8 @@ SRC_URI="https://dev.gentoo.org/~ssuominen/${P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
-IUSE=""
+
+PATCHES=( "${FILESDIR}"/${PN}-static-libs.patch )
src_prepare() {
cmake_src_prepare