* [gentoo-commits] repo/gentoo:master commit in: media-libs/lv2/, media-libs/lv2/files/
@ 2022-08-05 13:34 Miroslav Šulc
0 siblings, 0 replies; 2+ messages in thread
From: Miroslav Šulc @ 2022-08-05 13:34 UTC (permalink / raw
To: gentoo-commits
commit: e836a45dea181c366a63546a3b1e14d3ef0e6e56
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 5 13:33:51 2022 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Fri Aug 5 13:34:00 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e836a45d
media-libs/lv2: fixed missing lv2.h in 1.18.6
Closes: https://bugs.gentoo.org/862603
Closes: https://bugs.gentoo.org/862630
Closes: https://bugs.gentoo.org/863071
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
media-libs/lv2/files/lv2-1.18.6-add-missing-lv2.h.patch | 14 ++++++++++++++
media-libs/lv2/{lv2-1.18.6.ebuild => lv2-1.18.6-r1.ebuild} | 4 ++++
2 files changed, 18 insertions(+)
diff --git a/media-libs/lv2/files/lv2-1.18.6-add-missing-lv2.h.patch b/media-libs/lv2/files/lv2-1.18.6-add-missing-lv2.h.patch
new file mode 100644
index 000000000000..92483532e554
--- /dev/null
+++ b/media-libs/lv2/files/lv2-1.18.6-add-missing-lv2.h.patch
@@ -0,0 +1,14 @@
+diff --git a/meson.build b/meson.build
+index 14f9876..5a321ea 100644
+--- a/meson.build
++++ b/meson.build
+@@ -144,6 +144,9 @@ if get_option('old_headers')
+ include_prefix / 'core' / 'lv2_util.h',
+ )
+
++ # Special case lv2.h is also in top-level include directory
++ install_headers(files(include_prefix / 'core' / 'lv2.h'))
++
+ # Core headers are inconsistently in "lv2plug.in/ns/lv2core"
+ install_data(core_headers, install_dir: uri_include_dir / 'lv2core')
+
diff --git a/media-libs/lv2/lv2-1.18.6.ebuild b/media-libs/lv2/lv2-1.18.6-r1.ebuild
similarity index 96%
rename from media-libs/lv2/lv2-1.18.6.ebuild
rename to media-libs/lv2/lv2-1.18.6-r1.ebuild
index b6fd70616c65..938d7ce19a71 100644
--- a/media-libs/lv2/lv2-1.18.6.ebuild
+++ b/media-libs/lv2/lv2-1.18.6-r1.ebuild
@@ -45,6 +45,10 @@ RDEPEND="
')
"
+PATCHES=(
+ "${FILESDIR}/${P}-add-missing-lv2.h.patch"
+)
+
src_prepare() {
default
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/lv2/, media-libs/lv2/files/
@ 2023-05-09 18:20 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-05-09 18:20 UTC (permalink / raw
To: gentoo-commits
commit: cedca6fdea3efc1051e872d9ae1c3e0129293601
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 9 18:15:34 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 9 18:15:45 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cedca6fd
media-libs/lv2: wire up tests (and conditionally build them instead)
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../lv2/files/lv2-1.18.10-tests-optional.patch | 53 ++++++++++++++++++++++
media-libs/lv2/lv2-1.18.10.ebuild | 10 +++-
2 files changed, 62 insertions(+), 1 deletion(-)
diff --git a/media-libs/lv2/files/lv2-1.18.10-tests-optional.patch b/media-libs/lv2/files/lv2-1.18.10-tests-optional.patch
new file mode 100644
index 000000000000..dca3540cf171
--- /dev/null
+++ b/media-libs/lv2/files/lv2-1.18.10-tests-optional.patch
@@ -0,0 +1,53 @@
+https://gitlab.com/lv2/lv2/-/commit/8726bffa337e6374b04d0739df2812798b2c8858
+
+From 8726bffa337e6374b04d0739df2812798b2c8858 Mon Sep 17 00:00:00 2001
+From: David Robillard <d@drobilla.net>
+Date: Sat, 19 Nov 2022 17:49:14 -0500
+Subject: [PATCH] Avoid test directory entirely if tests are disabled
+
+--- a/meson.build
++++ b/meson.build
+@@ -346,7 +346,9 @@ endif
+ subdir('util')
+
+ # Data and build tests
+-subdir('test')
++if not get_option('tests').disabled()
++ subdir('test')
++endif
+
+ if not meson.is_subproject()
+ summary('Tests', not get_option('tests').disabled(), bool_yn: true)
+--- a/test/meson.build
++++ b/test/meson.build
+@@ -122,17 +122,15 @@ test_names = [
+ ]
+
+ # Build and run tests
+-if not get_option('tests').disabled()
+- foreach test_name : test_names
+- test(
++foreach test_name : test_names
++ test(
++ test_name,
++ executable(
+ test_name,
+- executable(
+- test_name,
+- files('test_@0@.c'.format(test_name)),
+- c_args: c_suppressions,
+- dependencies: lv2_dep,
+- ),
+- suite: 'unit',
+- )
+- endforeach
+-endif
++ files('test_@0@.c'.format(test_name)),
++ c_args: c_suppressions,
++ dependencies: lv2_dep,
++ ),
++ suite: 'unit',
++ )
++endforeach
+--
+GitLab
diff --git a/media-libs/lv2/lv2-1.18.10.ebuild b/media-libs/lv2/lv2-1.18.10.ebuild
index 4ebd59a52b56..575c13e2e43e 100644
--- a/media-libs/lv2/lv2-1.18.10.ebuild
+++ b/media-libs/lv2/lv2-1.18.10.ebuild
@@ -15,7 +15,8 @@ SRC_URI="https://lv2plug.in/spec/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
-IUSE="doc plugins"
+IUSE="doc plugins test"
+RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
BDEPEND="
@@ -24,6 +25,11 @@ BDEPEND="
app-doc/doxygen
dev-python/rdflib
)
+ test? (
+ dev-libs/serd
+ dev-libs/sord[tools]
+ dev-python/rdflib
+ )
"
CDEPEND="
${PYTHON_DEPS}
@@ -48,6 +54,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}/${PN}-1.18.6-add-missing-lv2.h.patch"
+ "${FILESDIR}/${P}-tests-optional.patch"
)
src_prepare() {
@@ -62,6 +69,7 @@ multilib_src_configure() {
-Dlv2dir="${EPREFIX}"/usr/$(get_libdir)/lv2
$(meson_native_use_feature doc docs)
$(meson_feature plugins)
+ $(meson_feature test tests)
)
meson_src_configure
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-09 18:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-05 13:34 [gentoo-commits] repo/gentoo:master commit in: media-libs/lv2/, media-libs/lv2/files/ Miroslav Šulc
-- strict thread matches above, loose matches on Subject: below --
2023-05-09 18:20 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox