pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/waf



Module Name:    pkgsrc
Committed By:   kamil
Date:           Sat Jun 18 21:46:07 UTC 2016

Modified Files:
        pkgsrc/devel/waf: waf.mk

Log Message:
Add WAF_REPLACE_EXECUTABLE in waf.mk

The waf tool has been designed as a bundled 3rd party script in a software
tarball. For this reason some vendors freely modify these scripts and are
technically incompatible with the stock one.

Allow to use waf.mk goodies in such circumstances by specifying
"WAF_REPLACE_EXECUTABL=no" in a package's Makefile. Retain the default
behavior of replacing or copying waf into a package unchanged.

Reviewed by <wiz>


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/waf/waf.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/waf/waf.mk
diff -u pkgsrc/devel/waf/waf.mk:1.4 pkgsrc/devel/waf/waf.mk:1.5
--- pkgsrc/devel/waf/waf.mk:1.4 Sat Jun 18 10:30:14 2016
+++ pkgsrc/devel/waf/waf.mk     Sat Jun 18 21:46:07 2016
@@ -1,4 +1,4 @@
-# $NetBSD: waf.mk,v 1.4 2016/06/18 10:30:14 leot Exp $
+# $NetBSD: waf.mk,v 1.5 2016/06/18 21:46:07 kamil Exp $
 
 WAF_ENV+=      CC=${CC:Q}
 WAF_ENV+=      CFLAGS=${CFLAGS:Q}
@@ -23,8 +23,11 @@ WAF_HAS_MANDIR?=     yes
 WAF_ARGS+=             --mandir=${PREFIX}/${PKGMANDIR}
 .endif
 
+WAF_REPLACE_EXECUTABLE?=        yes
+.if !empty(WAF_REPLACE_EXECUTABLE:M[yY][eE][sS])
 post-extract:
        cp ${PREFIX}/bin/waf ${WRKSRC}
+.endif
 
 do-configure:
        cd ${WRKSRC} && ${SETENV} ${WAF_ENV} ./waf ${WAF_ARGS} ${WAF_CONFIGURE_ARGS} configure



Home | Main Index | Thread Index | Old Index