1 |
commit: 06a2d717fca6791983bc6af5e1320b47b2570079 |
2 |
Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me> |
3 |
AuthorDate: Mon Aug 3 20:37:42 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 15 09:29:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06a2d717 |
7 |
|
8 |
media-sound/guitarix: Version bump to 0.41.0 |
9 |
|
10 |
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
media-sound/guitarix/Manifest | 1 + |
14 |
.../guitarix/files/guitarix-0.41.0-nostrip.patch | 47 ++++++++++++ |
15 |
media-sound/guitarix/guitarix-0.41.0.ebuild | 86 ++++++++++++++++++++++ |
16 |
media-sound/guitarix/metadata.xml | 1 + |
17 |
4 files changed, 135 insertions(+) |
18 |
|
19 |
diff --git a/media-sound/guitarix/Manifest b/media-sound/guitarix/Manifest |
20 |
index b5029b9da9f..e7afd4cf70a 100644 |
21 |
--- a/media-sound/guitarix/Manifest |
22 |
+++ b/media-sound/guitarix/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST guitarix2-0.39.0.tar.xz 80769472 BLAKE2B a699545b7e4a9992ed11a17ee9f82170c1891a95a0543c3b847ff2a02ab4e6597c28cbb4708f85022b1e94f0184b6dc712c271729bdda07373101ea9e8a1323f SHA512 5eb799498385ab9aa865e3f5a7e79d77f7f62c9bd7ad6875ec32bdec85829ed5b84bed3b0eab786ce74088fe2e1d53080f70afcb25ab1ef8d8f78a676b4947df |
25 |
DIST guitarix2-0.40.0.tar.xz 70880548 BLAKE2B 08d849d15fcfaa26e6eacb5480e8ea28a86e94f2c28969abc00c479c2f8c31ecb80cd4e02f0244f2ead26d687ff90dcdb9027a5c7ad448cf1241d69ab56d2521 SHA512 902e4d924cae68a477518cb87d7b63edb8716db93e11add921e733c315f2646652fb1b434d182e836e1e866035cabe22a41d8dc66df0b6156b5242cdd31d51e8 |
26 |
+DIST guitarix2-0.41.0.tar.xz 70865716 BLAKE2B d3caa51f297153c16df624ababaffc1405ddb10f04ae01672720bb2229d4be3426b33f75021b1862f996fb09466eaad008f748b42cb8382f08d14e23758cfc9b SHA512 27fe6f2b87c8913feafae1c17472150d37df46ed3437b033cd22f509edf67420fb8f4024e404d5bec901a687dbe948acda702bf37cb0c738feb5b3b8e5ebb8aa |
27 |
|
28 |
diff --git a/media-sound/guitarix/files/guitarix-0.41.0-nostrip.patch b/media-sound/guitarix/files/guitarix-0.41.0-nostrip.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..03850a8acb0 |
31 |
--- /dev/null |
32 |
+++ b/media-sound/guitarix/files/guitarix-0.41.0-nostrip.patch |
33 |
@@ -0,0 +1,47 @@ |
34 |
+From f630c226e4d6f342f78a82f6dd6df4fe3e3f3e01 Mon Sep 17 00:00:00 2001 |
35 |
+From: Alexander Tsoy <alexander@××××.me> |
36 |
+Date: Fri, 5 Jun 2020 17:21:10 +0300 |
37 |
+Subject: [PATCH] Do not strip lv2 plugins |
38 |
+ |
39 |
+--- |
40 |
+ waftools/lv2.py | 4 ++-- |
41 |
+ wscript | 1 - |
42 |
+ 2 files changed, 2 insertions(+), 3 deletions(-) |
43 |
+ |
44 |
+diff --git a/waftools/lv2.py b/waftools/lv2.py |
45 |
+index 7397f6b7..256d52b1 100644 |
46 |
+--- a/waftools/lv2.py |
47 |
++++ b/waftools/lv2.py |
48 |
+@@ -40,7 +40,7 @@ def lv2_add_common(tg, target, install_path, defines=None, linkflags=None, cxxfl |
49 |
+ @Configure.conf |
50 |
+ def lv2(bld, *k, **kw): |
51 |
+ lv2_base, dst = get_lv2_base(bld, kw) |
52 |
+- tg = bld.shlib(features='strip', *k, **kw) |
53 |
++ tg = bld.shlib(*k, **kw) |
54 |
+ cxxflags = [] |
55 |
+ if not bld.env['OPT'] and bld.env['SSE2']: |
56 |
+ cxxflags = [ "-msse2", "-mfpmath=sse"] |
57 |
+@@ -57,7 +57,7 @@ def lv2_gui(bld, *k, **kw): |
58 |
+ if not bld.env['LV2GUI']: |
59 |
+ return None |
60 |
+ lv2_base, dst = get_lv2_base(bld, kw) |
61 |
+- tg = bld.shlib(features='strip', *k, **kw) |
62 |
++ tg = bld.shlib(*k, **kw) |
63 |
+ lv2_add_common(tg, lv2_base+'_gui', dst, ["LV2_GUI"], ['-fvisibility=hidden','-Wl,-z,relro,-z,now','-Wl,--exclude-libs,ALL']) |
64 |
+ return tg |
65 |
+ |
66 |
+diff --git a/wscript b/wscript |
67 |
+index 3e2114d3..0d49cd16 100644 |
68 |
+--- a/wscript |
69 |
++++ b/wscript |
70 |
+@@ -375,7 +375,6 @@ def configure(conf): |
71 |
+ conf.env['DESKAPPS_DIR'] = os.path.normpath(os.path.join(conf.env['SHAREDIR'], 'applications')) |
72 |
+ conf.env['BIN_NAME'] = APPNAME |
73 |
+ if opt.lv2: |
74 |
+- conf.gxload('strip') |
75 |
+ conf.gxload('lv2') |
76 |
+ conf.env['LADSPA'] = opt.ladspa |
77 |
+ conf.env['NEW_LADSPA'] = opt.new_ladspa |
78 |
+-- |
79 |
+2.26.2 |
80 |
+ |
81 |
|
82 |
diff --git a/media-sound/guitarix/guitarix-0.41.0.ebuild b/media-sound/guitarix/guitarix-0.41.0.ebuild |
83 |
new file mode 100644 |
84 |
index 00000000000..95583d16f7a |
85 |
--- /dev/null |
86 |
+++ b/media-sound/guitarix/guitarix-0.41.0.ebuild |
87 |
@@ -0,0 +1,86 @@ |
88 |
+# Copyright 2019-2020 Gentoo Authors |
89 |
+# Distributed under the terms of the GNU General Public License v2 |
90 |
+ |
91 |
+EAPI=6 |
92 |
+ |
93 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
94 |
+PYTHON_REQ_USE='threads(+)' |
95 |
+ |
96 |
+inherit python-any-r1 waf-utils xdg |
97 |
+ |
98 |
+MY_P="${PN}2-${PV}" |
99 |
+ |
100 |
+DESCRIPTION="Virtual guitar amplifier for Linux" |
101 |
+HOMEPAGE="https://guitarix.org/" |
102 |
+SRC_URI="mirror://sourceforge/guitarix/guitarix/${MY_P}.tar.xz" |
103 |
+ |
104 |
+LICENSE="GPL-2" |
105 |
+SLOT="0" |
106 |
+KEYWORDS="~amd64" |
107 |
+IUSE="bluetooth debug lv2 nls nsm +standalone zeroconf" |
108 |
+REQUIRED_USE="|| ( lv2 standalone )" |
109 |
+ |
110 |
+COMMON_DEPEND="dev-cpp/eigen:3 |
111 |
+ dev-cpp/glibmm:2 |
112 |
+ dev-cpp/gtkmm:3.0 |
113 |
+ dev-libs/glib:2 |
114 |
+ >=media-libs/libsndfile-1.0.17 |
115 |
+ >=media-libs/zita-convolver-3:= |
116 |
+ media-libs/zita-resampler |
117 |
+ >=net-misc/curl-7.26.0 |
118 |
+ >=sci-libs/fftw-3.1.2:3.0= |
119 |
+ x11-libs/gtk+:3 |
120 |
+ lv2? ( media-libs/lv2 ) |
121 |
+ standalone? ( |
122 |
+ dev-libs/boost:= |
123 |
+ media-libs/liblrdf |
124 |
+ media-libs/lilv |
125 |
+ virtual/jack |
126 |
+ bluetooth? ( net-wireless/bluez ) |
127 |
+ nsm? ( media-libs/liblo ) |
128 |
+ zeroconf? ( net-dns/avahi ) |
129 |
+ ) |
130 |
+" |
131 |
+# roboto fonts are required for correct ui rendering |
132 |
+RDEPEND="${COMMON_DEPEND} |
133 |
+ standalone? ( |
134 |
+ media-fonts/roboto |
135 |
+ ) |
136 |
+" |
137 |
+DEPEND="${COMMON_DEPEND} |
138 |
+ ${PYTHON_DEPS} |
139 |
+ dev-lang/sassc |
140 |
+ virtual/pkgconfig |
141 |
+ nls? ( |
142 |
+ dev-util/intltool |
143 |
+ sys-devel/gettext |
144 |
+ ) |
145 |
+" |
146 |
+ |
147 |
+DOCS=( changelog README ) |
148 |
+ |
149 |
+PATCHES=( |
150 |
+ "${FILESDIR}"/${P}-nostrip.patch |
151 |
+) |
152 |
+ |
153 |
+src_configure() { |
154 |
+ local myconf=( |
155 |
+ --cxxflags-debug="" |
156 |
+ --cxxflags-release="-DNDEBUG" |
157 |
+ --ldflags="${LDFLAGS}" |
158 |
+ --enable-lfs |
159 |
+ --lib-dev |
160 |
+ --no-desktop-update |
161 |
+ --no-faust |
162 |
+ --no-ldconfig |
163 |
+ --shared-lib |
164 |
+ $(use_enable nls) |
165 |
+ $(usex bluetooth "" "--no-bluez") |
166 |
+ $(usex debug "--debug" "") |
167 |
+ $(usex lv2 "--lv2dir=${EPREFIX}/usr/$(get_libdir)/lv2" "--no-lv2 --no-lv2-gui") |
168 |
+ $(usex nsm "" "--no-nsm") |
169 |
+ $(usex standalone "" "--no-standalone") |
170 |
+ $(usex zeroconf "" "--no-avahi") |
171 |
+ ) |
172 |
+ waf-utils_src_configure "${myconf[@]}" |
173 |
+} |
174 |
|
175 |
diff --git a/media-sound/guitarix/metadata.xml b/media-sound/guitarix/metadata.xml |
176 |
index 73245221dba..a17618d6ef1 100644 |
177 |
--- a/media-sound/guitarix/metadata.xml |
178 |
+++ b/media-sound/guitarix/metadata.xml |
179 |
@@ -15,6 +15,7 @@ |
180 |
</maintainer> |
181 |
<use> |
182 |
<flag name="lv2">Build lv2 plugins</flag> |
183 |
+ <flag name="nsm">Build NSM (Non Session Manager) support</flag> |
184 |
<flag name="standalone">Build standalone application</flag> |
185 |
</use> |
186 |
</pkgmetadata> |