1 |
commit: a281053a1fbfcdb3534292e4bbff636e586e1c5a |
2 |
Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me> |
3 |
AuthorDate: Thu Jun 6 18:44:57 2019 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 25 12:26:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a281053a |
7 |
|
8 |
media-plugins/ir_lv2: version bump to 1.3.4 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/417395 |
11 |
Closes: https://bugs.gentoo.org/655968 |
12 |
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me> |
13 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
14 |
|
15 |
media-plugins/ir_lv2/Manifest | 1 + |
16 |
.../ir_lv2/files/ir_lv2-1.3.4-respect-flags.patch | 21 ++++++++ |
17 |
media-plugins/ir_lv2/ir_lv2-1.3.4.ebuild | 63 ++++++++++++++++++++++ |
18 |
media-plugins/ir_lv2/metadata.xml | 3 ++ |
19 |
4 files changed, 88 insertions(+) |
20 |
|
21 |
diff --git a/media-plugins/ir_lv2/Manifest b/media-plugins/ir_lv2/Manifest |
22 |
index 0ea65b36980..d4129a6338c 100644 |
23 |
--- a/media-plugins/ir_lv2/Manifest |
24 |
+++ b/media-plugins/ir_lv2/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST ir.lv2-1.3.2.tar.gz 48698 BLAKE2B 2587fb8cae6d71c8a2e3586eaddba43f27282db2469a64f2441832c52f9f27ff9d0852acfce248b890ed4845281f4ef676581128321102e0fc655d0a91bb1266 SHA512 06443aeab05eaa0b1ff5c12fd479c3f1c874976a6d1f5874f6d150aa97c96a8a0b2c3abbc7d6db4882f5674aad8e53ab32bbe7da3873746d5a1e581d010bbae2 |
27 |
+DIST ir_lv2-1.3.4.tar.gz 126552 BLAKE2B 52f5b236c4680a759c0621ed0f9a394e6e82bdb9aaf4110b325902ae382d2f640a079c53d89c662a192a97d0e79349082cf100636c1a7d6c00738602ca652962 SHA512 6a9c8f906a07c6ed0daa53d8dc3693d535ec4cf63f07b5fcc62ab6638c66992ff7951918b0ce2ef8c65289b19988363be49bba9bb75a20b0463fa972b07ff58c |
28 |
|
29 |
diff --git a/media-plugins/ir_lv2/files/ir_lv2-1.3.4-respect-flags.patch b/media-plugins/ir_lv2/files/ir_lv2-1.3.4-respect-flags.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..cd664a6728a |
32 |
--- /dev/null |
33 |
+++ b/media-plugins/ir_lv2/files/ir_lv2-1.3.4-respect-flags.patch |
34 |
@@ -0,0 +1,21 @@ |
35 |
+diff -urpN ir.lv2-1.3.4.orig/Makefile ir.lv2-1.3.4/Makefile |
36 |
+--- ir.lv2-1.3.4.orig/Makefile 2018-06-21 11:14:03.000000000 +0300 |
37 |
++++ ir.lv2-1.3.4/Makefile 2019-12-24 16:26:06.102495896 +0300 |
38 |
+@@ -20,7 +20,7 @@ CC ?= gcc |
39 |
+ CXX ?= g++ |
40 |
+ |
41 |
+ # change "-O2 -ffast-math" to "-g -O0" below if you want to debug the plugin |
42 |
+-CPPFLAGS += -Wall -I. -I/usr/include `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gthread-2.0` -D__STDC_FORMAT_MACROS -O2 -ffast-math |
43 |
++CPPFLAGS += -Wall -I. -I/usr/include `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gthread-2.0` -D__STDC_FORMAT_MACROS -ffast-math |
44 |
+ LIBS += -lc -lm -lzita-convolver -lsamplerate -lsndfile `pkg-config --libs gthread-2.0` `pkg-config --libs gtk+-2.0` |
45 |
+ |
46 |
+ ifeq ($(shell pkg-config --atleast-version='2.16' gtk+-2.0; echo $$?), 1) |
47 |
+@@ -31,7 +31,7 @@ ifeq ($(shell pkg-config --atleast-versi |
48 |
+ CPPFLAGS += -D_HAVE_GTK_ATLEAST_2_20 |
49 |
+ endif |
50 |
+ |
51 |
+-C4CFLAGS = -Wall -I. -I/usr/include `pkg-config --cflags gthread-2.0` -O2 -ffast-math |
52 |
++C4CFLAGS = -Wall -I. -I/usr/include `pkg-config --cflags gthread-2.0` -ffast-math |
53 |
+ C4LIBS = -lsndfile `pkg-config --libs gthread-2.0` |
54 |
+ |
55 |
+ all: ir.so ir_gui.so |
56 |
|
57 |
diff --git a/media-plugins/ir_lv2/ir_lv2-1.3.4.ebuild b/media-plugins/ir_lv2/ir_lv2-1.3.4.ebuild |
58 |
new file mode 100644 |
59 |
index 00000000000..84fbbef3f1c |
60 |
--- /dev/null |
61 |
+++ b/media-plugins/ir_lv2/ir_lv2-1.3.4.ebuild |
62 |
@@ -0,0 +1,63 @@ |
63 |
+# Copyright 1999-2019 Gentoo Authors |
64 |
+# Distributed under the terms of the GNU General Public License v2 |
65 |
+ |
66 |
+EAPI=7 |
67 |
+ |
68 |
+inherit toolchain-funcs flag-o-matic multilib |
69 |
+ |
70 |
+DESCRIPTION="LV2 convolver plugin especially for creating reverb effects" |
71 |
+HOMEPAGE="https://tomszilagyi.github.io/plugins/ir.lv2/" |
72 |
+SRC_URI="https://github.com/tomszilagyi/ir.lv2/archive/${PV}.tar.gz -> ${P}.tar.gz" |
73 |
+S=${WORKDIR}/${PN/_/.}-${PV} |
74 |
+ |
75 |
+LICENSE="GPL-2+" |
76 |
+SLOT="0" |
77 |
+KEYWORDS="~amd64" |
78 |
+IUSE="tools" |
79 |
+ |
80 |
+RDEPEND="media-libs/libsamplerate |
81 |
+ media-libs/libsndfile |
82 |
+ media-libs/lv2 |
83 |
+ >=media-libs/zita-convolver-3:= |
84 |
+ >=x11-libs/gtk+-2.16:2" |
85 |
+DEPEND="${RDEPEND}" |
86 |
+BDEPEND="virtual/pkgconfig" |
87 |
+ |
88 |
+PATCHES=( |
89 |
+ "${FILESDIR}"/${PN}-1.3.4-respect-flags.patch |
90 |
+) |
91 |
+ |
92 |
+DOCS=( README.md sshot.png ChangeLog ) |
93 |
+ |
94 |
+src_compile() { |
95 |
+ tc-export CC CXX |
96 |
+ emake |
97 |
+ use tools && emake convert4chan |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ emake INSTDIR="${D}/usr/$(get_libdir)/lv2" install |
102 |
+ use tools && newbin convert4chan ir_convert4chan |
103 |
+ einstalldocs |
104 |
+} |
105 |
+ |
106 |
+pkg_postinst() { |
107 |
+ local latency_warn=0 |
108 |
+ local ver |
109 |
+ |
110 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
111 |
+ latency_warn=1 |
112 |
+ else |
113 |
+ for ver in ${REPLACING_VERSIONS}; do |
114 |
+ if ver_test ${ver} -lt 1.3.0; then |
115 |
+ latency_warn=1 |
116 |
+ break |
117 |
+ fi |
118 |
+ done |
119 |
+ fi |
120 |
+ |
121 |
+ if [[ ${latency_warn} -eq 1 ]]; then |
122 |
+ elog "This version works with automation at the expense of introducing extra buffering." |
123 |
+ elog "For zero latency use 1.2* version instead." |
124 |
+ fi |
125 |
+} |
126 |
|
127 |
diff --git a/media-plugins/ir_lv2/metadata.xml b/media-plugins/ir_lv2/metadata.xml |
128 |
index f79bb67acbd..8632ae7d47f 100644 |
129 |
--- a/media-plugins/ir_lv2/metadata.xml |
130 |
+++ b/media-plugins/ir_lv2/metadata.xml |
131 |
@@ -5,4 +5,7 @@ |
132 |
<email>proaudio@g.o</email> |
133 |
<name>Gentoo ProAudio Project</name> |
134 |
</maintainer> |
135 |
+<use> |
136 |
+ <flag name="tools">Build convert4chan tool</flag> |
137 |
+</use> |
138 |
</pkgmetadata> |