mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
media-libs/wivrn: Fix version display in live ebuild
Signed-off-by: Patrick Nicolas <patricknicolas@laposte.net>
This commit is contained in:
@@ -16,6 +16,7 @@ REQUIRED_USE="|| ( nvenc vaapi x264 )"
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/WiVRn/WiVRn.git"
|
||||
EGIT_MIN_CLONE_TYPE="single+tags"
|
||||
MONADO_REPO_URI="https://gitlab.freedesktop.org/monado/monado.git"
|
||||
else
|
||||
SRC_URI="
|
||||
@@ -84,6 +85,12 @@ if [[ ${PV} == 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
default_src_unpack
|
||||
|
||||
# export those before Monado is checked out
|
||||
export GIT_DESC=$(git -C "${EGIT_DIR}" describe "${EGIT_VERSION}" --tags --always)
|
||||
export GIT_COMMIT=${EGIT_VERSION}
|
||||
|
||||
# Only use those for the main repo
|
||||
unset EGIT_BRANCH EGIT_COMMIT
|
||||
local MONADO_COMMIT=$(cat "${P}/monado-rev")
|
||||
git-r3_fetch "${MONADO_REPO_URI}" "${MONADO_COMMIT}"
|
||||
git-r3_checkout "${MONADO_REPO_URI}" "${WORKDIR}/monado-src"
|
||||
@@ -105,10 +112,7 @@ fi
|
||||
multilib_src_configure() {
|
||||
use debug || append-cflags "-DNDEBUG"
|
||||
use debug || append-cxxflags "-DNDEBUG"
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
GIT_DESC=$(git describe --tags --always)
|
||||
GIT_COMMIT=$(git rev-parse HEAD)
|
||||
else
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
GIT_DESC=v${PV}
|
||||
GIT_COMMIT=v${PV}
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user