diff options
author | Matt Turner <mattst88@gentoo.org> | 2019-08-12 15:10:34 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2019-08-13 21:07:54 -0700 |
commit | b73091c3ba676d43eb42c3d0e99d89aac7a9b2b5 (patch) | |
tree | 6efb49994357e7a3869e115164e444b3e9ba8a5e /eclass/xorg-3.eclass | |
parent | games-arcade/alienwave: fix building with ncurses[tinfo] (diff) | |
download | gentoo-b73091c3ba676d43eb42c3d0e99d89aac7a9b2b5.tar.gz gentoo-b73091c3ba676d43eb42c3d0e99d89aac7a9b2b5.tar.bz2 gentoo-b73091c3ba676d43eb42c3d0e99d89aac7a9b2b5.zip |
xorg-3.eclass: Add XORG_TARBALL_SUFFIX
To allow overriding the tarball type.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'eclass/xorg-3.eclass')
-rw-r--r-- | eclass/xorg-3.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass index f135058fba6f..217aadecb3b3 100644 --- a/eclass/xorg-3.eclass +++ b/eclass/xorg-3.eclass @@ -89,10 +89,16 @@ fi HOMEPAGE="https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}" +# @ECLASS-VARIABLE: XORG_TARBALL_SUFFIX +# @DESCRIPTION: +# Most X11 projects provide tarballs as tar.bz2 or tar.xz. This eclass defaults +# to bz2. +: ${XORG_TARBALL_SUFFIX:="bz2"} + if [[ -n ${GIT_ECLASS} ]]; 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.bz2" + SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.${XORG_TARBALL_SUFFIX}" fi : ${SLOT:=0} |