commit:     1bef1efc3214c5427748fe6d38cf530dd232a384
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Fri Aug  8 17:45:53 2025 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun Aug 24 15:29:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=1bef1efc

dev-util/gdmd: drop 11-r1, 12-r1, 13-r1

Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
Part-of: https://github.com/gentoo/dlang/pull/140
Closes: https://github.com/gentoo/dlang/pull/140
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>

 dev-util/gdmd/Manifest                     |  1 -
 dev-util/gdmd/files/gdmd-no-dmd-conf.patch | 12 -----
 dev-util/gdmd/gdmd-11-r1.ebuild            | 75 ------------------------------
 dev-util/gdmd/gdmd-12-r1.ebuild            | 75 ------------------------------
 dev-util/gdmd/gdmd-13-r1.ebuild            | 75 ------------------------------
 5 files changed, 238 deletions(-)

diff --git a/dev-util/gdmd/Manifest b/dev-util/gdmd/Manifest
index f3decb2..ba92727 100644
--- a/dev-util/gdmd/Manifest
+++ b/dev-util/gdmd/Manifest
@@ -1,2 +1 @@
-DIST gdmd-0.1.0.tar.gz 7794 BLAKE2B 
f613c1faf7abb9f72990e21dfdf21e69f4d83fde5d7d6a8a0ccac16a21c0cf39f2d03b2fba7f9b19009b1e2198413c99653635a32cbad48bb8b5dfbf5da1ebab
 SHA512 
54c1b56e252feb024d400a03df7d7b3e5942f98ce6542d77030659ec09bba3770426fc88e143550d24be8272dfa4ff510de8335badfbf9ae6e5f5b6063216fd3
 DIST gdmd-d14f7301b4bbae44996bc962121c9a1e7f7e3f12.tar.gz 9661 BLAKE2B 
2c4444660c288db69f876c2ef232d183f644dfd5c8c7a9f5cb2976893b42d7abe4dea03198525c197972949517a385effbbd6fc86b0a505b87002bf11c95a6b6
 SHA512 
aee9b829d9b0468727f0455974f43ca11746b69085298e48587e1e6a23efd3775b4d091c54a65693a39689a0950d28bd318bece10925486c7ff1bccf928f92a3

diff --git a/dev-util/gdmd/files/gdmd-no-dmd-conf.patch 
b/dev-util/gdmd/files/gdmd-no-dmd-conf.patch
deleted file mode 100644
index 30f2a09..0000000
--- a/dev-util/gdmd/files/gdmd-no-dmd-conf.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/dmd-script       2020-03-09 19:10:12.000000000 +0100
-+++ b/dmd-script       2020-03-09 19:03:57.320213593 +0100
-@@ -307,9 +307,6 @@
-     exit 0;
- }
-
--# Load dmd.conf before before parsing arguments.
--readINI();
--
- if ($ENV{DFLAGS}) {
-     push @ARGV, split /\s+/, $ENV{DFLAGS};
- }

diff --git a/dev-util/gdmd/gdmd-11-r1.ebuild b/dev-util/gdmd/gdmd-11-r1.ebuild
deleted file mode 100644
index f5a08a8..0000000
--- a/dev-util/gdmd/gdmd-11-r1.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit prefix
-
-DESCRIPTION="Wrapper script for gdc that emulates the dmd command"
-HOMEPAGE="https://www.gdcproject.org/";
-
-RELEASE="0.1.0"
-SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE}
 -> gdmd-${RELEASE}.tar.gz"
-S="${WORKDIR}/gdmd-script-${RELEASE}"
-LICENSE="GPL-3+"
-
-SLOT="${PV}"
-KEYWORDS="amd64 arm64 x86"
-RESTRICT="test" # no tests
-
-RDEPEND="
-       dev-lang/perl
-       sys-devel/gcc:${PV}[d]
-"
-
-PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
-
-src_prepare() {
-       hprefixify dmd-script
-       default
-}
-
-src_compile() {
-       :
-}
-
-src_install() {
-       local binPath="/usr/${CHOST}/gcc-bin/${PV}"
-       exeinto "${binPath}"
-       newexe dmd-script "${CHOST}-gdmd"
-       dosym "${CHOST}-gdmd" "${binPath}/gdmd"
-
-       dosym -r "${binPath}/${CHOST}-gdmd" "/usr/bin/${CHOST}-gdmd-${SLOT}"
-       dosym -r "${binPath}/${CHOST}-gdmd" "/usr/bin/gdmd-${SLOT}"
-}
-
-pkg_postinst() {
-       maybe_update_gcc_config
-}
-
-# We can't really call gcc-config in postrm since it won't know which
-# symlinks under /usr/bin were left by us. If it turns out to be a
-# problem we could try to remove the symlink manually.
-
-maybe_update_gcc_config() {
-       # Call gcc-config if the current configuration if for the same slot
-       # we are installing to. This is needed to make gdmd available in
-       # $PATH.
-
-       local CTARGET=${CTARGET:-${CHOST}}
-
-       # Logic taken from toolchain.eclass and simplified a little
-       local curr_config
-       curr_config=$(gcc-config -c ${CTARGET} 2>&1) || return 0
-
-       local curr_config_ver=$(gcc-config -S ${curr_config} | awk '{print $2}')
-       local curr_specs=$(gcc-config -S ${curr_config} | awk '{print $3}')
-
-       if [[ ${curr_config_ver} == ${SLOT} && ! ${curr_specs} ]]; then
-               # We should call gcc-config to make sure the addition of gdmd is
-               # propagated in $PATH. Don't do anything if not on a traditional
-               # layout, the risk of breaking something outweights having the
-               # script in $PATH.
-               gcc-config "${CTARGET}-${SLOT}"
-       fi
-}

diff --git a/dev-util/gdmd/gdmd-12-r1.ebuild b/dev-util/gdmd/gdmd-12-r1.ebuild
deleted file mode 100644
index f5a08a8..0000000
--- a/dev-util/gdmd/gdmd-12-r1.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit prefix
-
-DESCRIPTION="Wrapper script for gdc that emulates the dmd command"
-HOMEPAGE="https://www.gdcproject.org/";
-
-RELEASE="0.1.0"
-SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE}
 -> gdmd-${RELEASE}.tar.gz"
-S="${WORKDIR}/gdmd-script-${RELEASE}"
-LICENSE="GPL-3+"
-
-SLOT="${PV}"
-KEYWORDS="amd64 arm64 x86"
-RESTRICT="test" # no tests
-
-RDEPEND="
-       dev-lang/perl
-       sys-devel/gcc:${PV}[d]
-"
-
-PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
-
-src_prepare() {
-       hprefixify dmd-script
-       default
-}
-
-src_compile() {
-       :
-}
-
-src_install() {
-       local binPath="/usr/${CHOST}/gcc-bin/${PV}"
-       exeinto "${binPath}"
-       newexe dmd-script "${CHOST}-gdmd"
-       dosym "${CHOST}-gdmd" "${binPath}/gdmd"
-
-       dosym -r "${binPath}/${CHOST}-gdmd" "/usr/bin/${CHOST}-gdmd-${SLOT}"
-       dosym -r "${binPath}/${CHOST}-gdmd" "/usr/bin/gdmd-${SLOT}"
-}
-
-pkg_postinst() {
-       maybe_update_gcc_config
-}
-
-# We can't really call gcc-config in postrm since it won't know which
-# symlinks under /usr/bin were left by us. If it turns out to be a
-# problem we could try to remove the symlink manually.
-
-maybe_update_gcc_config() {
-       # Call gcc-config if the current configuration if for the same slot
-       # we are installing to. This is needed to make gdmd available in
-       # $PATH.
-
-       local CTARGET=${CTARGET:-${CHOST}}
-
-       # Logic taken from toolchain.eclass and simplified a little
-       local curr_config
-       curr_config=$(gcc-config -c ${CTARGET} 2>&1) || return 0
-
-       local curr_config_ver=$(gcc-config -S ${curr_config} | awk '{print $2}')
-       local curr_specs=$(gcc-config -S ${curr_config} | awk '{print $3}')
-
-       if [[ ${curr_config_ver} == ${SLOT} && ! ${curr_specs} ]]; then
-               # We should call gcc-config to make sure the addition of gdmd is
-               # propagated in $PATH. Don't do anything if not on a traditional
-               # layout, the risk of breaking something outweights having the
-               # script in $PATH.
-               gcc-config "${CTARGET}-${SLOT}"
-       fi
-}

diff --git a/dev-util/gdmd/gdmd-13-r1.ebuild b/dev-util/gdmd/gdmd-13-r1.ebuild
deleted file mode 100644
index f5a08a8..0000000
--- a/dev-util/gdmd/gdmd-13-r1.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit prefix
-
-DESCRIPTION="Wrapper script for gdc that emulates the dmd command"
-HOMEPAGE="https://www.gdcproject.org/";
-
-RELEASE="0.1.0"
-SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE}
 -> gdmd-${RELEASE}.tar.gz"
-S="${WORKDIR}/gdmd-script-${RELEASE}"
-LICENSE="GPL-3+"
-
-SLOT="${PV}"
-KEYWORDS="amd64 arm64 x86"
-RESTRICT="test" # no tests
-
-RDEPEND="
-       dev-lang/perl
-       sys-devel/gcc:${PV}[d]
-"
-
-PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
-
-src_prepare() {
-       hprefixify dmd-script
-       default
-}
-
-src_compile() {
-       :
-}
-
-src_install() {
-       local binPath="/usr/${CHOST}/gcc-bin/${PV}"
-       exeinto "${binPath}"
-       newexe dmd-script "${CHOST}-gdmd"
-       dosym "${CHOST}-gdmd" "${binPath}/gdmd"
-
-       dosym -r "${binPath}/${CHOST}-gdmd" "/usr/bin/${CHOST}-gdmd-${SLOT}"
-       dosym -r "${binPath}/${CHOST}-gdmd" "/usr/bin/gdmd-${SLOT}"
-}
-
-pkg_postinst() {
-       maybe_update_gcc_config
-}
-
-# We can't really call gcc-config in postrm since it won't know which
-# symlinks under /usr/bin were left by us. If it turns out to be a
-# problem we could try to remove the symlink manually.
-
-maybe_update_gcc_config() {
-       # Call gcc-config if the current configuration if for the same slot
-       # we are installing to. This is needed to make gdmd available in
-       # $PATH.
-
-       local CTARGET=${CTARGET:-${CHOST}}
-
-       # Logic taken from toolchain.eclass and simplified a little
-       local curr_config
-       curr_config=$(gcc-config -c ${CTARGET} 2>&1) || return 0
-
-       local curr_config_ver=$(gcc-config -S ${curr_config} | awk '{print $2}')
-       local curr_specs=$(gcc-config -S ${curr_config} | awk '{print $3}')
-
-       if [[ ${curr_config_ver} == ${SLOT} && ! ${curr_specs} ]]; then
-               # We should call gcc-config to make sure the addition of gdmd is
-               # propagated in $PATH. Don't do anything if not on a traditional
-               # layout, the risk of breaking something outweights having the
-               # script in $PATH.
-               gcc-config "${CTARGET}-${SLOT}"
-       fi
-}

Reply via email to