1 # Copyright 2019-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6,7,8} )
6 PYTHON_REQ_USE='threads(+)'
8 inherit python-any-r1 waf-utils xdg git-r3
12 DESCRIPTION="Virtual guitar amplifier for Linux"
13 HOMEPAGE="http://guitarix.org/"
14 EGIT_REPO_URI="https://git.code.sf.net/p/guitarix/git"
19 IUSE="bluetooth debug lv2 nls +standalone zeroconf"
20 REQUIRED_USE="|| ( lv2 standalone )"
22 COMMON_DEPEND="dev-cpp/eigen:3
27 >=media-libs/libsndfile-1.0.17
28 >=media-libs/zita-convolver-3:=
29 media-libs/zita-resampler
30 >=net-misc/curl-7.26.0
31 >=sci-libs/fftw-3.1.2:3.0=
33 lv2? ( media-libs/lv2 )
39 bluetooth? ( net-wireless/bluez )
40 zeroconf? ( net-dns/avahi )
43 # clearlooks gtk engine and roboto fonts are required for correct ui rendering
44 RDEPEND="${COMMON_DEPEND}
45 x11-themes/gtk-engines
50 DEPEND="${COMMON_DEPEND}
53 nls? ( dev-util/intltool )
56 S="${WORKDIR}/${P}/trunk"
58 DOCS=( changelog README )
63 --cxxflags-release="-DNDEBUG"
64 --ldflags="${LDFLAGS}"
72 $(usex bluetooth "" "--no-bluez")
73 $(usex debug "--debug" "")
74 $(usex lv2 "--lv2dir=${EPREFIX}/usr/$(get_libdir)/lv2" "--no-lv2 --no-lv2-gui")
75 $(usex standalone "" "--no-standalone")
76 $(usex zeroconf "" "--no-avahi")
78 waf-utils_src_configure "${myconf[@]}"