1 |
commit: e8ea41321c34da5721c6106170e63682706b2870 |
2 |
Author: Marios Titas <redneb <AT> gmx <DOT> com> |
3 |
AuthorDate: Thu Dec 17 01:02:16 2020 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 27 10:42:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8ea4132 |
7 |
|
8 |
media-libs/lilv: rewrite to use the python-single-r1 eclass |
9 |
|
10 |
Closes: https://bugs.gentoo.org/760402 |
11 |
Signed-off-by: Marios Titas <redneb <AT> gmx.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/18689 |
13 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
14 |
|
15 |
media-libs/lilv/lilv-0.24.10-r1.ebuild | 81 ++++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 81 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/lilv/lilv-0.24.10-r1.ebuild b/media-libs/lilv/lilv-0.24.10-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..3763f818139 |
21 |
--- /dev/null |
22 |
+++ b/media-libs/lilv/lilv-0.24.10-r1.ebuild |
23 |
@@ -0,0 +1,81 @@ |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
30 |
+PYTHON_REQ_USE='threads(+)' |
31 |
+ |
32 |
+inherit python-single-r1 waf-utils bash-completion-r1 multilib-build multilib-minimal |
33 |
+ |
34 |
+DESCRIPTION="Library to make the use of LV2 plugins as simple as possible for applications" |
35 |
+HOMEPAGE="http://drobilla.net/software/lilv/" |
36 |
+SRC_URI="http://download.drobilla.net/${P}.tar.bz2" |
37 |
+ |
38 |
+LICENSE="ISC" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86" |
41 |
+IUSE="doc +dyn-manifest static-libs test" |
42 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
43 |
+RESTRICT="!test? ( test )" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ ${PYTHON_DEPS} |
47 |
+ dev-libs/serd[${MULTILIB_USEDEP}] |
48 |
+ dev-libs/sord[${MULTILIB_USEDEP}] |
49 |
+ media-libs/libsndfile |
50 |
+ media-libs/lv2[${MULTILIB_USEDEP}] |
51 |
+ media-libs/sratom[${MULTILIB_USEDEP}] |
52 |
+" |
53 |
+DEPEND=" |
54 |
+ ${RDEPEND} |
55 |
+ virtual/pkgconfig |
56 |
+ doc? ( app-doc/doxygen ) |
57 |
+ test? ( |
58 |
+ $(python_gen_cond_dep ' |
59 |
+ dev-python/unittest2[${PYTHON_USEDEP}] |
60 |
+ ') |
61 |
+ ) |
62 |
+" |
63 |
+ |
64 |
+pkg_setup() { |
65 |
+ python_setup |
66 |
+} |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ sed -i -e 's/^.*run_ldconfig/#\0/' wscript || die |
71 |
+ multilib_copy_sources |
72 |
+} |
73 |
+ |
74 |
+multilib_src_configure() { |
75 |
+ waf-utils_src_configure \ |
76 |
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
77 |
+ --no-bash-completion \ |
78 |
+ $(multilib_native_usex doc --docs "") \ |
79 |
+ $(usex test --test "") \ |
80 |
+ $(usex static-libs --static "") \ |
81 |
+ $(usex dyn-manifest --dyn-manifest "") |
82 |
+} |
83 |
+ |
84 |
+multilib_src_compile() { |
85 |
+ ./waf build || die |
86 |
+} |
87 |
+ |
88 |
+multilib_src_test() { |
89 |
+ ./waf test || die |
90 |
+} |
91 |
+ |
92 |
+multilib_src_install() { |
93 |
+ waf-utils_src_install |
94 |
+} |
95 |
+ |
96 |
+multilib_src_install_all() { |
97 |
+ sed -i "/lv2jack/d" utils/lilv.bash_completion |
98 |
+ newbashcomp utils/lilv.bash_completion lv2info |
99 |
+ |
100 |
+ dodir /etc/env.d |
101 |
+ echo "LV2_PATH=${EPREFIX}/usr/$(get_libdir)/lv2" > "${ED}/etc/env.d/60lv2" |
102 |
+ |
103 |
+ python_optimize |
104 |
+} |