commit:     1af3dddeab4ad92d190f0d9df601b706f2485cb8
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sat Apr 20 19:34:42 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Apr 20 20:25:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=1af3ddde

dev-lang/dmd: add 2.108.0

Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>

 dev-lang/dmd/Manifest            |  3 +++
 dev-lang/dmd/dmd-2.108.0.ebuild  | 13 +++++++++++++
 eclass/dlang-compilers-r1.eclass |  1 +
 eclass/dmd-r1.eclass             |  6 ++++++
 profiles/use.desc                |  2 ++
 5 files changed, 25 insertions(+)

diff --git a/dev-lang/dmd/Manifest b/dev-lang/dmd/Manifest
index 214b07d..5bb998c 100644
--- a/dev-lang/dmd/Manifest
+++ b/dev-lang/dmd/Manifest
@@ -1,4 +1,5 @@
 DIST dmd-2.107.0.tar.gz 5947524 BLAKE2B 
11f7d5f75842b1a2657a8687f69e7bf442aff55f1fef01c96f5cfa27c2b9952196692b6e520bb8eaa156b76d298291d8c514bcbb1d632cd42224ab4d7fb5840c
 SHA512 
2d4392d2c423773dfb4a38a0b8e58de26770d148a5a0a31eecc0623276eacd0e4b3cac3e0d3b20ac444cd2676f44ff623268db8cfc41590db2bc546762d973dc
+DIST dmd-2.108.0.tar.gz 5984336 BLAKE2B 
46bddb4bd0555c0db0f2ee242cc97bde8b673ddf07f11562f5459ee600939661715925fe9c93cf8b8c6b65668d5fecbb83486a92c99ff38efaebd3b09b78a3f0
 SHA512 
760fabcccc5538a1d2f91c9900a121ca196264f56625c609a9bb23f778448f29731ecd6b3fcbfd1fc7facf401e9a6b2acb21dceed7404690b3014bf00395fc43
 DIST dmd.2.101.2.linux.tar.xz 22666828 BLAKE2B 
8233d9f375291d73530a677cd5180153bc758076fd135c420cbb088bf84147fa1f0dc1cd563e94737e781823db26e4e0250af31d68819c3375224a92e53876b6
 SHA512 
7e1ce980fce7a2a995af92b2e05acdfcb2d8abc14780e11d8234792b80edead68c455e644e1830d360651bdacefa1aace963ce652fbfd3b0951dd9002fcfb87f
 DIST dmd.2.102.2.linux.tar.xz 22699620 BLAKE2B 
b0a8fc0650bfe5df4a40ccf20d160765a8ed7804915a1049366ff8b4044d7036ca7f27c8bc71146dc33bf60bf03bc09a9bd8758b9850b020480774f130325abd
 SHA512 
a2dab6efe46176bed0dca98fcf590c6823be9e4d5ca89bce0ff088e7c59a63f8eb4bb3742df1975cc90b5efd78c11377e682b0083fe44c394a73161cbb2b3aa3
 DIST dmd.2.103.1.linux.tar.xz 22747324 BLAKE2B 
b00f41b4ab48be9c5467342314995e69332d4c8bff86083474a940431721d179d5e5ef64734f355df2d96637983de2262d45516594434ad3ad6c4d57a0d7a54c
 SHA512 
854cf08d715506bd36d791c1471f2dd1d834f439bdf4489b4addf0cc5abdecbefceb966baeb764eb5ca816a5830ac7374818ba6fbcad24668d011d56a32a1f15
@@ -6,4 +7,6 @@ DIST dmd.2.104.2.linux.tar.xz 22478264 BLAKE2B 
6af63d7a5c976ae251bb16d4b48fc354d
 DIST dmd.2.105.3.linux.tar.xz 22582468 BLAKE2B 
bbff951452a3fa0ba8fd30ad4a24720ee2df9538abf123931366f4c596e2a224d2a3792e9d03370f3a285bf3b4f29b126b49a88874da912ea862da8eaf0d5d73
 SHA512 
6dc46d1d84cac5964eb0027cdae656525601e4e16ecaba8540f7f403182696300c2293e3971886fff6ad966bd440243acd5a1824a66638c8a09f584476b825a8
 DIST dmd.2.106.1.linux.tar.xz 22778396 BLAKE2B 
66ff621beed21ef4fada3562380fe000d57aa7ca962c53b0b4c18520a47a76a9c405fe7074d17e2882e03313cdef47c67e6f690442e8f6ada8baf8e1589a4579
 SHA512 
2f287c1774196ad35d48288eef0ab87670b3b470ebd4b4707388197fc79ccbc9af0c6e839b9ffd3d2f3f06624fabbedb9bf4fc1c0a670a2131f700be572a244f
 DIST dmd.2.107.0.linux.tar.xz 22438472 BLAKE2B 
551b2a723256b61b4c07fe44ace55c91c92f796fbd67aa5012c0efa9cb8c79010c1dcd9039dd85a19cb3c09163221792c1eb2200ecc6c1c9d74019df717f6fd1
 SHA512 
888369938fbf6dbcaf0c534ed899ffe055cef363e47282374fd45a3a702d97f96a7c7ce9a55a199915e5cc86e4b78ff86fccbd6334c4a4f1a940be5fa2872d11
+DIST dmd.2.108.0.linux.tar.xz 22553348 BLAKE2B 
6011e3175c2813b2e515d554780f9a2f1688bd8b887a9038becc4fcb8f9139493972ca62b1835b1dae2586002cc1ad8d3f05f97a425a53d4b45db5e1ca35e9c8
 SHA512 
4d24969289df08216f1111a98d4fa211e585f811d76da24a216c35bf80bb1368300b594de7ede4ebdbad348e209d71dd749d28285c6571fd85bfd124b72b1391
 DIST phobos-2.107.0.tar.gz 2756892 BLAKE2B 
604d19254e453f0a04e6659e46de187837f5ab82278f8a52ae9714b91d3554e3cc166086860ca32e39d722847c4e962762e26e8226ce685064d5dcc10d3a708b
 SHA512 
4002878851673bc4deaec66dd35d2dc3cfe5f72b7050e2b454bf53aeaa8b4a68fc425d248eab4fbea89f251298b66c726166c41666a69a5508092fd30a9903d5
+DIST phobos-2.108.0.tar.gz 2749686 BLAKE2B 
7b57005d40b3e27bddbdafdb7054cbecde4b6ad3c8a886d5c3b9fb1e92560b7221b3693f79f1b6aea3a6a155f15236c5e4b9e1698a84921dc5bad8b89a61c0e6
 SHA512 
072ba8e97bf79cf6adca0bfd8ff40f6947ff1797676d7a9bfc299a0618694e3eafa2568ef10b01a84bb6d095e72341001072c7ef25f426b3442c6553d2dfb601

diff --git a/dev-lang/dmd/dmd-2.108.0.ebuild b/dev-lang/dmd/dmd-2.108.0.ebuild
new file mode 100644
index 0000000..183cba0
--- /dev/null
+++ b/dev-lang/dmd/dmd-2.108.0.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KEYWORDS="-* ~amd64 ~x86"
+DLANG_COMPAT=( dmd-2_{106..108} gdc-13 ldc2-1_{35..36} )
+
+inherit dmd-r1
+
+PATCHES=(
+       "${FILESDIR}/2.107-dmd-r1-link-32-bit-shared-lib-with-ld.bfd.patch"
+)

diff --git a/eclass/dlang-compilers-r1.eclass b/eclass/dlang-compilers-r1.eclass
index 933b05a..5cd8836 100644
--- a/eclass/dlang-compilers-r1.eclass
+++ b/eclass/dlang-compilers-r1.eclass
@@ -44,6 +44,7 @@ readonly _DLANG_DMD_FRONTENDS=(
        "2.105 2.105 ~amd64 ~x86"
        "2.106 2.106 ~amd64 ~x86"
        "2.107 2.107 ~amd64 ~x86"
+       "2.108 2.108 ~amd64 ~x86"
 )
 
 # @ECLASS_VARIABLE: _DLANG_GDC_FRONTENDS

diff --git a/eclass/dmd-r1.eclass b/eclass/dmd-r1.eclass
index 90459c2..19a6224 100644
--- a/eclass/dmd-r1.eclass
+++ b/eclass/dmd-r1.eclass
@@ -196,6 +196,9 @@ dmd-r1_src_compile() {
                        CUSTOM_DRUNTIME=1
 
                        # Like druntime, specifying flags removes the makefile 
added ones.
+                       #
+                       # Since 2.108.0 -DHAVE_UNISTD_H is handled by CPPFLAGS 
=> we
+                       # don't need to specify it here.
                        CFLAGS="${CFLAGS} -fPIC -std=c11 -DHAVE_UNISTD_H" # 
-m32/64 is added in $CC.
 
                        # Overkill but it does work. Remember that we have to
@@ -205,6 +208,9 @@ dmd-r1_src_compile() {
                        # By default builds both static+dynamic libraries.
                        $(usex static-libs 'lib dll' dll)
                )
+               # Prefer compiling C files with CC, not with dmd. (USE_IMPORTC=1
+               # adds dependency on libdruntime.a)
+               ver_test -ge 2.108.0 && phobosMakeArgs+=( "USE_IMPORTC=0" )
 
                emake -C dmd/druntime "${commonMakeArgs[@]}" 
"${druntimeMakeArgs[@]}"
                emake -C phobos "${commonMakeArgs[@]}" "${phobosMakeArgs[@]}"

diff --git a/profiles/use.desc b/profiles/use.desc
index 32cb310..6533851 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
@@ -5,6 +5,7 @@ dlang_single_target_dmd-2_104 - Build for DMD 2.104 only
 dlang_single_target_dmd-2_105 - Build for DMD 2.105 only
 dlang_single_target_dmd-2_106 - Build for DMD 2.106 only
 dlang_single_target_dmd-2_107 - Build for DMD 2.107 only
+dlang_single_target_dmd-2_108 - Build for DMD 2.108 only
 
 dlang_single_target_gdc-12 - Build for GCC 12 only
 dlang_single_target_gdc-13 - Build for GCC 13 only
@@ -22,6 +23,7 @@ dlang_targets_dmd-2_104 - Build with DMD 2.104
 dlang_targets_dmd-2_105 - Build with DMD 2.105
 dlang_targets_dmd-2_106 - Build with DMD 2.106
 dlang_targets_dmd-2_107 - Build with DMD 2.107
+dlang_targets_dmd-2_108 - Build with DMD 2.108
 
 dlang_targets_gdc-12 - Build with GCC 12
 dlang_targets_gdc-13 - Build with GCC 13

Reply via email to