meson.eclass: pass --wrap-mode nodownload to meson
authorMike Gilbert <floppym@gentoo.org>
Fri, 2 Jun 2017 15:38:24 +0000 (11:38 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 3 Jun 2017 16:50:00 +0000 (12:50 -0400)
Downloading sources in src_configure is a bad idea.

Ref: http://mesonbuild.com/FAQ.html#does-wrap-download-sources-behind-my-back

eclass/meson.eclass

index ad260eb65b0949e70318c26bc6f469be843d8cc8..bb60a16aad50be083dd2e82e4a7ff7a73f46bb47 100644 (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