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/tap-plugins/files/, media-plugins/tap-plugins/
Date: Mon, 24 Aug 2020 10:42:00
Message-Id: 1598265709.3afa3e73cc760c9f1cef57f52e849e0eef30439a.fordfrog@gentoo
1 commit: 3afa3e73cc760c9f1cef57f52e849e0eef30439a
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 24 10:41:38 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 24 10:41:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3afa3e73
7
8 media-plugins/tap-plugins: bump to 1.0.1 + added live
9
10 based on work of RarogCmex <denis7774 <AT> gmail.com> - thanks
11
12 Bug: https://github.com/gentoo/gentoo/pull/14834
13 Bug: https://bugs.gentoo.org/709282
14 Package-Manager: Portage-3.0.4, Repoman-3.0.1
15 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
16
17 media-plugins/tap-plugins/Manifest | 1 +
18 .../files/tap-plugins-1.0.1-makefile.patch | 47 ++++++++++++++++++++++
19 media-plugins/tap-plugins/tap-plugins-1.0.1.ebuild | 39 ++++++++++++++++++
20 media-plugins/tap-plugins/tap-plugins-9999.ebuild | 39 ++++++++++++++++++
21 4 files changed, 126 insertions(+)
22
23 diff --git a/media-plugins/tap-plugins/Manifest b/media-plugins/tap-plugins/Manifest
24 index 431e4b15341..4fd91d2609b 100644
25 --- a/media-plugins/tap-plugins/Manifest
26 +++ b/media-plugins/tap-plugins/Manifest
27 @@ -1 +1,2 @@
28 DIST tap-plugins-0.7.3.tar.gz 70495 BLAKE2B 6e0974be78fa9a8092555282d1d8a3cb5d11731e78119bd0f71e843f6a7557aebd48cc2c8f3cdcc4f90e52eaea357926c0ad2fc9bd9c95bb361ecb7d181f098e SHA512 c4e9c93b9fd8afb82067cf3a48ae665843da775c3af6124147ff1f8651d96734a4b961c4c5ea48877b32770e6d0b5a793af32a5cbb6e3b9afd5b59c8b3cc2621
29 +DIST tap-plugins-1.0.1.tar.gz 64649 BLAKE2B 2b8ac9a26197f5c980512d33daf4c604d7bb3046fb40e3826d559d4420921a0e124a5577d53d0896bc92111f69765f714d5f55a9da60546e2e6f29e5c851b2a5 SHA512 25f72bba83a5a40d480bc9d4659b64096102281d02e43ad93d5064b0ef7972184db40162d1ef78fd783f431740a4c4d5e03160cdd5f43da3bc1570ff462c863a
30
31 diff --git a/media-plugins/tap-plugins/files/tap-plugins-1.0.1-makefile.patch b/media-plugins/tap-plugins/files/tap-plugins-1.0.1-makefile.patch
32 new file mode 100644
33 index 00000000000..a5b441ee6d4
34 --- /dev/null
35 +++ b/media-plugins/tap-plugins/files/tap-plugins-1.0.1-makefile.patch
36 @@ -0,0 +1,47 @@
37 +diff --git a/Makefile b/Makefile
38 +index 54049cd..86f7175 100644
39 +--- a/Makefile
40 ++++ b/Makefile
41 +@@ -23,8 +23,8 @@
42 + # Change this if you want to install somewhere else. In particular
43 + # you may wish to remove the middle "local/" part of the path.
44 +
45 +-INSTALL_PLUGINS_DIR = /usr/local/lib/ladspa/
46 +-INSTALL_LRDF_DIR = /usr/local/share/ladspa/rdf/
47 ++#INSTALL_PLUGINS_DIR = /usr/local/lib/ladspa/
48 ++#INSTALL_LRDF_DIR = /usr/local/share/ladspa/rdf/
49 +
50 + # NO EDITING below this line is required
51 + # if all you want to do is install and use the plugins.
52 +@@ -37,13 +37,15 @@ INSTALL_LRDF_DIR = /usr/local/share/ladspa/rdf/
53 + OS := $(shell uname -s)
54 +
55 + CC = gcc
56 +-CFLAGS = -I. -O3 -Wall -fomit-frame-pointer -funroll-loops -ffast-math -c -fPIC -DPIC
57 ++CFLAGS = -I. -Wall -fomit-frame-pointer -funroll-loops -ffast-math -c -fPIC -DPIC
58 + ifeq ($(OS),Darwin)
59 +-LDFLAGS = -nostartfiles -shared -Wl,-install_name,symbolic -lc -lm
60 ++LDFLAGS = -nostartfiles -shared -Wl,-install_name,symbolic -lc -lm $(EXTRA_LDFLAGS)
61 + else
62 +-LDFLAGS = -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt
63 ++LDFLAGS = -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt $(EXTRA_LDFLAGS)
64 + endif
65 ++EXTRA_LDFLAGS =
66 + MODULES = $(wildcard *.c)
67 ++LIBADD = -lc -lm -lrt
68 +
69 + all: $(MODULES:%.c=%.so)
70 +
71 +@@ -54,10 +56,10 @@ tap_dynamics_m.o: tap_dynamics_presets.h
72 + tap_dynamics_st.o: tap_dynamics_presets.h
73 +
74 + %.o: %.c tap_utils.h ladspa.h
75 +- $(CC) $(CFLAGS) $< -o $@
76 ++ $(CC) $(CFLAGS) $(OPT_CFLAGS) $< -o $@
77 +
78 + %.so: %.o
79 +- $(CC) -o $@ $< $(LDFLAGS)
80 ++ $(CC) $(LDFLAGS) -o $@ $< $(LIBADD)
81 +
82 + # OTHER TARGETS
83 +
84
85 diff --git a/media-plugins/tap-plugins/tap-plugins-1.0.1.ebuild b/media-plugins/tap-plugins/tap-plugins-1.0.1.ebuild
86 new file mode 100644
87 index 00000000000..6a1fa34a0a5
88 --- /dev/null
89 +++ b/media-plugins/tap-plugins/tap-plugins-1.0.1.ebuild
90 @@ -0,0 +1,39 @@
91 +# Copyright 1999-2020 Gentoo Authors
92 +# Distributed under the terms of the GNU General Public License v2
93 +
94 +EAPI=7
95 +inherit eutils toolchain-funcs
96 +
97 +if [[ "${PV}" == "9999" ]]; then
98 + inherit git-r3
99 + KEYWORDS=""
100 + EGIT_REPO_URI="git://github.com/tomszilagyi/${PN}.git"
101 + EGIT_PROJECT="${PN}.git"
102 +else
103 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
104 + SRC_URI="https://github.com/tomszilagyi/tap-plugins/archive/v${PV}.tar.gz -> $P.tar.gz"
105 +fi
106 +
107 +DESCRIPTION="Tom's audio processing (TAP) LADSPA plugins"
108 +HOMEPAGE="https://github.com/tomszilagyi/tap-plugins http://tap-plugins.sourceforge.net/"
109 +LICENSE="GPL-2"
110 +SLOT="0"
111 +IUSE=""
112 +DEPEND="media-libs/ladspa-sdk"
113 +RDEPEND="${DEPEND}"
114 +DOCS=( README CREDITS )
115 +PATCHES=( "${FILESDIR}/${PN}-1.0.1-makefile.patch" )
116 +
117 +src_compile() {
118 + emake CC=$(tc-getCC) OPT_CFLAGS="${CFLAGS}" EXTRA_LDFLAGS="${LDFLAGS}"
119 +}
120 +
121 +src_install() {
122 + insinto /usr/share/ladspa/rdf
123 + doins *.rdf
124 +
125 + exeinto /usr/$(get_libdir)/ladspa
126 + doexe *.so
127 +
128 + einstalldocs
129 +}
130
131 diff --git a/media-plugins/tap-plugins/tap-plugins-9999.ebuild b/media-plugins/tap-plugins/tap-plugins-9999.ebuild
132 new file mode 100644
133 index 00000000000..6a1fa34a0a5
134 --- /dev/null
135 +++ b/media-plugins/tap-plugins/tap-plugins-9999.ebuild
136 @@ -0,0 +1,39 @@
137 +# Copyright 1999-2020 Gentoo Authors
138 +# Distributed under the terms of the GNU General Public License v2
139 +
140 +EAPI=7
141 +inherit eutils toolchain-funcs
142 +
143 +if [[ "${PV}" == "9999" ]]; then
144 + inherit git-r3
145 + KEYWORDS=""
146 + EGIT_REPO_URI="git://github.com/tomszilagyi/${PN}.git"
147 + EGIT_PROJECT="${PN}.git"
148 +else
149 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
150 + SRC_URI="https://github.com/tomszilagyi/tap-plugins/archive/v${PV}.tar.gz -> $P.tar.gz"
151 +fi
152 +
153 +DESCRIPTION="Tom's audio processing (TAP) LADSPA plugins"
154 +HOMEPAGE="https://github.com/tomszilagyi/tap-plugins http://tap-plugins.sourceforge.net/"
155 +LICENSE="GPL-2"
156 +SLOT="0"
157 +IUSE=""
158 +DEPEND="media-libs/ladspa-sdk"
159 +RDEPEND="${DEPEND}"
160 +DOCS=( README CREDITS )
161 +PATCHES=( "${FILESDIR}/${PN}-1.0.1-makefile.patch" )
162 +
163 +src_compile() {
164 + emake CC=$(tc-getCC) OPT_CFLAGS="${CFLAGS}" EXTRA_LDFLAGS="${LDFLAGS}"
165 +}
166 +
167 +src_install() {
168 + insinto /usr/share/ladspa/rdf
169 + doins *.rdf
170 +
171 + exeinto /usr/$(get_libdir)/ladspa
172 + doexe *.so
173 +
174 + einstalldocs
175 +}