pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/kyua Fix "make install" in devel/kyua without "t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cea32e990940
branches:  trunk
changeset: 363398:cea32e990940
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Jun 07 22:57:02 2017 +0000

description:
Fix "make install" in devel/kyua without "tests" package option.

* Add a space after the "@comment" PLIST keyword inserted in the
  case where "tests" option is disabled.

* Only create the "${PREFIX}/tests" directory and install the
  Kyuafile there if the "tests" option is enabled.

diffstat:

 devel/kyua/Makefile |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 6cddd2988fba -r cea32e990940 devel/kyua/Makefile
--- a/devel/kyua/Makefile       Wed Jun 07 22:29:41 2017 +0000
+++ b/devel/kyua/Makefile       Wed Jun 07 22:57:02 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2017/04/22 21:03:31 adam Exp $
+# $NetBSD: Makefile,v 1.14 2017/06/07 22:57:02 jlam Exp $
 
 DISTNAME=      kyua-0.13
 PKGREVISION=   2
@@ -34,13 +34,16 @@
 .  include "../../devel/atf/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-atf
 PLIST_SUBST+=          TESTS=
+
+post-install: post-install-tests
 .else
 CONFIGURE_ARGS+=       --without-atf
-PLIST_SUBST+=          TESTS=@comment
+PLIST_SUBST+=          TESTS="@comment "
 .endif
 PRINT_PLIST_AWK+=      { sub("^tests/", "$${TESTS}tests/"); }
 
-post-install:
+.PHONY: post-install-tests
+post-install-tests:
        ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/tests
        ${INSTALL_DATA} ${WRKSRC}/examples/Kyuafile.top \
            ${DESTDIR}${PREFIX}/tests/Kyuafile



Home | Main Index | Thread Index | Old Index