pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/meson Honour MAKE_JOBS in install and test stages.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/54e8e9a28526
branches:  trunk
changeset: 448665:54e8e9a28526
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Mar 12 08:39:10 2021 +0000

description:
Honour MAKE_JOBS in install and test stages.

from Paul Ripke via tech-pkg.

diffstat:

 devel/meson/build.mk |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e7153f5553f1 -r 54e8e9a28526 devel/meson/build.mk
--- a/devel/meson/build.mk      Fri Mar 12 08:05:32 2021 +0000
+++ b/devel/meson/build.mk      Fri Mar 12 08:39:10 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: build.mk,v 1.6 2020/12/04 18:23:05 nia Exp $
+# $NetBSD: build.mk,v 1.7 2021/03/12 08:39:10 nia Exp $
 
 BUILD_DEPENDS+=        meson-[0-9]*:../../devel/meson
 
@@ -38,13 +38,15 @@
        if [ -f ${WRKSRC}/meson_post_install.py ]; then         \
                ${CHMOD} +x ${WRKSRC}/meson_post_install.py;    \
        fi
-       cd ${WRKSRC} && cd ${d} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} ninja -C output install
+       cd ${WRKSRC} && cd ${d} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
+           ninja -j ${_MAKE_JOBS_N:U1} -C output install
 .endfor
 
 do-test: meson-test
 meson-test:
 .for d in ${TEST_DIRS}
-       cd ${WRKSRC} && cd ${d} && ${SETENV} ${TEST_ENV} ninja -C output test
+       cd ${WRKSRC} && cd ${d} && ${SETENV} ${TEST_ENV} \
+           ninja -j ${_MAKE_JOBS_N:U1} -C output test
 .endfor
 
 .include "../../lang/python/application.mk"



Home | Main Index | Thread Index | Old Index