commit:     e62e7bd1fe3e300c2844e26fc0ba62067215ca85
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Tue Aug 26 17:43:28 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep  6 15:02:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e62e7bd1

media-sound/guitarix: add 0.47.0

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Part-of: https://github.com/gentoo/gentoo/pull/43575
Closes: https://github.com/gentoo/gentoo/pull/43575
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-sound/guitarix/Manifest                      |  1 +
 .../guitarix/files/guitarix-0.47.0-nostrip.patch   | 36 +++++++++
 media-sound/guitarix/guitarix-0.47.0.ebuild        | 92 ++++++++++++++++++++++
 3 files changed, 129 insertions(+)

diff --git a/media-sound/guitarix/Manifest b/media-sound/guitarix/Manifest
index 6c38532b233d..ff3d5d6e0214 100644
--- a/media-sound/guitarix/Manifest
+++ b/media-sound/guitarix/Manifest
@@ -1 +1,2 @@
 DIST guitarix2-0.46.0.tar.xz 77670776 BLAKE2B 
b650d53f4e73539419bbe194e07ee770494f80b547d407f5a269c035b91fbf3e0fe078a9e82da21f773d69395523f70fc179be7942f08e2b8689b220414c9925
 SHA512 
cdb8eccdd230bade493cf0b7fd2a6e748fcaf3c3fd6b5ed5fbd6134d08be9518c93400625d63e386b436fcef3e1738cae543256b09941445436d7f2bf41649a0
+DIST guitarix2-0.47.0.tar.xz 79169320 BLAKE2B 
03da29819fb5da4e981d25c229310da9741325475fae694a7745c16a18fc2b21d0e11ddc1aadcc6c1364d61f37d89dbf31f48da69aa823b3e192719cbb3d0736
 SHA512 
6726bfc5e3b71b195e7117ba56f56164a119c6e34934d50131c186c6c4fd0400c97d51acae22f645fc9dff91f16312a55d38c68e3609c0f21d3c3e6db8a09524

diff --git a/media-sound/guitarix/files/guitarix-0.47.0-nostrip.patch 
b/media-sound/guitarix/files/guitarix-0.47.0-nostrip.patch
new file mode 100644
index 000000000000..e6370ef23305
--- /dev/null
+++ b/media-sound/guitarix/files/guitarix-0.47.0-nostrip.patch
@@ -0,0 +1,36 @@
+--- a/waftools/lv2.py
++++ b/waftools/lv2.py
+@@ -40,10 +40,7 @@ def lv2_add_common(tg, target, install_path, defines=None, 
linkflags=None, cxxfl
+ @Configure.conf
+ def lv2(bld, *k, **kw):
+     lv2_base, dst = get_lv2_base(bld, kw)
+-    strip = ''
+-    if not bld.options.debug:
+-        strip = 'strip'
+-    tg = bld.shlib(features=strip, *k, **kw)
++    tg = bld.shlib(*k, **kw)
+     cxxflags = []
+     if not bld.env['OPT'] and bld.env['SSE2']:
+         cxxflags = [ "-msse2", "-mfpmath=sse"]
+@@ -60,10 +57,7 @@ def lv2_gui(bld, *k, **kw):
+     if not bld.env['LV2GUI']:
+         return None
+     lv2_base, dst = get_lv2_base(bld, kw)
+-    strip = ''
+-    if not bld.options.debug:
+-        strip = 'strip'
+-    tg = bld.shlib(features=strip, *k, **kw)
++    tg = bld.shlib(*k, **kw)
+     lv2_add_common(tg, lv2_base+'_gui', dst, ["LV2_GUI"], 
bld.env['OS_LV2_CXXFLAGS'])
+     return tg
+ 
+--- a/wscript
++++ b/wscript
+@@ -404,7 +404,6 @@ def configure(conf):
+     conf.env['DESKAPPS_DIR'] = 
os.path.normpath(os.path.join(conf.env['SHAREDIR'], 'applications'))
+     conf.env['BIN_NAME'] = APPNAME
+     if opt.lv2:
+-        conf.gxload('strip')
+         conf.gxload('lv2')
+ 
+     conf.gxload('cpu_optimization')

diff --git a/media-sound/guitarix/guitarix-0.47.0.ebuild 
b/media-sound/guitarix/guitarix-0.47.0.ebuild
new file mode 100644
index 000000000000..cd582f065901
--- /dev/null
+++ b/media-sound/guitarix/guitarix-0.47.0.ebuild
@@ -0,0 +1,92 @@
+# Copyright 2019-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_REQ_USE='threads(+)'
+
+inherit multiprocessing python-any-r1 waf-utils xdg
+
+DESCRIPTION="Virtual guitar amplifier for Linux"
+HOMEPAGE="https://guitarix.org/";
+SRC_URI="https://github.com/brummer10/${PN}/releases/download/V${PV}/guitarix2-${PV}.tar.xz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="bluetooth debug lv2 nls nsm +standalone zeroconf"
+REQUIRED_USE="|| ( lv2 standalone )"
+
+DEPEND="
+       dev-cpp/eigen:3
+       dev-cpp/glibmm:2
+       dev-cpp/gtkmm:3.0
+       dev-libs/glib:2
+       media-libs/libsndfile
+       media-libs/zita-convolver:=
+       media-libs/zita-resampler
+       net-misc/curl
+       sci-libs/fftw:3.0=
+       x11-libs/gtk+:3
+       lv2? ( media-libs/lv2 )
+       standalone? (
+               dev-libs/boost:=
+               media-libs/liblrdf
+               media-libs/lilv
+               virtual/jack
+               bluetooth? ( net-wireless/bluez )
+               nsm? ( media-libs/liblo )
+               zeroconf? ( net-dns/avahi )
+       )
+"
+# roboto fonts are required for correct ui rendering
+RDEPEND="
+       ${DEPEND}
+       standalone? (
+               media-fonts/roboto
+       )
+"
+BDEPEND="
+       ${PYTHON_DEPS}
+       virtual/pkgconfig
+       standalone? (
+               dev-lang/sassc
+               nls? (
+                       dev-util/intltool
+                       sys-devel/gettext
+               )
+       )
+"
+
+DOCS=( changelog README )
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.47.0-nostrip.patch
+)
+
+src_configure() {
+       export -n {CXX,LD}FLAGS
+
+       local myconf=(
+               --cxxflags="${CXXFLAGS}"
+               --cxxflags-debug=""
+               --cxxflags-release="-DNDEBUG"
+               --ldflags="${LDFLAGS}"
+               --enable-lfs
+               --lib-dev
+               --no-desktop-update
+               --no-faust
+               --no-ldconfig
+               --shared-lib
+               --jobs=$(makeopts_jobs)
+               $(use_enable nls)
+               $(usex bluetooth "" "--no-bluez")
+               $(usex debug "--debug" "")
+               $(usex lv2 "--lv2dir=${EPREFIX}/usr/$(get_libdir)/lv2" 
"--no-lv2 --no-lv2-gui")
+               $(usex nsm "" "--no-nsm")
+               $(usex standalone "" "--no-standalone")
+               $(usex zeroconf "" "--no-avahi")
+       )
+       waf-utils_src_configure "${myconf[@]}"
+}

Reply via email to