1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_6,3_7} )
7 PYTHON_REQ_USE='threads(+)'
9 inherit python-any-r1 waf-utils bash-completion-r1 multilib-build multilib-minimal
11 DESCRIPTION="Library to make the use of LV2 plugins as simple as possible for applications"
12 HOMEPAGE="http://drobilla.net/software/lilv/"
13 SRC_URI="http://download.drobilla.net/${P}.tar.bz2"
17 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 ~sparc x86"
18 IUSE="doc +dyn-manifest static-libs test"
19 RESTRICT="!test? ( test )"
22 >=dev-libs/serd-0.28.0-r1[${MULTILIB_USEDEP}]
23 >=dev-libs/sord-0.16.0-r1[${MULTILIB_USEDEP}]
25 >=media-libs/lv2-1.14.0-r1[${MULTILIB_USEDEP}]
26 >=media-libs/sratom-0.6.0-r1[${MULTILIB_USEDEP}]
30 doc? ( app-doc/doxygen )
31 virtual/pkgconfig[${MULTILIB_USEDEP}]
34 PATCHES=( "${FILESDIR}/includedir.patch" )
38 sed -i -e 's/^.*run_ldconfig/#\0/' wscript || die
42 multilib_src_configure() {
43 waf-utils_src_configure \
44 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
45 --no-bash-completion \
46 $(multilib_native_usex doc --docs "") \
47 $(usex test --test "") \
48 $(usex static-libs --static "") \
49 $(usex dyn-manifest --dyn-manifest "")
56 multilib_src_install() {
60 multilib_src_install_all() {
61 newbashcomp utils/lilv.bash_completion ${PN}
63 echo "LV2_PATH=${EPREFIX}/usr/$(get_libdir)/lv2" > "${ED}/etc/env.d/60lv2"