git: 4588423cca93 - main - www/deno: Fix parseFileInfo

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Fri, 08 Jul 2022 14:33:45 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4588423cca935e99b093ce56e24bb629c439d706

commit 4588423cca935e99b093ce56e24bb629c439d706
Author:     Guillaume Bibaut <yom@iaelu.net>
AuthorDate: 2022-07-08 06:38:53 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2022-07-08 14:25:43 +0000

    www/deno: Fix parseFileInfo
    
    Add freebsd to the list so that parseFileInfo returns correct information.
    
    PR:             265080
---
 www/deno/Makefile                         |  2 +-
 www/deno/files/patch-runtime_js_30__fs.js | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/www/deno/Makefile b/www/deno/Makefile
index b8310386db94..6a93836b5a13 100644
--- a/www/deno/Makefile
+++ b/www/deno/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	deno
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.23.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 
 MAINTAINER=	mikael@FreeBSD.org
diff --git a/www/deno/files/patch-runtime_js_30__fs.js b/www/deno/files/patch-runtime_js_30__fs.js
new file mode 100644
index 000000000000..3f6d98dbbeb3
--- /dev/null
+++ b/www/deno/files/patch-runtime_js_30__fs.js
@@ -0,0 +1,11 @@
+--- runtime/js/30_fs.js.orig	2022-07-08 08:14:40.658820000 +0200
++++ runtime/js/30_fs.js	2022-07-08 08:15:13.943527000 +0200
+@@ -178,7 +178,7 @@
+   }
+ 
+   function parseFileInfo(response) {
+-    const unix = build.os === "darwin" || build.os === "linux";
++    const unix = build.os === "darwin" || build.os === "freebsd" || build.os === "linux";
+     return {
+       isFile: response.isFile,
+       isDirectory: response.isDirectory,