Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/swh-plugins/, media-plugins/swh-plugins/files/
Date: Thu, 27 Aug 2020 08:07:46
Message-Id: 1598515555.c650a7c49c4ec469010635072c026130fa05ce1c.fordfrog@gentoo
1 commit: c650a7c49c4ec469010635072c026130fa05ce1c
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 08:05:55 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 08:05:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c650a7c4
7
8 media-plugins/swh-plugins: bump to 0.4.17
9
10 based on contributions to bug #595812
11
12 Closes: https://bugs.gentoo.org/595812
13 Package-Manager: Portage-3.0.4, Repoman-3.0.1
14 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
15
16 media-plugins/swh-plugins/Manifest | 1 +
17 .../files/swh-plugins-0.4.17-system-gsm.patch | 46 +++++++++++++++
18 .../swh-plugins/swh-plugins-0.4.17.ebuild | 67 ++++++++++++++++++++++
19 3 files changed, 114 insertions(+)
20
21 diff --git a/media-plugins/swh-plugins/Manifest b/media-plugins/swh-plugins/Manifest
22 index 5b1dd4b8a78..e9cc8562d84 100644
23 --- a/media-plugins/swh-plugins/Manifest
24 +++ b/media-plugins/swh-plugins/Manifest
25 @@ -1,2 +1,3 @@
26 DIST swh-plugins-0.4.15-patchset.tar.bz2 5208 BLAKE2B 5ed8f49ddec0a8ed34fab05defc9489c6ae563f824f1514845719ee3716847cbeb023152d3ac1522e28712845ecd14ab62b4e4c466e9385a3df6fa3dc9a970ab SHA512 b2d016c52fa3cb90e255f26f1e9f7410b7a44b50e0ede0acc5a3092abbb65fbb455c3c3eb0059083f40556e00f95262a885c8970a8b25c310f73af6913973fc5
27 DIST swh-plugins-0.4.15.tar.gz 1051623 BLAKE2B 8b18cd558160b58ad09662b3aea69ce928daa812bb5aa8089423a504a103fa6e29b4663b9bd827230742b1d7c6570c9b671b4a25cdc54e794b465edb36743a07 SHA512 b26d11f3887d03d39187b86f8e4061e3808ac03fa49caf24256ae457a0156be5982fe687ed50fa4240ccbb3e6250ed920d1da8c95d57cf4313e127559491eb03
28 +DIST swh-plugins-0.4.17.tar.gz 456472 BLAKE2B 827e5c0d6ac692636904df64d1af8d94488f22a26cf09586b0ad32bec9017c9f3cd66074d8f786f5722e4918d32ff27be719561005273f2dcee81ea8690d6274 SHA512 6b566030b43c3929ce8938648abd458efa0fea0b4916410a34b4f4fa788c45e4a6ec3f46ca435f8546179ff0c4674303db22314e1c1f1d09e5f2b71e6c5aecc7
29
30 diff --git a/media-plugins/swh-plugins/files/swh-plugins-0.4.17-system-gsm.patch b/media-plugins/swh-plugins/files/swh-plugins-0.4.17-system-gsm.patch
31 new file mode 100644
32 index 00000000000..f4c1597f5ff
33 --- /dev/null
34 +++ b/media-plugins/swh-plugins/files/swh-plugins-0.4.17-system-gsm.patch
35 @@ -0,0 +1,46 @@
36 +diff -Naurd old/configure.ac new/configure.ac
37 +--- old/configure.ac 2019-03-03 12:10:38.826276038 +0500
38 ++++ new/configure.ac 2019-03-03 21:02:30.456414852 +0500
39 +@@ -133,17 +133,19 @@
40 + AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}")
41 + fi
42 +
43 +-subdirs="util gsm gverb metadata"
44 ++GSM_LIBS=-lgsm
45 ++
46 ++subdirs="util gverb metadata"
47 +
48 + AC_SUBST(subdirs)
49 + AC_SUBST(FFTW_LIBS)
50 + AC_SUBST(STATIC_FFTW_LIBS)
51 + AC_SUBST(FFTW_CFLAGS)
52 ++AC_SUBST(GSM_LIBS)
53 + AC_SUBST(LIBTOOL)
54 + AC_OUTPUT([
55 + Makefile
56 + util/Makefile
57 +-gsm/Makefile
58 + gverb/Makefile
59 + metadata/Makefile
60 + po/Makefile.in
61 +diff -Naurd old/Makefile.am new/Makefile.am
62 +--- old/Makefile.am 2016-10-17 14:05:54.000000000 +0500
63 ++++ new/Makefile.am 2019-03-03 20:58:55.298862874 +0500
64 +@@ -34,7 +34,7 @@
65 + latency_1914.la xfade_1915.la sc4m_1916.la \
66 + mbeq_1197.la pitch_scale_1193.la pitch_scale_1194.la imp_1199.la
67 +
68 +-SUBDIRS = po util gsm gverb metadata
69 ++SUBDIRS = po util gverb metadata
70 +
71 + # Wacky stuff to stop automake getting confused
72 + EXTRA_DIST = config.rpath @top_srcdir@/*.xml @top_srcdir@/*.c @top_srcdir@/*.h \
73 +@@ -73,7 +73,7 @@
74 + sc4_1882_la_LIBADD = -Lutil -ldb -lrms
75 + sc4m_1916_la_LIBADD = -Lutil -ldb -lrms
76 + se4_1883_la_LIBADD = -Lutil -ldb -lrms
77 +-gsm_1215_la_LIBADD = gsm/libgsm.a
78 ++gsm_1215_la_LIBADD = @GSM_LIBS@
79 + gverb_1216_la_LIBADD = -Lgverb -lgverb
80 + lcr_delay_1436_la_DEPENDENCIES = util/biquad.h
81 +
82
83 diff --git a/media-plugins/swh-plugins/swh-plugins-0.4.17.ebuild b/media-plugins/swh-plugins/swh-plugins-0.4.17.ebuild
84 new file mode 100644
85 index 00000000000..2d242b21e26
86 --- /dev/null
87 +++ b/media-plugins/swh-plugins/swh-plugins-0.4.17.ebuild
88 @@ -0,0 +1,67 @@
89 +# Copyright 1999-2020 Gentoo Authors
90 +# Distributed under the terms of the GNU General Public License v2
91 +
92 +EAPI=7
93 +
94 +inherit autotools flag-o-matic multilib-minimal
95 +
96 +DESCRIPTION="Large collection of LADSPA audio plugins/effects"
97 +HOMEPAGE="http://plugin.org.uk"
98 +SRC_URI="https://github.com/swh/ladspa/archive/v${PV}.tar.gz -> ${P}.tar.gz"
99 +
100 +SLOT="0"
101 +LICENSE="GPL-2"
102 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
103 +IUSE="nls cpu_flags_x86_3dnow cpu_flags_x86_sse"
104 +
105 +RDEPEND="
106 + >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}]
107 + >=sci-libs/fftw-3.3.3-r2[${MULTILIB_USEDEP}]
108 +"
109 +DEPEND="${RDEPEND}
110 + media-libs/ladspa-sdk
111 + sys-devel/gettext
112 +"
113 +BDEPEND="virtual/pkgconfig"
114 +
115 +DOCS=( AUTHORS ChangeLog README TODO )
116 +
117 +S="${WORKDIR}/ladspa-${PV}"
118 +
119 +PATCHES=(
120 + "${FILESDIR}/${P}-system-gsm.patch"
121 +)
122 +
123 +src_prepare() {
124 + default
125 +
126 + append-cflags -fPIC -DPIC
127 +
128 + # Use system libgsm, also patch above, bug #252890
129 + rm -rf gsm
130 +
131 + NOCONFIGURE=1 ./autogen.sh
132 +
133 + elibtoolize
134 +
135 + multilib_copy_sources
136 +}
137 +
138 +multilib_src_configure() {
139 + econf \
140 + $(use_enable cpu_flags_x86_sse sse) \
141 + $(use_enable cpu_flags_x86_3dnow 3dnow) \
142 + $(use_enable nls) \
143 + --enable-fast-install \
144 + --disable-dependency-tracking
145 +}
146 +
147 +pkg_postinst() {
148 + ewarn "WARNING: You have to be careful when using the"
149 + ewarn "swh plugins. Be sure to lower your sound volume"
150 + ewarn "and then play around a bit with the plugins so"
151 + ewarn "you get a feeling for it. Otherwise your speakers"
152 + ewarn "won't like that."
153 + einfo "If you use only 64 bit sequencers, you may want to disable 32 bit support via USE flag"
154 + einfo "example| media-plugins/swh-plugins -abi_x86_32"
155 +}