aboutsummaryrefslogtreecommitdiffstats
path: root/community/gitea/allow-to-set-version.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-08-12 10:48:14 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2018-08-12 10:48:31 +0000
commit0188ee1d98c0b00c99ff5ac5640bf28ada7c0327 (patch)
treeee5310f350dbf8cd12e1a29a2ea1fed2da40d359 /community/gitea/allow-to-set-version.patch
parentc5fa14d6882d7da466d2bbf76e3ffb5b8744b806 (diff)
downloadaports-0188ee1d98c0b00c99ff5ac5640bf28ada7c0327.tar.bz2
aports-0188ee1d98c0b00c99ff5ac5640bf28ada7c0327.tar.xz
community/gitea: upgrade to 1.5.0
Diffstat (limited to 'community/gitea/allow-to-set-version.patch')
-rw-r--r--community/gitea/allow-to-set-version.patch24
1 files changed, 10 insertions, 14 deletions
diff --git a/community/gitea/allow-to-set-version.patch b/community/gitea/allow-to-set-version.patch
index d5f609ebb3..5f9321dc20 100644
--- a/community/gitea/allow-to-set-version.patch
+++ b/community/gitea/allow-to-set-version.patch
@@ -1,15 +1,11 @@
---- a/Makefile
-+++ b/Makefile
-@@ -23,7 +23,11 @@
- GOFLAGS := -i -v
- EXTRA_GOFLAGS ?=
+--- ./Makefile.orig
++++ ./Makefile
+@@ -30,7 +30,7 @@
+ else
+ VERSION ?= master
+ endif
+- GITEA_VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
++ GITEA_VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
+ endif
--LDFLAGS := -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')" -X "main.Tags=$(TAGS)"
-+ifeq ($(origin VERSION), undefined)
-+ VERSION=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
-+endif
-+
-+LDFLAGS += -X "main.Version=$(VERSION)"
-
- PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell $(GO) list ./... | grep -v /vendor/))
- SOURCES ?= $(shell find . -name "*.go" -type f)
+ LDFLAGS := -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"