meson.eclass: pass --wrap-mode nodownload to meson

Downloading sources in src_configure is a bad idea.

Ref: http://mesonbuild.com/FAQ.html#does-wrap-download-sources-behind-my-back
This commit is contained in:
Mike Gilbert
2017-06-03 12:50:00 -04:00
parent 1e2da8f885
commit 21e088e54e
+2 -1
View File
@@ -48,7 +48,7 @@ EXPORT_FUNCTIONS src_configure src_compile src_test src_install
if [[ -z ${_MESON_ECLASS} ]]; then
_MESON_ECLASS=1
DEPEND=">=dev-util/meson-0.39.1
DEPEND=">=dev-util/meson-0.40.0
>=dev-util/ninja-1.7.2"
# @ECLASS-VARIABLE: BUILD_DIR
@@ -126,6 +126,7 @@ meson_src_configure() {
--localstatedir "${EPREFIX}/var/lib"
--prefix "${EPREFIX}/usr"
--sysconfdir "${EPREFIX}/etc"
--wrap-mode nodownload
)
# Both meson(1) and _meson_create_cross_file need these