On Fri, Oct 04, 2019 at 01:09:26PM +0100, Stuart Henderson wrote:
> Please either use DISTFILES=filename{url}sufx format or a subdirectory,
> rather than clobbering an existing distfile which causes problems for
> bulk builds (especially if doing current and -stable from the same files).
Good point;  like this?


Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/jq/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile    12 Jul 2019 20:50:00 -0000      1.12
+++ Makefile    4 Oct 2019 12:32:00 -0000
@@ -4,6 +4,10 @@ COMMENT =              lightweight and flexible comm
 
 V =                    1.6
 DISTNAME =             jq-$V
+REVISION =             0
+
+# prevent clobbering existing distfile
+DISTFILES =            ${DISTNAME}-new{${DISTNAME}}${EXTRACT_SUFX}
 
 SHARED_LIBS += jq                        1.0 # 1.4
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/jq/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo    2 Nov 2018 16:41:29 -0000       1.4
+++ distinfo    4 Oct 2019 12:31:29 -0000
@@ -1,2 +1,2 @@
-SHA256 (jq-1.6.tar.gz) = liV4TPLk/ZhC8dQHaBzkh4tbDc3bzTHGE1EUowxx5qg=
-SIZE (jq-1.6.tar.gz) = 1191856
+SHA256 (jq-1.6-new.tar.gz) = XejI4pqqP7nMa0e7JymfJxNU67clFOOsytx9OLW7qnI=
+SIZE (jq-1.6-new.tar.gz) = 1750584

Reply via email to