[libcamera-devel,v1,3/4] package: gentoo: Add USE flags to build documentation and tests
diff mbox series

Message ID 20210824141546.10543-4-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • libcamera: Dust the Gentoo ebuild
Related show

Commit Message

Laurent Pinchart Aug. 24, 2021, 2:15 p.m. UTC
Add two new use flags, doc and test, to select building of documentation
and tests instead of unconditionally disabling them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 package/gentoo/media-libs/libcamera/libcamera-9999.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch
diff mbox series

diff --git a/package/gentoo/media-libs/libcamera/libcamera-9999.ebuild b/package/gentoo/media-libs/libcamera/libcamera-9999.ebuild
index 00bb0a501149..e627a09d50c7 100644
--- a/package/gentoo/media-libs/libcamera/libcamera-9999.ebuild
+++ b/package/gentoo/media-libs/libcamera/libcamera-9999.ebuild
@@ -14,7 +14,7 @@  EGIT_BRANCH="master"
 LICENSE="LGPL-2.1+"
 SLOT="0"
 KEYWORDS="*"
-IUSE="udev"
+IUSE="doc test udev"
 
 RDEPEND="
 	>=net-libs/gnutls-3.3:=
@@ -29,8 +29,8 @@  DEPEND="
 
 src_configure() {
 	local emesonargs=(
-		-Ddocumentation=false
-		-Dtests=false
+		$(meson_feature doc documentation)
+		$(meson_use test)
 	)
 	meson_src_configure
 }