Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 14 Aug 2019 04:08:21
Message-Id: 1565755674.b73091c3ba676d43eb42c3d0e99d89aac7a9b2b5.mattst88@gentoo
1 commit: b73091c3ba676d43eb42c3d0e99d89aac7a9b2b5
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 12 22:10:34 2019 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 14 04:07:54 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b73091c3
7
8 xorg-3.eclass: Add XORG_TARBALL_SUFFIX
9
10 To allow overriding the tarball type.
11
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 eclass/xorg-3.eclass | 8 +++++++-
15 1 file changed, 7 insertions(+), 1 deletion(-)
16
17 diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
18 index f135058fba6..217aadecb3b 100644
19 --- a/eclass/xorg-3.eclass
20 +++ b/eclass/xorg-3.eclass
21 @@ -89,10 +89,16 @@ fi
22
23 HOMEPAGE="https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}"
24
25 +# @ECLASS-VARIABLE: XORG_TARBALL_SUFFIX
26 +# @DESCRIPTION:
27 +# Most X11 projects provide tarballs as tar.bz2 or tar.xz. This eclass defaults
28 +# to bz2.
29 +: ${XORG_TARBALL_SUFFIX:="bz2"}
30 +
31 if [[ -n ${GIT_ECLASS} ]]; then
32 : ${EGIT_REPO_URI:="https://gitlab.freedesktop.org/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}.git"}
33 elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then
34 - SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.bz2"
35 + SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.${XORG_TARBALL_SUFFIX}"
36 fi
37
38 : ${SLOT:=0}