commit:     b4fe786e4168fdc2a4367d1f7014e446df6e9ef3
Author:     Niko Böckerman <niko.bockerman <AT> protonmail <DOT> com>
AuthorDate: Thu Feb  3 19:30:13 2022 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Thu Feb  3 19:36:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=b4fe786e

Remove old ldc2 versions after llvm:10 removal

All versions of LLVM in slot 10 have been removed from Gentoo tree.
Remove all ldc2 versions that don't support older LLVM versions. And
remove llvm:10 slot support from remaining ldc2 ebuilds.

Signed-off-by: Niko Böckerman <niko.bockerman <AT> protonmail.com>

 dev-lang/ldc2/Manifest              |  4 --
 dev-lang/ldc2/ldc2-1.20.1-r1.ebuild | 75 ----------------------------------
 dev-lang/ldc2/ldc2-1.20.1-r2.ebuild | 81 -------------------------------------
 dev-lang/ldc2/ldc2-1.21.0-r1.ebuild | 75 ----------------------------------
 dev-lang/ldc2/ldc2-1.21.0-r2.ebuild | 81 -------------------------------------
 dev-lang/ldc2/ldc2-1.22.0-r1.ebuild | 81 -------------------------------------
 dev-lang/ldc2/ldc2-1.22.0.ebuild    | 75 ----------------------------------
 dev-lang/ldc2/ldc2-1.23.0-r1.ebuild | 81 -------------------------------------
 dev-lang/ldc2/ldc2-1.23.0.ebuild    | 75 ----------------------------------
 dev-lang/ldc2/ldc2-1.24.0-r1.ebuild | 81 -------------------------------------
 dev-lang/ldc2/ldc2-1.24.0-r2.ebuild |  1 -
 dev-lang/ldc2/ldc2-1.24.0.ebuild    | 75 ----------------------------------
 dev-lang/ldc2/ldc2-1.25.1-r1.ebuild |  1 -
 dev-lang/ldc2/ldc2-1.25.1.ebuild    | 81 -------------------------------------
 dev-lang/ldc2/ldc2-1.26.0-r1.ebuild |  1 -
 dev-lang/ldc2/ldc2-1.26.0.ebuild    | 81 -------------------------------------
 eclass/dlang-compilers.eclass       |  4 --
 17 files changed, 953 deletions(-)

diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest
index 2a2a28f..4767a40 100644
--- a/dev-lang/ldc2/Manifest
+++ b/dev-lang/ldc2/Manifest
@@ -1,7 +1,3 @@
-DIST ldc-1.20.1-src.tar.gz 7283975 BLAKE2B 
ceb75e767562936606a5fc8383dd089a8daefd04e6fbcd8c6b360fccad50ecb7c6656d60c5351b11a3580d01bdb45101ed50ff6c7a9791af1fd25be160e9a037
 SHA512 
bb699999a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564ffffe83f720a62ab4f2c1942c2e26bb53
-DIST ldc-1.21.0-src.tar.gz 7355981 BLAKE2B 
46f3289e3e39d8c3b2a4985e1de4b5ef0e218188af5095cb2007bb83eec2bdaf6c590786d7b655a1f886c7f46703db2c049cf054c0fac438f943a702d3ac7a3b
 SHA512 
5759cb0ad04d2e62a075748b40efb30261c1ebefbc129024cddccf60ab59c211f20b87a0fe22b0a714a0435f53d54a722229cd8ad4ede7bfbf492809f23c679a
-DIST ldc-1.22.0-src.tar.gz 7434646 BLAKE2B 
317c9ebb3f75e495c939fadd24abbbea4baa2f9bf547894067d373adc48dfefd47c5bcc2136ac67ecd2bbbe2bf0cf879cfc9b978d9ff75d68ede7b0686dbfee9
 SHA512 
81c59e96b181fbe4a499d84a816ee4fbdbc8b6170fe87dc42e8a315e72d0be4a7f42b939084e5a529572987bcdc495926d83ca517aff8a7e5632767cf46d67d8
-DIST ldc-1.23.0-src.tar.gz 7438736 BLAKE2B 
42cad99be83ce6c8d08819e6e2c6aca161f1243a239da1e692551e7b140069aacb12bbf38b4dc727eab4814bba9d8dafbb16ea2c938ea49db907275c2149b2bd
 SHA512 
dbade9a120bb30d0c691f5c4c6c7e06be0cf3575b9bd63a921e9a768a22aef10293cc4058c7da348707856e1d363419c91e38a893d13408e9b5be4ae85544bb0
 DIST ldc-1.24.0-src.tar.gz 7522065 BLAKE2B 
65069835528466c4a39ebf08245fa7fcc9348ee620bab933d23157af0702c0ac4f5b3c1692b1eff83ba81ba2b8be6f086935527585c55e1ecb4ea42f965befe6
 SHA512 
c6f06d80617e5f7789f9e0e349a21e380d0bb6898983f0c2e2aaaec32e23ea0f69c039b6f0c03b8015782b837c890a6ff1051bfa332a6af7c79fc3479446dfb1
 DIST ldc-1.25.1-src.tar.gz 7625687 BLAKE2B 
02eacb06c334608d4b649d8fdffdef03cd1645a2d237063c888728c840a8c939df1c1ff9aefe3efab395358a7757dd287d1efa7a704b37f0b2661c8c1b5faaca
 SHA512 
a087f48ec8f559eea17f88f9c00893c84db17bfcb10590011f43d6d1573a30286067207133ad6d249897fe51cb22829c2ddf00bf23210f01aa059b1f87790fae
 DIST ldc-1.26.0-src.tar.gz 7650063 BLAKE2B 
d132dc842e27a93fc76810e17db1d67f856530ca7e6948c795ec5f943e4be32513b4a956aa9217df4acd45806bc81ff855ebab757aa3f6a1943fa7c394b3e3ce
 SHA512 
7bb2aa464f5ba834c07f67743f4af01db6588d56611d6c9e250a6908ebe93a0dcd9d3a79f8f252fc92eeb4826bfa62de6c51c4db03ff80e60a8d993e4451f573

diff --git a/dev-lang/ldc2/ldc2-1.20.1-r1.ebuild 
b/dev-lang/ldc2/ldc2-1.20.1-r1.ebuild
deleted file mode 100644
index e79765a..0000000
--- a/dev-lang/ldc2/ldc2-1.20.1-r1.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 3.9 through 10.
-RDEPEND="|| (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', 
"-relocation-model=pic"' )
-       cmake_src_configure
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.20.1-r2.ebuild 
b/dev-lang/ldc2/ldc2-1.20.1-r2.ebuild
deleted file mode 100644
index 5a2b5c6..0000000
--- a/dev-lang/ldc2/ldc2-1.20.1-r2.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 3.9 through 10.
-RDEPEND="dev-util/ninja
-       || (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' 
"-relocation-model=pic",' )
-       cmake_src_configure
-}
-
-d_src_compile()
-{
-       cmake_src_compile
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.21.0-r1.ebuild 
b/dev-lang/ldc2/ldc2-1.21.0-r1.ebuild
deleted file mode 100644
index e79765a..0000000
--- a/dev-lang/ldc2/ldc2-1.21.0-r1.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 3.9 through 10.
-RDEPEND="|| (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', 
"-relocation-model=pic"' )
-       cmake_src_configure
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.21.0-r2.ebuild 
b/dev-lang/ldc2/ldc2-1.21.0-r2.ebuild
deleted file mode 100644
index 5a2b5c6..0000000
--- a/dev-lang/ldc2/ldc2-1.21.0-r2.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 3.9 through 10.
-RDEPEND="dev-util/ninja
-       || (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' 
"-relocation-model=pic",' )
-       cmake_src_configure
-}
-
-d_src_compile()
-{
-       cmake_src_compile
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.22.0-r1.ebuild 
b/dev-lang/ldc2/ldc2-1.22.0-r1.ebuild
deleted file mode 100644
index 5a2b5c6..0000000
--- a/dev-lang/ldc2/ldc2-1.22.0-r1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 3.9 through 10.
-RDEPEND="dev-util/ninja
-       || (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' 
"-relocation-model=pic",' )
-       cmake_src_configure
-}
-
-d_src_compile()
-{
-       cmake_src_compile
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.22.0.ebuild b/dev-lang/ldc2/ldc2-1.22.0.ebuild
deleted file mode 100644
index e79765a..0000000
--- a/dev-lang/ldc2/ldc2-1.22.0.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 3.9 through 10.
-RDEPEND="|| (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', 
"-relocation-model=pic"' )
-       cmake_src_configure
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.23.0-r1.ebuild 
b/dev-lang/ldc2/ldc2-1.23.0-r1.ebuild
deleted file mode 100644
index 322787b..0000000
--- a/dev-lang/ldc2/ldc2-1.23.0-r1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 6.0 through 10.
-RDEPEND="dev-util/ninja
-       || (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' 
"-relocation-model=pic",' )
-       cmake_src_configure
-}
-
-d_src_compile()
-{
-       cmake_src_compile
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.23.0.ebuild b/dev-lang/ldc2/ldc2-1.23.0.ebuild
deleted file mode 100644
index 965d16c..0000000
--- a/dev-lang/ldc2/ldc2-1.23.0.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 6.0 through 10.
-RDEPEND="|| (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', 
"-relocation-model=pic"' )
-       cmake_src_configure
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.24.0-r1.ebuild 
b/dev-lang/ldc2/ldc2-1.24.0-r1.ebuild
deleted file mode 100644
index 322787b..0000000
--- a/dev-lang/ldc2/ldc2-1.24.0-r1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 6.0 through 10.
-RDEPEND="dev-util/ninja
-       || (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' 
"-relocation-model=pic",' )
-       cmake_src_configure
-}
-
-d_src_compile()
-{
-       cmake_src_compile
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild 
b/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild
index 181f1b5..3efe36f 100644
--- a/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild
+++ b/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild
@@ -21,7 +21,6 @@ IUSE="static-libs"
 # We support LLVM 6.0 through 10.
 RDEPEND="dev-util/ninja
        || (
-               sys-devel/llvm:10
                sys-devel/llvm:11
        )
        <sys-devel/llvm-12:=

diff --git a/dev-lang/ldc2/ldc2-1.24.0.ebuild b/dev-lang/ldc2/ldc2-1.24.0.ebuild
deleted file mode 100644
index 965d16c..0000000
--- a/dev-lang/ldc2/ldc2-1.24.0.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 6.0 through 10.
-RDEPEND="|| (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', 
"-relocation-model=pic"' )
-       cmake_src_configure
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild 
b/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild
index 1171863..a68973a 100644
--- a/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild
+++ b/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild
@@ -21,7 +21,6 @@ IUSE="static-libs"
 # We support LLVM 6.0 through 10.
 RDEPEND="dev-util/ninja
        || (
-               sys-devel/llvm:10
                sys-devel/llvm:11
                sys-devel/llvm:12
        )

diff --git a/dev-lang/ldc2/ldc2-1.25.1.ebuild b/dev-lang/ldc2/ldc2-1.25.1.ebuild
deleted file mode 100644
index 322787b..0000000
--- a/dev-lang/ldc2/ldc2-1.25.1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 6.0 through 10.
-RDEPEND="dev-util/ninja
-       || (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' 
"-relocation-model=pic",' )
-       cmake_src_configure
-}
-
-d_src_compile()
-{
-       cmake_src_compile
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/dev-lang/ldc2/ldc2-1.26.0-r1.ebuild 
b/dev-lang/ldc2/ldc2-1.26.0-r1.ebuild
index 1171863..a68973a 100644
--- a/dev-lang/ldc2/ldc2-1.26.0-r1.ebuild
+++ b/dev-lang/ldc2/ldc2-1.26.0-r1.ebuild
@@ -21,7 +21,6 @@ IUSE="static-libs"
 # We support LLVM 6.0 through 10.
 RDEPEND="dev-util/ninja
        || (
-               sys-devel/llvm:10
                sys-devel/llvm:11
                sys-devel/llvm:12
        )

diff --git a/dev-lang/ldc2/ldc2-1.26.0.ebuild b/dev-lang/ldc2/ldc2-1.26.0.ebuild
deleted file mode 100644
index 322787b..0000000
--- a/dev-lang/ldc2/ldc2-1.26.0.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit multilib-build cmake llvm
-
-MY_PV="${PV//_/-}"
-MY_P="ldc-${MY_PV}-src"
-SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz";
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="LLVM D Compiler"
-HOMEPAGE="https://github.com/ldc-developers/ldc";
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-LICENSE="BSD"
-SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
-
-IUSE="static-libs"
-
-# We support LLVM 6.0 through 10.
-RDEPEND="dev-util/ninja
-       || (
-               sys-devel/llvm:10
-       )
-       <sys-devel/llvm-11:=
-       >=app-eselect/eselect-dlang-20140709"
-DEPEND="${RDEPEND}"
-LLVM_MAX_SLOT=10
-PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
-
-# For now, we support amd64 multilib. Anyone is free to add more support here.
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-DLANG_VERSION_RANGE="2.075-"
-DLANG_PACKAGE_TYPE="single"
-
-inherit dlang
-
-detect_hardened() {
-       gcc --version | grep -o Hardened
-}
-
-src_prepare() {
-       cmake_src_prepare
-}
-
-d_src_configure() {
-       # Make sure libphobos2 is installed into ldc2's directory.
-       export LIBDIR_${ABI}="${LIBDIR_HOST}"
-       local mycmakeargs=(
-               -DD_VERSION=2
-               -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
-               -DD_COMPILER="${DMD}"
-               -DLDC_WITH_LLD=OFF
-       )
-       use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || 
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
-       use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
-       detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' 
"-relocation-model=pic",' )
-       cmake_src_configure
-}
-
-d_src_compile()
-{
-       cmake_src_compile
-}
-
-d_src_install() {
-       cmake_src_install
-
-       rm -rf "${ED}"/usr/share/bash-completion
-}
-
-pkg_postinst() {
-       # Update active ldc2
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}
-
-pkg_postrm() {
-       "${ROOT}"/usr/bin/eselect dlang update ldc2
-}

diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass
index f74b9a4..8810153 100644
--- a/eclass/dlang-compilers.eclass
+++ b/eclass/dlang-compilers.eclass
@@ -57,10 +57,6 @@ dlang-compilers_declare_versions() {
 
        # LDC
        __dlang_ldc2_frontend=(
-               ["1.20"]="2.090 amd64 ~arm ~arm64 ~ppc64 x86"
-               ["1.21"]="2.091 amd64 ~arm ~arm64 ~ppc64 x86"
-               ["1.22"]="2.092 amd64 ~arm ~arm64 ~ppc64 x86"
-               ["1.23"]="2.093 amd64 ~arm ~arm64 ~ppc64 x86"
                ["1.24"]="2.094 amd64 ~arm ~arm64 ~ppc64 x86"
                ["1.25"]="2.095 ~amd64 ~arm ~arm64 ~ppc64 ~x86"
                ["1.26"]="2.096 ~amd64 ~arm ~arm64 ~ppc64 ~x86"

Reply via email to