summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-05 10:48:21 +0100
committerSam James <sam@gentoo.org>2023-05-05 11:13:44 +0100
commit58edb6ac6707d73f5a9dc8de0eacf43a9e0600d8 (patch)
tree1847d5e037298600ba07a1c23e60408bbf71773d /sys-apps/usbredir
parentdev-tcltk/snack: Stabilize 2.2.10-r12 ppc, #904626 (diff)
downloadgentoo-58edb6ac6707d73f5a9dc8de0eacf43a9e0600d8.tar.gz
gentoo-58edb6ac6707d73f5a9dc8de0eacf43a9e0600d8.tar.bz2
gentoo-58edb6ac6707d73f5a9dc8de0eacf43a9e0600d8.zip
sys-apps/usbredir: build tests conditionally, fix -Werror in some cases
-Werror would be added when WORKDIR is a git repo (which I do for testing). Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/usbredir')
-rw-r--r--sys-apps/usbredir/usbredir-0.13.0.ebuild19
1 files changed, 16 insertions, 3 deletions
diff --git a/sys-apps/usbredir/usbredir-0.13.0.ebuild b/sys-apps/usbredir/usbredir-0.13.0.ebuild
index 0edea99661f3..14d387242d5d 100644
--- a/sys-apps/usbredir/usbredir-0.13.0.ebuild
+++ b/sys-apps/usbredir/usbredir-0.13.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -13,12 +13,25 @@ S="${WORKDIR}"/usbredir-${P}
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ppc ppc64 ~riscv ~sparc x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
-DEPEND="dev-libs/glib:2
- virtual/libusb:1"
+DEPEND="
+ dev-libs/glib:2
+ virtual/libusb:1
+"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
+src_configure() {
+ local emesonargs=(
+ -Dgit_werror=disabled
+ $(meson_feature test tests)
+ )
+
+ meson_src_configure
+}
+
src_install() {
meson_src_install
dodoc -r docs/.