mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Fix version number in resulting binary
Details: Gitea releases don't supply the release version number; the automatic method to obtain the version number in the Gitea build system only works when sources are checked out from git. PR: 222885 Submitted by: stb@lassitu.de (maintainer) MFH: 2017Q4
This commit is contained in:
parent
4e316ae2db
commit
8015e5ad44
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=452050
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= gitea
|
||||
PORTVERSION= 1.1.4
|
||||
PORTREVISION= 1
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= www
|
||||
|
||||
@ -40,6 +41,15 @@ CERT_VARS= GO_TAGS+=cert
|
||||
PAM_VARS= GO_TAGS+=pam
|
||||
SQLITE_VARS= GO_TAGS+=sqlite
|
||||
|
||||
post-patch:
|
||||
# Gitea releases don't supply the release version number; the
|
||||
# automatic method to obtain the version number in the Gitea build
|
||||
# system only works when sources are checked out from git.
|
||||
# See https://github.com/go-gitea/gitea/issues/1136#issuecomment-311622745
|
||||
${SED} -Ei .orig \
|
||||
-e 's#^(var Version = )"[^"]+"#\1"${PORTVERSION}"#' \
|
||||
${GO_WRKSRC}/main.go
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
|
||||
${MKDIR} ${STAGEDIR}${ETCDIR}/conf
|
||||
|
Loading…
Reference in New Issue
Block a user