* [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/
@ 2024-06-02 5:29 Horodniceanu Andrei
0 siblings, 0 replies; 10+ messages in thread
From: Horodniceanu Andrei @ 2024-06-02 5:29 UTC (permalink / raw
To: gentoo-commits
commit: 35c179492506ae06f74e9213dbebc403ca57c690
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sat Jun 1 11:24:53 2024 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Jun 1 16:54:01 2024 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=35c17949
dev-util/gdmd: add 14
Additionally:
- use symlinks instead of hardlinks for gdmd -> ${CHOST}-gdmd
- call gcc-config in pkg_postinst if the selected configuration matches
this package's SLOT. This creates a symlink under /usr/bin which is
required for rdmd from dev-util/dlang-tools to find the default compiler.
- restrict tests as there aren't any.
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
dev-util/gdmd/gdmd-14.ebuild | 62 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/dev-util/gdmd/gdmd-14.ebuild b/dev-util/gdmd/gdmd-14.ebuild
new file mode 100644
index 0000000..fc256ad
--- /dev/null
+++ b/dev-util/gdmd/gdmd-14.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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="sys-devel/gcc:${PV}[d]"
+
+PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
+
+src_compile() {
+ :
+}
+
+src_install() {
+ local binPath="/usr/${CHOST}/gcc-bin/${PV}"
+ exeinto "${binPath}"
+ newexe dmd-script "${CHOST}-gdmd"
+ dosym "${CHOST}-gdmd" "${binPath}/gdmd"
+}
+
+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
+}
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/
@ 2024-07-14 19:44 Horodniceanu Andrei
0 siblings, 0 replies; 10+ messages in thread
From: Horodniceanu Andrei @ 2024-07-14 19:44 UTC (permalink / raw
To: gentoo-commits
commit: a6a1eab72c6dff8fabf458235967ba4971b5ccca
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sun Jul 14 16:10:49 2024 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun Jul 14 16:36:03 2024 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=a6a1eab7
dev-util/gdmd: unkeyword 11 for ppc64
Follow up the <sys-devel/gcc-12 package.mask for the ppc64le profile.
This makes pkgcheck happy again.
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
dev-util/gdmd/gdmd-11.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-util/gdmd/gdmd-11.ebuild b/dev-util/gdmd/gdmd-11.ebuild
index 8943312..ae3142e 100644
--- a/dev-util/gdmd/gdmd-11.ebuild
+++ b/dev-util/gdmd/gdmd-11.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -8,7 +8,7 @@ HOMEPAGE="https://www.gdcproject.org/"
LICENSE="GPL-3+"
SLOT="${PV}"
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 x86"
+KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~m68k ~mips ppc ~riscv ~s390 x86"
RDEPEND="sys-devel/gcc:${PV}[d]"
RELEASE="0.1.0"
SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE} -> gdmd-${RELEASE}.tar.gz"
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/
@ 2025-05-12 4:01 Horodniceanu Andrei
0 siblings, 0 replies; 10+ messages in thread
From: Horodniceanu Andrei @ 2025-05-12 4:01 UTC (permalink / raw
To: gentoo-commits
commit: 48e882f05f296251cb8c402cc394eae7d2056248
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sat Apr 26 13:00:25 2025 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Apr 26 13:00:25 2025 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=48e882f0
dev-util/gdmd: Drop untested keywords from older slots
gdmd used to inherit the KEYWORDS from the gcc:${SLOT} it
mirrored. There is little value in having this little script be
keyworded for arches that no-one is using gdc for and it only leads to
the KEYWORDS becoming out of date as old gcc versions are masked in
::gentoo.
Only keep a reasonable subset of the KEYWORDS, much like it is done in
newer versions of the package.
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
dev-util/gdmd/gdmd-11.ebuild | 4 ++--
dev-util/gdmd/gdmd-12.ebuild | 4 ++--
dev-util/gdmd/gdmd-13.ebuild | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dev-util/gdmd/gdmd-11.ebuild b/dev-util/gdmd/gdmd-11.ebuild
index ae3142e..57d23e3 100644
--- a/dev-util/gdmd/gdmd-11.ebuild
+++ b/dev-util/gdmd/gdmd-11.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -8,7 +8,7 @@ HOMEPAGE="https://www.gdcproject.org/"
LICENSE="GPL-3+"
SLOT="${PV}"
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~m68k ~mips ppc ~riscv ~s390 x86"
+KEYWORDS="amd64 arm64 x86"
RDEPEND="sys-devel/gcc:${PV}[d]"
RELEASE="0.1.0"
SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE} -> gdmd-${RELEASE}.tar.gz"
diff --git a/dev-util/gdmd/gdmd-12.ebuild b/dev-util/gdmd/gdmd-12.ebuild
index 6645a52..57d23e3 100644
--- a/dev-util/gdmd/gdmd-12.ebuild
+++ b/dev-util/gdmd/gdmd-12.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -8,7 +8,7 @@ HOMEPAGE="https://www.gdcproject.org/"
LICENSE="GPL-3+"
SLOT="${PV}"
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~m68k ~mips ~ppc ppc64 ~riscv ~s390 x86"
+KEYWORDS="amd64 arm64 x86"
RDEPEND="sys-devel/gcc:${PV}[d]"
RELEASE="0.1.0"
SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE} -> gdmd-${RELEASE}.tar.gz"
diff --git a/dev-util/gdmd/gdmd-13.ebuild b/dev-util/gdmd/gdmd-13.ebuild
index 630df46..57d23e3 100644
--- a/dev-util/gdmd/gdmd-13.ebuild
+++ b/dev-util/gdmd/gdmd-13.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -8,7 +8,7 @@ HOMEPAGE="https://www.gdcproject.org/"
LICENSE="GPL-3+"
SLOT="${PV}"
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 x86"
+KEYWORDS="amd64 arm64 x86"
RDEPEND="sys-devel/gcc:${PV}[d]"
RELEASE="0.1.0"
SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE} -> gdmd-${RELEASE}.tar.gz"
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/
@ 2025-05-12 4:01 Horodniceanu Andrei
0 siblings, 0 replies; 10+ messages in thread
From: Horodniceanu Andrei @ 2025-05-12 4:01 UTC (permalink / raw
To: gentoo-commits
commit: b9d10dab6e506dac925904790cd883615fc51759
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sat Apr 26 13:07:46 2025 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun May 11 16:03:14 2025 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=b9d10dab
dev-util/gdmd: add 15
Additional features:
- Install gdmd-VER and CHOST-gdmd-VER convenience symlinks
Additional fixes:
- Add missing dev-lang/perl RDEPEND
- Correctly handle prefix systems by invoking the right perl
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
dev-util/gdmd/gdmd-15.ebuild | 75 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/dev-util/gdmd/gdmd-15.ebuild b/dev-util/gdmd/gdmd-15.ebuild
new file mode 100644
index 0000000..d543b38
--- /dev/null
+++ b/dev-util/gdmd/gdmd-15.ebuild
@@ -0,0 +1,75 @@
+# 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
+}
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/
@ 2025-05-12 4:01 Horodniceanu Andrei
0 siblings, 0 replies; 10+ messages in thread
From: Horodniceanu Andrei @ 2025-05-12 4:01 UTC (permalink / raw
To: gentoo-commits
commit: 4ea9bacc261f2b470f85bd76c644f05c025e8a21
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sun Apr 27 20:59:16 2025 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun May 11 16:03:35 2025 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=4ea9bacc
dev-util/gdmd: backport gdmd-15 fixes
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
.../gdmd/{gdmd-14.ebuild => gdmd-11-r1.ebuild} | 21 +++++++++++++----
dev-util/gdmd/gdmd-11.ebuild | 27 ----------------------
.../gdmd/{gdmd-14.ebuild => gdmd-12-r1.ebuild} | 21 +++++++++++++----
dev-util/gdmd/gdmd-12.ebuild | 27 ----------------------
.../gdmd/{gdmd-14.ebuild => gdmd-13-r1.ebuild} | 21 +++++++++++++----
dev-util/gdmd/gdmd-13.ebuild | 27 ----------------------
.../gdmd/{gdmd-14.ebuild => gdmd-14-r1.ebuild} | 19 ++++++++++++---
7 files changed, 67 insertions(+), 96 deletions(-)
diff --git a/dev-util/gdmd/gdmd-14.ebuild b/dev-util/gdmd/gdmd-11-r1.ebuild
similarity index 81%
copy from dev-util/gdmd/gdmd-14.ebuild
copy to dev-util/gdmd/gdmd-11-r1.ebuild
index fc256ad..f5a08a8 100644
--- a/dev-util/gdmd/gdmd-14.ebuild
+++ b/dev-util/gdmd/gdmd-11-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2024 Gentoo Authors
+# 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/"
@@ -12,13 +14,21 @@ S="${WORKDIR}/gdmd-script-${RELEASE}"
LICENSE="GPL-3+"
SLOT="${PV}"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 arm64 x86"
RESTRICT="test" # no tests
-RDEPEND="sys-devel/gcc:${PV}[d]"
+RDEPEND="
+ dev-lang/perl
+ sys-devel/gcc:${PV}[d]
+"
PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
+src_prepare() {
+ hprefixify dmd-script
+ default
+}
+
src_compile() {
:
}
@@ -28,6 +38,9 @@ src_install() {
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() {
@@ -52,7 +65,7 @@ maybe_update_gcc_config() {
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
+ 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
diff --git a/dev-util/gdmd/gdmd-11.ebuild b/dev-util/gdmd/gdmd-11.ebuild
deleted file mode 100644
index 57d23e3..0000000
--- a/dev-util/gdmd/gdmd-11.ebuild
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DESCRIPTION="Wrapper script for gdc that emulates the dmd command"
-HOMEPAGE="https://www.gdcproject.org/"
-LICENSE="GPL-3+"
-
-SLOT="${PV}"
-KEYWORDS="amd64 arm64 x86"
-RDEPEND="sys-devel/gcc:${PV}[d]"
-RELEASE="0.1.0"
-SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE} -> gdmd-${RELEASE}.tar.gz"
-PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
-S="${WORKDIR}/gdmd-script-${RELEASE}"
-
-src_compile() {
- :
-}
-
-src_install() {
- local binPath="usr/${CHOST}/gcc-bin/${PV}"
- exeinto "${binPath}"
- newexe dmd-script "${CHOST}-gdmd"
- ln -f "${D}/${binPath}/${CHOST}-gdmd" "${D}/${binPath}/gdmd" || die "Could not create 'gdmd' hardlink"
-}
diff --git a/dev-util/gdmd/gdmd-14.ebuild b/dev-util/gdmd/gdmd-12-r1.ebuild
similarity index 81%
copy from dev-util/gdmd/gdmd-14.ebuild
copy to dev-util/gdmd/gdmd-12-r1.ebuild
index fc256ad..f5a08a8 100644
--- a/dev-util/gdmd/gdmd-14.ebuild
+++ b/dev-util/gdmd/gdmd-12-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2024 Gentoo Authors
+# 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/"
@@ -12,13 +14,21 @@ S="${WORKDIR}/gdmd-script-${RELEASE}"
LICENSE="GPL-3+"
SLOT="${PV}"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 arm64 x86"
RESTRICT="test" # no tests
-RDEPEND="sys-devel/gcc:${PV}[d]"
+RDEPEND="
+ dev-lang/perl
+ sys-devel/gcc:${PV}[d]
+"
PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
+src_prepare() {
+ hprefixify dmd-script
+ default
+}
+
src_compile() {
:
}
@@ -28,6 +38,9 @@ src_install() {
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() {
@@ -52,7 +65,7 @@ maybe_update_gcc_config() {
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
+ 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
diff --git a/dev-util/gdmd/gdmd-12.ebuild b/dev-util/gdmd/gdmd-12.ebuild
deleted file mode 100644
index 57d23e3..0000000
--- a/dev-util/gdmd/gdmd-12.ebuild
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DESCRIPTION="Wrapper script for gdc that emulates the dmd command"
-HOMEPAGE="https://www.gdcproject.org/"
-LICENSE="GPL-3+"
-
-SLOT="${PV}"
-KEYWORDS="amd64 arm64 x86"
-RDEPEND="sys-devel/gcc:${PV}[d]"
-RELEASE="0.1.0"
-SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE} -> gdmd-${RELEASE}.tar.gz"
-PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
-S="${WORKDIR}/gdmd-script-${RELEASE}"
-
-src_compile() {
- :
-}
-
-src_install() {
- local binPath="usr/${CHOST}/gcc-bin/${PV}"
- exeinto "${binPath}"
- newexe dmd-script "${CHOST}-gdmd"
- ln -f "${D}/${binPath}/${CHOST}-gdmd" "${D}/${binPath}/gdmd" || die "Could not create 'gdmd' hardlink"
-}
diff --git a/dev-util/gdmd/gdmd-14.ebuild b/dev-util/gdmd/gdmd-13-r1.ebuild
similarity index 81%
copy from dev-util/gdmd/gdmd-14.ebuild
copy to dev-util/gdmd/gdmd-13-r1.ebuild
index fc256ad..f5a08a8 100644
--- a/dev-util/gdmd/gdmd-14.ebuild
+++ b/dev-util/gdmd/gdmd-13-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2024 Gentoo Authors
+# 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/"
@@ -12,13 +14,21 @@ S="${WORKDIR}/gdmd-script-${RELEASE}"
LICENSE="GPL-3+"
SLOT="${PV}"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 arm64 x86"
RESTRICT="test" # no tests
-RDEPEND="sys-devel/gcc:${PV}[d]"
+RDEPEND="
+ dev-lang/perl
+ sys-devel/gcc:${PV}[d]
+"
PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
+src_prepare() {
+ hprefixify dmd-script
+ default
+}
+
src_compile() {
:
}
@@ -28,6 +38,9 @@ src_install() {
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() {
@@ -52,7 +65,7 @@ maybe_update_gcc_config() {
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
+ 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
diff --git a/dev-util/gdmd/gdmd-13.ebuild b/dev-util/gdmd/gdmd-13.ebuild
deleted file mode 100644
index 57d23e3..0000000
--- a/dev-util/gdmd/gdmd-13.ebuild
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DESCRIPTION="Wrapper script for gdc that emulates the dmd command"
-HOMEPAGE="https://www.gdcproject.org/"
-LICENSE="GPL-3+"
-
-SLOT="${PV}"
-KEYWORDS="amd64 arm64 x86"
-RDEPEND="sys-devel/gcc:${PV}[d]"
-RELEASE="0.1.0"
-SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE} -> gdmd-${RELEASE}.tar.gz"
-PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
-S="${WORKDIR}/gdmd-script-${RELEASE}"
-
-src_compile() {
- :
-}
-
-src_install() {
- local binPath="usr/${CHOST}/gcc-bin/${PV}"
- exeinto "${binPath}"
- newexe dmd-script "${CHOST}-gdmd"
- ln -f "${D}/${binPath}/${CHOST}-gdmd" "${D}/${binPath}/gdmd" || die "Could not create 'gdmd' hardlink"
-}
diff --git a/dev-util/gdmd/gdmd-14.ebuild b/dev-util/gdmd/gdmd-14-r1.ebuild
similarity index 82%
rename from dev-util/gdmd/gdmd-14.ebuild
rename to dev-util/gdmd/gdmd-14-r1.ebuild
index fc256ad..d543b38 100644
--- a/dev-util/gdmd/gdmd-14.ebuild
+++ b/dev-util/gdmd/gdmd-14-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2024 Gentoo Authors
+# 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/"
@@ -15,10 +17,18 @@ SLOT="${PV}"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="test" # no tests
-RDEPEND="sys-devel/gcc:${PV}[d]"
+RDEPEND="
+ dev-lang/perl
+ sys-devel/gcc:${PV}[d]
+"
PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
+src_prepare() {
+ hprefixify dmd-script
+ default
+}
+
src_compile() {
:
}
@@ -28,6 +38,9 @@ src_install() {
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() {
@@ -52,7 +65,7 @@ maybe_update_gcc_config() {
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
+ 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
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/
@ 2025-07-02 3:12 Horodniceanu Andrei
0 siblings, 0 replies; 10+ messages in thread
From: Horodniceanu Andrei @ 2025-07-02 3:12 UTC (permalink / raw
To: gentoo-commits
commit: 63d350bee9c4e604cfe7aa3068755d547e297497
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Jul 2 03:09:05 2025 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Jul 2 03:09:05 2025 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=63d350be
dev-util/gdmd: add 13.20250517
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
dev-util/gdmd/gdmd-13.20250517.ebuild | 75 +++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/dev-util/gdmd/gdmd-13.20250517.ebuild b/dev-util/gdmd/gdmd-13.20250517.ebuild
new file mode 100644
index 0000000..7c5971a
--- /dev/null
+++ b/dev-util/gdmd/gdmd-13.20250517.ebuild
@@ -0,0 +1,75 @@
+# 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/"
+
+COMMIT="b3b72f59252f09275941f706806ed80d68308db1"
+SRC_URI="https://github.com/D-Programming-GDC/gdmd/archive/${COMMIT}.tar.gz -> gdmd-${COMMIT}.tar.gz"
+S="${WORKDIR}/gdmd-${COMMIT}"
+LICENSE="GPL-3+"
+
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm64 ~x86"
+RESTRICT="test" # no tests
+
+RDEPEND="
+ dev-lang/perl
+ sys-devel/gcc:${SLOT}[d]
+"
+
+PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
+
+src_prepare() {
+ hprefixify dmd-script
+ default
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ local binPath="/usr/${CHOST}/gcc-bin/${SLOT}"
+ 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
+}
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/
@ 2025-07-02 3:12 Horodniceanu Andrei
0 siblings, 0 replies; 10+ messages in thread
From: Horodniceanu Andrei @ 2025-07-02 3:12 UTC (permalink / raw
To: gentoo-commits
commit: 9272a9eb2ef7b5a5129ded42b3e2add3be6b983e
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Jul 2 03:05:04 2025 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Jul 2 03:05:04 2025 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=9272a9eb
dev-util/gdmd: add github upstream metadata
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
dev-util/gdmd/metadata.xml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dev-util/gdmd/metadata.xml b/dev-util/gdmd/metadata.xml
index 920817d..3b8289c 100644
--- a/dev-util/gdmd/metadata.xml
+++ b/dev-util/gdmd/metadata.xml
@@ -1,3 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata/>
\ No newline at end of file
+<pkgmetadata>
+ <upstream>
+ <remote-id type="github">D-Programming-GDC/gdmd</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/
@ 2025-07-02 3:12 Horodniceanu Andrei
0 siblings, 0 replies; 10+ messages in thread
From: Horodniceanu Andrei @ 2025-07-02 3:12 UTC (permalink / raw
To: gentoo-commits
commit: 8f80f5bada2ac38ec4cd93338c130f39e3b88cbd
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Jul 2 03:08:35 2025 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Jul 2 03:08:35 2025 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=8f80f5ba
dev-util/gdmd: add 14.20250517
Closes: https://bugs.gentoo.org/959368
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
dev-util/gdmd/gdmd-14.20250517.ebuild | 75 +++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/dev-util/gdmd/gdmd-14.20250517.ebuild b/dev-util/gdmd/gdmd-14.20250517.ebuild
new file mode 100644
index 0000000..7c5971a
--- /dev/null
+++ b/dev-util/gdmd/gdmd-14.20250517.ebuild
@@ -0,0 +1,75 @@
+# 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/"
+
+COMMIT="b3b72f59252f09275941f706806ed80d68308db1"
+SRC_URI="https://github.com/D-Programming-GDC/gdmd/archive/${COMMIT}.tar.gz -> gdmd-${COMMIT}.tar.gz"
+S="${WORKDIR}/gdmd-${COMMIT}"
+LICENSE="GPL-3+"
+
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm64 ~x86"
+RESTRICT="test" # no tests
+
+RDEPEND="
+ dev-lang/perl
+ sys-devel/gcc:${SLOT}[d]
+"
+
+PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
+
+src_prepare() {
+ hprefixify dmd-script
+ default
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ local binPath="/usr/${CHOST}/gcc-bin/${SLOT}"
+ 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
+}
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/
@ 2025-07-02 3:12 Horodniceanu Andrei
0 siblings, 0 replies; 10+ messages in thread
From: Horodniceanu Andrei @ 2025-07-02 3:12 UTC (permalink / raw
To: gentoo-commits
commit: 41e4d31b2efa40b3b5f44bee9ee51ea04865cc78
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Jul 2 03:05:32 2025 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Jul 2 03:05:32 2025 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=41e4d31b
dev-util/gdmd: add 15.20250517
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
dev-util/gdmd/Manifest | 1 +
dev-util/gdmd/gdmd-15.20250517.ebuild | 75 +++++++++++++++++++++++++++++++++++
2 files changed, 76 insertions(+)
diff --git a/dev-util/gdmd/Manifest b/dev-util/gdmd/Manifest
index 0866ade..6ad2503 100644
--- a/dev-util/gdmd/Manifest
+++ b/dev-util/gdmd/Manifest
@@ -1 +1,2 @@
DIST gdmd-0.1.0.tar.gz 7794 BLAKE2B f613c1faf7abb9f72990e21dfdf21e69f4d83fde5d7d6a8a0ccac16a21c0cf39f2d03b2fba7f9b19009b1e2198413c99653635a32cbad48bb8b5dfbf5da1ebab SHA512 54c1b56e252feb024d400a03df7d7b3e5942f98ce6542d77030659ec09bba3770426fc88e143550d24be8272dfa4ff510de8335badfbf9ae6e5f5b6063216fd3
+DIST gdmd-b3b72f59252f09275941f706806ed80d68308db1.tar.gz 9055 BLAKE2B 6a14c3c3be3fe0cf673d8ac564c898779fd5b94c1ef8a5546826d6d8ab962ea6160d7f49e1cba67554d07552a7b02d5a713989340376ab232a80fb797b55bab1 SHA512 e8d1ed3d1a4b4c25157d9ec70369bd6cc209ce8265265921251dc506febc71ef1888f9b2395836f16d5f50d6c7e02d8f50b2169dcd83962dcdc60d5278f444f6
diff --git a/dev-util/gdmd/gdmd-15.20250517.ebuild b/dev-util/gdmd/gdmd-15.20250517.ebuild
new file mode 100644
index 0000000..7c5971a
--- /dev/null
+++ b/dev-util/gdmd/gdmd-15.20250517.ebuild
@@ -0,0 +1,75 @@
+# 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/"
+
+COMMIT="b3b72f59252f09275941f706806ed80d68308db1"
+SRC_URI="https://github.com/D-Programming-GDC/gdmd/archive/${COMMIT}.tar.gz -> gdmd-${COMMIT}.tar.gz"
+S="${WORKDIR}/gdmd-${COMMIT}"
+LICENSE="GPL-3+"
+
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm64 ~x86"
+RESTRICT="test" # no tests
+
+RDEPEND="
+ dev-lang/perl
+ sys-devel/gcc:${SLOT}[d]
+"
+
+PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
+
+src_prepare() {
+ hprefixify dmd-script
+ default
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ local binPath="/usr/${CHOST}/gcc-bin/${SLOT}"
+ 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
+}
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/
@ 2025-08-08 17:43 Horodniceanu Andrei
0 siblings, 0 replies; 10+ messages in thread
From: Horodniceanu Andrei @ 2025-08-08 17:43 UTC (permalink / raw
To: gentoo-commits
commit: 9dcafa08798a3cdc1bea362fc7b865900bb5fa5e
Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Fri Aug 8 17:30:39 2025 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Fri Aug 8 17:30:39 2025 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=9dcafa08
dev-util/gdmd: drop versions
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
dev-util/gdmd/Manifest | 1 -
dev-util/gdmd/gdmd-13.20250517.ebuild | 75 -----------------------------------
dev-util/gdmd/gdmd-14-r1.ebuild | 75 -----------------------------------
dev-util/gdmd/gdmd-14.20250517.ebuild | 75 -----------------------------------
dev-util/gdmd/gdmd-15.20250517.ebuild | 75 -----------------------------------
dev-util/gdmd/gdmd-15.ebuild | 75 -----------------------------------
6 files changed, 376 deletions(-)
diff --git a/dev-util/gdmd/Manifest b/dev-util/gdmd/Manifest
index d38f7d6..f3decb2 100644
--- a/dev-util/gdmd/Manifest
+++ b/dev-util/gdmd/Manifest
@@ -1,3 +1,2 @@
DIST gdmd-0.1.0.tar.gz 7794 BLAKE2B f613c1faf7abb9f72990e21dfdf21e69f4d83fde5d7d6a8a0ccac16a21c0cf39f2d03b2fba7f9b19009b1e2198413c99653635a32cbad48bb8b5dfbf5da1ebab SHA512 54c1b56e252feb024d400a03df7d7b3e5942f98ce6542d77030659ec09bba3770426fc88e143550d24be8272dfa4ff510de8335badfbf9ae6e5f5b6063216fd3
-DIST gdmd-b3b72f59252f09275941f706806ed80d68308db1.tar.gz 9055 BLAKE2B 6a14c3c3be3fe0cf673d8ac564c898779fd5b94c1ef8a5546826d6d8ab962ea6160d7f49e1cba67554d07552a7b02d5a713989340376ab232a80fb797b55bab1 SHA512 e8d1ed3d1a4b4c25157d9ec70369bd6cc209ce8265265921251dc506febc71ef1888f9b2395836f16d5f50d6c7e02d8f50b2169dcd83962dcdc60d5278f444f6
DIST gdmd-d14f7301b4bbae44996bc962121c9a1e7f7e3f12.tar.gz 9661 BLAKE2B 2c4444660c288db69f876c2ef232d183f644dfd5c8c7a9f5cb2976893b42d7abe4dea03198525c197972949517a385effbbd6fc86b0a505b87002bf11c95a6b6 SHA512 aee9b829d9b0468727f0455974f43ca11746b69085298e48587e1e6a23efd3775b4d091c54a65693a39689a0950d28bd318bece10925486c7ff1bccf928f92a3
diff --git a/dev-util/gdmd/gdmd-13.20250517.ebuild b/dev-util/gdmd/gdmd-13.20250517.ebuild
deleted file mode 100644
index 7c5971a..0000000
--- a/dev-util/gdmd/gdmd-13.20250517.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/"
-
-COMMIT="b3b72f59252f09275941f706806ed80d68308db1"
-SRC_URI="https://github.com/D-Programming-GDC/gdmd/archive/${COMMIT}.tar.gz -> gdmd-${COMMIT}.tar.gz"
-S="${WORKDIR}/gdmd-${COMMIT}"
-LICENSE="GPL-3+"
-
-SLOT="$(ver_cut 1)"
-KEYWORDS="~amd64 ~arm64 ~x86"
-RESTRICT="test" # no tests
-
-RDEPEND="
- dev-lang/perl
- sys-devel/gcc:${SLOT}[d]
-"
-
-PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
-
-src_prepare() {
- hprefixify dmd-script
- default
-}
-
-src_compile() {
- :
-}
-
-src_install() {
- local binPath="/usr/${CHOST}/gcc-bin/${SLOT}"
- 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-14-r1.ebuild b/dev-util/gdmd/gdmd-14-r1.ebuild
deleted file mode 100644
index d543b38..0000000
--- a/dev-util/gdmd/gdmd-14-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-14.20250517.ebuild b/dev-util/gdmd/gdmd-14.20250517.ebuild
deleted file mode 100644
index 7c5971a..0000000
--- a/dev-util/gdmd/gdmd-14.20250517.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/"
-
-COMMIT="b3b72f59252f09275941f706806ed80d68308db1"
-SRC_URI="https://github.com/D-Programming-GDC/gdmd/archive/${COMMIT}.tar.gz -> gdmd-${COMMIT}.tar.gz"
-S="${WORKDIR}/gdmd-${COMMIT}"
-LICENSE="GPL-3+"
-
-SLOT="$(ver_cut 1)"
-KEYWORDS="~amd64 ~arm64 ~x86"
-RESTRICT="test" # no tests
-
-RDEPEND="
- dev-lang/perl
- sys-devel/gcc:${SLOT}[d]
-"
-
-PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
-
-src_prepare() {
- hprefixify dmd-script
- default
-}
-
-src_compile() {
- :
-}
-
-src_install() {
- local binPath="/usr/${CHOST}/gcc-bin/${SLOT}"
- 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-15.20250517.ebuild b/dev-util/gdmd/gdmd-15.20250517.ebuild
deleted file mode 100644
index 7c5971a..0000000
--- a/dev-util/gdmd/gdmd-15.20250517.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/"
-
-COMMIT="b3b72f59252f09275941f706806ed80d68308db1"
-SRC_URI="https://github.com/D-Programming-GDC/gdmd/archive/${COMMIT}.tar.gz -> gdmd-${COMMIT}.tar.gz"
-S="${WORKDIR}/gdmd-${COMMIT}"
-LICENSE="GPL-3+"
-
-SLOT="$(ver_cut 1)"
-KEYWORDS="~amd64 ~arm64 ~x86"
-RESTRICT="test" # no tests
-
-RDEPEND="
- dev-lang/perl
- sys-devel/gcc:${SLOT}[d]
-"
-
-PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch"
-
-src_prepare() {
- hprefixify dmd-script
- default
-}
-
-src_compile() {
- :
-}
-
-src_install() {
- local binPath="/usr/${CHOST}/gcc-bin/${SLOT}"
- 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-15.ebuild b/dev-util/gdmd/gdmd-15.ebuild
deleted file mode 100644
index d543b38..0000000
--- a/dev-util/gdmd/gdmd-15.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
-}
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2025-08-08 17:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02 3:12 [gentoo-commits] repo/user/dlang:master commit in: dev-util/gdmd/ Horodniceanu Andrei
-- strict thread matches above, loose matches on Subject: below --
2025-08-08 17:43 Horodniceanu Andrei
2025-07-02 3:12 Horodniceanu Andrei
2025-07-02 3:12 Horodniceanu Andrei
2025-07-02 3:12 Horodniceanu Andrei
2025-05-12 4:01 Horodniceanu Andrei
2025-05-12 4:01 Horodniceanu Andrei
2025-05-12 4:01 Horodniceanu Andrei
2024-07-14 19:44 Horodniceanu Andrei
2024-06-02 5:29 Horodniceanu Andrei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox