summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2022-04-03 16:04:18 -0700
committerMatt Turner <mattst88@gentoo.org>2022-04-03 16:08:28 -0700
commitbc78701f54654622feff3694c7f66621b2acaa80 (patch)
tree94764481032a46faa74770aa8ba9d2a3e696f971 /eclass
parentsys-kernel/git-sources: drop 5.17_rc8 (diff)
downloadgentoo-bc78701f54654622feff3694c7f66621b2acaa80.tar.gz
gentoo-bc78701f54654622feff3694c7f66621b2acaa80.tar.bz2
gentoo-bc78701f54654622feff3694c7f66621b2acaa80.zip
xorg-3.eclass: Fix unsetting GIT_ECLASS
Apparently I cannot remember how bash works. Closes: https://bugs.gentoo.org/836727 Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/xorg-3.eclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
index 2ab80b6c0c6d..c68b3041629a 100644
--- a/eclass/xorg-3.eclass
+++ b/eclass/xorg-3.eclass
@@ -52,7 +52,7 @@ fi
# we need to inherit autotools first to get the deps
inherit autotools libtool multilib toolchain-funcs flag-o-matic \
${FONT_ECLASS} ${GIT_ECLASS}
-unset FONT_ECLASS
+unset FONT_ECLASS GIT_ECLASS
if [[ ${XORG_MULTILIB} == yes ]]; then
inherit multilib-minimal
@@ -119,7 +119,7 @@ HOMEPAGE="https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/${XORG_MOD
# to bz2.
: ${XORG_TARBALL_SUFFIX:="bz2"}
-if [[ -n ${GIT_ECLASS} ]]; then
+if [[ ${PV} == *9999* ]]; then
: ${EGIT_REPO_URI:="https://gitlab.freedesktop.org/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}.git"}
elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then
SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.${XORG_TARBALL_SUFFIX}"
@@ -266,7 +266,7 @@ xorg-3_pkg_setup() {
xorg-3_src_unpack() {
debug-print-function ${FUNCNAME} "$@"
- if [[ -n ${GIT_ECLASS} ]]; then
+ if [[ ${PV} == *9999* ]]; then
git-r3_src_unpack
else
unpack ${A}
@@ -535,5 +535,3 @@ create_fonts_dir() {
-- "${EROOT}/usr/share/fonts/${FONT_DIR}"
eend $?
}
-
-unset GIT_ECLASS