summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-02-29 14:30:41 +0100
committerFlorian Schmaus <flow@gentoo.org>2024-03-01 11:05:28 +0100
commit3a5e76c008efd4dbf1180f93d7cc7fb7cf80799c (patch)
tree7a410b1586322d8c5519bce9fd39a3724b7e052f /eclass
parentprofiles: mask texlive 2023 (diff)
downloadgentoo-3a5e76c008efd4dbf1180f93d7cc7fb7cf80799c.tar.gz
gentoo-3a5e76c008efd4dbf1180f93d7cc7fb7cf80799c.tar.bz2
gentoo-3a5e76c008efd4dbf1180f93d7cc7fb7cf80799c.zip
texlive-module.eclass: implicitly set TL_PV if not explicitly set
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/texlive-module.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index afcd4532975a..9fc4e619ff9b 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -85,6 +85,12 @@ HOMEPAGE="https://www.tug.org/texlive/"
IUSE="doc source"
+if [[ -z ${TL_PV} ]] \
+ && [[ ${EAPI} != 7 ]] \
+ && [[ ${CATEGORY} == dev-texlive ]]; then
+ TL_PV=$(ver_cut 1)
+fi
+
RDEPEND=">=app-text/texlive-core-${TL_PV:-${PV}}"
# We do not need anything from SYSROOT:
# Everything is built from the texlive install in /