meson.eclass: update the example to use modern helper functions
authorMarek Szuba <marecki@gentoo.org>
Mon, 13 Apr 2020 21:42:38 +0000 (22:42 +0100)
committerMarek Szuba <marecki@gentoo.org>
Tue, 14 Apr 2020 09:33:18 +0000 (10:33 +0100)
We have now got meson_use and meson_feature yet the example still
used usex.

Signed-off-by: Marek Szuba <marecki@gentoo.org>
Reviewed-by: Mike Gilbert <floppym@gentoo.org>
eclass/meson.eclass

index 0932a7ed427f8ce59881e2a0b5fb8d827397d578..2bd1dc0176090509902c1d82e5aa985ba702529b 100644 (file)
@@ -23,9 +23,9 @@
 #
 # src_configure() {
 #      local emesonargs=(
-#              -Dqt4=$(usex qt4 true false)
-#              -Dthreads=$(usex threads true false)
-#              -Dtiff=$(usex tiff true false)
+#              $(meson_use qt4)
+#              $(meson_feature threads)
+#              $(meson_use bindist official_branding)
 #      )
 #      meson_src_configure
 # }