commit: 7c759301ca621df77706b334f6af32928caad2bf
Author: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sun Dec 3 16:40:01 2023 +0000
Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun Dec 3 17:53:35 2023 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=7c759301
dev-lang/dmd: add 2.106.0
Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> proton.me>
dev-lang/dmd/Manifest | 1 +
dev-lang/dmd/dmd-2.103.1.ebuild | 2 +-
dev-lang/dmd/dmd-2.104.2.ebuild | 2 +-
dev-lang/dmd/dmd-2.105.3.ebuild | 2 +-
.../dmd/{dmd-2.105.3.ebuild => dmd-2.106.0.ebuild} | 0
dev-util/dlang-tools/Manifest | 1 +
dev-util/dlang-tools/dlang-tools-2.106.0.ebuild | 61 ++++++++++++++++++++++
eclass/dlang-compilers.eclass | 1 +
profiles/use.desc | 1 +
9 files changed, 68 insertions(+), 3 deletions(-)
diff --git a/dev-lang/dmd/Manifest b/dev-lang/dmd/Manifest
index 8d1880b..d006632 100644
--- a/dev-lang/dmd/Manifest
+++ b/dev-lang/dmd/Manifest
@@ -40,3 +40,4 @@ DIST dmd.2.102.2.linux.tar.xz 22699620 BLAKE2B
b0a8fc0650bfe5df4a40ccf20d160765a
DIST dmd.2.103.1.linux.tar.xz 22747324 BLAKE2B
b00f41b4ab48be9c5467342314995e69332d4c8bff86083474a940431721d179d5e5ef64734f355df2d96637983de2262d45516594434ad3ad6c4d57a0d7a54c
SHA512
854cf08d715506bd36d791c1471f2dd1d834f439bdf4489b4addf0cc5abdecbefceb966baeb764eb5ca816a5830ac7374818ba6fbcad24668d011d56a32a1f15
DIST dmd.2.104.2.linux.tar.xz 22478264 BLAKE2B
6af63d7a5c976ae251bb16d4b48fc354d429730d00ef33a1f81ef4ec9e491486f49e120c376b2c26f3e57a13f956ccf2c31d1511f4d59db399ae613aa62ec785
SHA512
a0e6bb94887950977743545a908d80d040b2a69c48139164f61c591d1678399636538c75c1aba4d9c25cc163ee60023872f6a50c8b84cc6c09394d33c66c1367
DIST dmd.2.105.3.linux.tar.xz 22582468 BLAKE2B
bbff951452a3fa0ba8fd30ad4a24720ee2df9538abf123931366f4c596e2a224d2a3792e9d03370f3a285bf3b4f29b126b49a88874da912ea862da8eaf0d5d73
SHA512
6dc46d1d84cac5964eb0027cdae656525601e4e16ecaba8540f7f403182696300c2293e3971886fff6ad966bd440243acd5a1824a66638c8a09f584476b825a8
+DIST dmd.2.106.0.linux.tar.xz 22774028 BLAKE2B
fbce055892614aada43acee290cdb9c24736d1708e4c874dc25231a8f18bc9eee07d8e5aad38ef2eddbf8d9b62b53f5b8db392f36a547cb93cff404252b238a2
SHA512
42d90bc2c27db50e650a0f09aa4bf49392e7c26fe96336e822aaf2b2851b3a13af2e8983c33359d7f319392390a18555595d8e9b5eec0386a3dabf3389fea544
diff --git a/dev-lang/dmd/dmd-2.103.1.ebuild b/dev-lang/dmd/dmd-2.103.1.ebuild
index 14dd04d..8c2ab85 100644
--- a/dev-lang/dmd/dmd-2.103.1.ebuild
+++ b/dev-lang/dmd/dmd-2.103.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
KEYWORDS="-* ~amd64 ~x86"
YEAR=2023
-DLANG_VERSION_RANGE="2.076-2.080 2.082 2.084-"
+DLANG_VERSION_RANGE="2.076-2.080 2.082 2.084-2.105"
inherit dmd
diff --git a/dev-lang/dmd/dmd-2.104.2.ebuild b/dev-lang/dmd/dmd-2.104.2.ebuild
index 14dd04d..8c2ab85 100644
--- a/dev-lang/dmd/dmd-2.104.2.ebuild
+++ b/dev-lang/dmd/dmd-2.104.2.ebuild
@@ -5,7 +5,7 @@ EAPI=8
KEYWORDS="-* ~amd64 ~x86"
YEAR=2023
-DLANG_VERSION_RANGE="2.076-2.080 2.082 2.084-"
+DLANG_VERSION_RANGE="2.076-2.080 2.082 2.084-2.105"
inherit dmd
diff --git a/dev-lang/dmd/dmd-2.105.3.ebuild b/dev-lang/dmd/dmd-2.105.3.ebuild
index 57f8108..8f34439 100644
--- a/dev-lang/dmd/dmd-2.105.3.ebuild
+++ b/dev-lang/dmd/dmd-2.105.3.ebuild
@@ -5,7 +5,7 @@ EAPI=8
KEYWORDS="-* ~amd64 ~x86"
YEAR=2023
-DLANG_VERSION_RANGE="2.076-2.080 2.082 2.084-"
+DLANG_VERSION_RANGE="2.076-2.080 2.082 2.084-2.105"
inherit dmd
diff --git a/dev-lang/dmd/dmd-2.105.3.ebuild b/dev-lang/dmd/dmd-2.106.0.ebuild
similarity index 100%
copy from dev-lang/dmd/dmd-2.105.3.ebuild
copy to dev-lang/dmd/dmd-2.106.0.ebuild
diff --git a/dev-util/dlang-tools/Manifest b/dev-util/dlang-tools/Manifest
index b3525c4..3e7a0a9 100644
--- a/dev-util/dlang-tools/Manifest
+++ b/dev-util/dlang-tools/Manifest
@@ -40,3 +40,4 @@ DIST dlang-tools-2.102.2.tar.gz 129480 BLAKE2B
1eba640a429ab6812bf7f2c5a15ced31f
DIST dlang-tools-2.103.1.tar.gz 129477 BLAKE2B
4ae83c17fd354265ae8a221f849af9f293a6b81e86aec8713ee9e5eb32be6ebf2faa92c5d760270b76ac26eec05881d841264132cabdd493dc9ecffa00019f00
SHA512
5e4d535804f64b6d0374c12bf1fb9b64859f31e9ddd260ed73aefb66cbb6fd6cc0e892ac0e91d4ecf0771e817743f2c9cc9eb7b7631437083a799f98d6131eed
DIST dlang-tools-2.104.2.tar.gz 129552 BLAKE2B
656e2ae6b6194906a9ee0b29827e3de9e25ae1b3f099dc91c5f75d63fd366c07c4367067d73c744d0307b3e74a6ef54a527d17916a1b60b47ebbb8a08ebb9442
SHA512
a2dcece4a68e0f8791a04b5fc431e240f5052c66e0fc732bc52bbb0345e46d40dba83451123c8ea07ef517121b1831acb1e4e7e4bf501fc320382632bbb543db
DIST dlang-tools-2.105.3.tar.gz 129641 BLAKE2B
31dad04cc0b80be9f93aaadf447f2b4006869765ea6f8f306fad8bfcc9081c1a62311b73208e90dade96dee151e5e7dec8572a57eff93e5ccc2d26c492f0f36a
SHA512
6fff158b4f483a0e32d9d90e662da340cad22033b337f9105082863054d38c447068f2fac438e1b0186898887e236bfd8fd3137bc002495c2fabf2e0c599c3d9
+DIST dlang-tools-2.106.0.tar.gz 129649 BLAKE2B
ead7d6769b334b86e994cf0686b7e5e2f12dba871d587011f6de5110169ba1796ba44f0af10e8fd10a51a5755a8dd655d95cf54880c56f6473a03f9a2fc071cd
SHA512
67bcb90eaeee08b4ef497cad6f5dae30ca62dad42794cc1438f8a1642a03e9a34b75ca155c1fcf4ed18b2d0d26d89d6c41a989dc196cc26b3abe0f10d161d06a
diff --git a/dev-util/dlang-tools/dlang-tools-2.106.0.ebuild
b/dev-util/dlang-tools/dlang-tools-2.106.0.ebuild
new file mode 100644
index 0000000..3d753fc
--- /dev/null
+++ b/dev-util/dlang-tools/dlang-tools-2.106.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Ancilliary tools for the D programming language compiler"
+HOMEPAGE="http://dlang.org/"
+LICENSE="Boost-1.0"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+TOOLS="ddemangle detab dustmite rdmd"
+IUSE="+ddemangle detab dustmite +rdmd"
+REQUIRED_USE="|| ( ${TOOLS} )"
+
+DLANG_SLOT="$(ver_cut 1-2)"
+RESTRICT="mirror"
+
+BETA="$(ver_cut 4)"
+VERSION="$(ver_cut 1-3)"
+
+if [[ -n "${BETA}" ]]; then
+ # We want to convert a Gentoo version string into an upstream one:
2.097.0_rc1 -> 2.097.0-rc.1
+ VERSION="$(ver_rs 3 "-" 4 ".")"
+fi
+SRC_URI="https://codeload.github.com/dlang/tools/tar.gz/v${VERSION} ->
dlang-tools-${VERSION}.tar.gz"
+
+DLANG_VERSION_RANGE="2.075-"
+DLANG_PACKAGE_TYPE="single"
+
+inherit desktop dlang xdg-utils
+
+S="${WORKDIR}/tools-${VERSION}"
+
+d_src_compile() {
+ use ddemangle && dlang_compile_bin ddemangle ddemangle.d
+ use detab && dlang_compile_bin detab detab.d
+ use dustmite && dlang_compile_bin dustmite DustMite/dustmite.d
DustMite/splitter.d DustMite/polyhash.d
+ use rdmd && dlang_compile_bin rdmd rdmd.d
+}
+
+d_src_install() {
+ for tool in ${TOOLS}; do
+ if use "${tool}"; then
+ dobin "${tool}"
+ fi
+ done
+
+ # file icons
+ for size in 16 22 24 32 48 256; do
+ newicon --size "${size}" --context mimetypes
"${FILESDIR}/icons/${size}/dmd-source.png" text-x-dsrc.png
+ done
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}
diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass
index 497d456..cedc86a 100644
--- a/eclass/dlang-compilers.eclass
+++ b/eclass/dlang-compilers.eclass
@@ -66,6 +66,7 @@ dlang-compilers_declare_versions() {
["2.103"]="2.103 ~x86 ~amd64"
["2.104"]="2.104 ~x86 ~amd64"
["2.105"]="2.105 ~x86 ~amd64"
+ ["2.106"]="2.106 ~x86 ~amd64"
)
# GDC (hppa, sparc: masked "d" USE-flag)
diff --git a/profiles/use.desc b/profiles/use.desc
index 0b89183..a264d27 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
@@ -40,6 +40,7 @@ dmd-2_102 - Build for DMD 2.102
dmd-2_103 - Build for DMD 2.103
dmd-2_104 - Build for DMD 2.104
dmd-2_105 - Build for DMD 2.105
+dmd-2_106 - Build for DMD 2.106
gdc-11 - Build for GCC 11
gdc-12 - Build for GCC 12
gdc-13 - Build for GCC 13