aboutsummaryrefslogtreecommitdiff
path: root/www/gitea/files/patch-Makefile
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2020-03-19 16:16:35 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2020-03-19 16:16:35 +0000
commita57fc6cd2c48297411718ad70a75e5b25a5dadaf (patch)
tree15ef60c635dd06218a02df61a2ce5c7f03297b75 /www/gitea/files/patch-Makefile
parent390518feb7f278cfc28e4e5f61569229535eb358 (diff)
downloadports-a57fc6cd2c48297411718ad70a75e5b25a5dadaf.tar.gz
ports-a57fc6cd2c48297411718ad70a75e5b25a5dadaf.zip
Notes
Diffstat (limited to 'www/gitea/files/patch-Makefile')
-rw-r--r--www/gitea/files/patch-Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/gitea/files/patch-Makefile b/www/gitea/files/patch-Makefile
new file mode 100644
index 000000000000..ead1c6269b0c
--- /dev/null
+++ b/www/gitea/files/patch-Makefile
@@ -0,0 +1,20 @@
+--- Makefile.orig 2020-03-06 17:18:36.000000000 +0000
++++ Makefile 2020-03-18 20:56:00.588102000 +0000
+@@ -123,7 +123,7 @@
+
+ .PHONY: go-check
+ go-check:
+- $(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?[[:space:]]' | tr '.' ' ');))
++ $(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | bsdgrep -Eo 'go[0-9\.]+' | tr -d go | tr '.' ' ');))
+ @if [ "$(GO_VERSION)" -lt "001011000" ]; then \
+ echo "Gitea requires Go 1.11.0 or greater to build. You can get it at https://golang.org/dl/"; \
+ exit 1; \
+@@ -138,7 +138,7 @@
+
+ .PHONY: node-check
+ node-check:
+- $(eval NODE_VERSION := $(shell printf "%03d%03d%03d" $(shell node -v | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?' | tr '.' ' ');))
++ $(eval NODE_VERSION := $(shell printf "%03d%03d%03d" $(shell node -v | grep -Eo '[0-9]+\.?[0-9]+\.?[0-9]+' | tr '.' ' ');))
+ $(eval NPM_MISSING := $(shell hash npm > /dev/null 2>&1 || echo 1))
+ @if [ "$(NODE_VERSION)" -lt "010000000" -o "$(NPM_MISSING)" = "1" ]; then \
+ echo "Gitea requires Node.js 10.0.0 or greater and npm to build. You can get it at https://nodejs.org/en/download/"; \