aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2023-07-22 16:09:43 +0200
committerMarco Leise <marco.leise@gmx.de>2023-07-22 16:09:43 +0200
commit9e1a32ae03e9dd8798a95c6aab5953cd74646bdc (patch)
treea83ceb3c47d0f5047fe40ac67421074293121184 /eclass/dlang-compilers.eclass
parentFixed pkgcheck EclassReservedName errors, mostly symbols starting with two un... (diff)
downloaddlang-9e1a32ae03e9dd8798a95c6aab5953cd74646bdc.tar.gz
dlang-9e1a32ae03e9dd8798a95c6aab5953cd74646bdc.tar.bz2
dlang-9e1a32ae03e9dd8798a95c6aab5953cd74646bdc.zip
Fixed pkgcheck documentation errors.
Signed-off-by: Marco Leise <marco.leise@gmx.de>
Diffstat (limited to 'eclass/dlang-compilers.eclass')
-rw-r--r--eclass/dlang-compilers.eclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass
index 5d1c924..59ace86 100644
--- a/eclass/dlang-compilers.eclass
+++ b/eclass/dlang-compilers.eclass
@@ -8,6 +8,15 @@
if [[ ${_ECLASS_ONCE_DLANG_COMPILERS} != "recur -_+^+_- spank" ]] ; then
_ECLASS_ONCE_DLANG_COMPILERS="recur -_+^+_- spank"
+# @FUNCTION: dlang-compilers_declare_versions
+# @DESCRIPTION:
+# Exports an associative array of all available Dlang compiler versions and their corresponding language support as well
+# as the list of stable and unstable keywords. The language support is basically the DMD front-end version that the
+# compiler is based on. For DMD it will be the same as the compiler version, while for GDC and LDC2 it will differ.
+# The keywords are required, because we offer many compilers to be used for Dlang packages and pull them in as build
+# time dependencies. A stable package cannot depend on an unstable package though, so short of manually looking for
+# KEYWORDS in compiler ebuilds we just keep them up-to-date here. GDC in particular needs constant attention as
+# architectures get markes stable all the time.
dlang-compilers_declare_versions() {
declare -gA _dlang_dmd_frontend
declare -gA _dlang_gdc_frontend