ports/cad/calculix-ccx/files/patch-date.pl
rsmith cc850c375b cad/calculix-ccx: Update to 2.22
Use {DOCS,EXAMPLES}_DISTFILES instead of testing PORT_OPTIONS.
Add do-test target.
Add LICENSE_FILE.

PR:		282051
Approved by:	submitter is maintainer
2024-10-21 07:06:25 +02:00

11 lines
263 B
Perl

--- date.pl.orig 2024-08-05 17:13:21 UTC
+++ date.pl
@@ -1,6 +1,7 @@
#!/usr/bin/env perl
-chomp($date=`date`);
+use POSIX qw(strftime);
+chomp(my $date = strftime("%Y-%m-%d", gmtime($ENV{SOURCE_DATE_EPOCH} || time)));
# inserting the date into ccx_2.22.c