[www-apps/gitea] sync from gentoo pr again

This commit is contained in:
Robert Förster 2019-12-10 13:48:44 +01:00
parent 1e39a76d0c
commit 6b44fcda9a

View File

@ -46,17 +46,24 @@ S="${WORKDIR}/${P}/src/${EGO_PN}"
PATCHES=( "${FILESDIR}/gitea-logflags.patch" ) PATCHES=( "${FILESDIR}/gitea-logflags.patch" )
gitea_make() { gitea_make() {
local my_tags=( local gitea_tags=(
bindata bindata
$(usev pam) $(usev pam)
$(usex sqlite 'sqlite sqlite_unlock_notify' '') $(usex sqlite 'sqlite sqlite_unlock_notify' '')
) )
local my_makeopt=( local gitea_settings=(
TAGS="${my_tags[@]}" "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/etc/app.ini"
LDFLAGS="-extldflags \"${LDFLAGS}\"" "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/var/lib/gitea/custom"
"-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
) )
[[ ${PV} != 9999* ]] && my_makeopt+=("DRONE_TAG=${MY_PV}") local makeenv=(
env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" "${my_makeopt[@]}" emake "$@" TAGS="${gitea_tags[@]}"
LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_vars[@]}"
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)"
)
[[ ${PV} != 9999* ]] && makeenv+=("DRONE_TAG=${PV}")
env "${makeenv[@]}" emake "$@"
} }
src_prepare() { src_prepare() {