aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorodniceanu Andrei <a.horodniceanu@proton.me>2023-10-01 21:12:38 +0300
committerHorodniceanu Andrei <a.horodniceanu@proton.me>2023-10-01 21:12:38 +0300
commitba1df709f9da6bfef5c91405889094a903b8e23a (patch)
tree0174b4bb25dd6bce13aeb54e0f956f08dece48ea
parentdev-lang/dmd: add 2.101.2 (diff)
downloaddlang-ba1df709f9da6bfef5c91405889094a903b8e23a.tar.gz
dlang-ba1df709f9da6bfef5c91405889094a903b8e23a.tar.bz2
dlang-ba1df709f9da6bfef5c91405889094a903b8e23a.zip
dev-lang/dmd: add 2.102.2
Signed-off-by: Horodniceanu Andrei <a.horodniceanu@proton.me>
-rw-r--r--dev-lang/dmd/Manifest1
-rw-r--r--dev-lang/dmd/dmd-2.102.2.ebuild16
-rw-r--r--dev-util/dlang-tools/Manifest1
-rw-r--r--dev-util/dlang-tools/dlang-tools-2.102.2.ebuild63
-rw-r--r--eclass/dlang-compilers.eclass1
-rw-r--r--profiles/use.desc1
6 files changed, 83 insertions, 0 deletions
diff --git a/dev-lang/dmd/Manifest b/dev-lang/dmd/Manifest
index e90b3d7..fdff41d 100644
--- a/dev-lang/dmd/Manifest
+++ b/dev-lang/dmd/Manifest
@@ -36,3 +36,4 @@ DIST dmd.2.098.1.linux.tar.xz 23790368 BLAKE2B 12edf0e14af17bae1ca728bad47b9858e
DIST dmd.2.099.1.linux.tar.xz 21846416 BLAKE2B e5c3baa981af46ce980c80c42729a2db99a44d3f8f464a711c299c0d7c2354c6ba8d607b57a7f6d79d7a99793cd727f1f7e9fd33c49517ea5c9783efcda00518 SHA512 20fbf33dae8e79d07993ca2b1032e86db40dd21e06dcca2ed3f7cfa8921ba25799e0dc534f989ca535d274f2984f7873a186227854d54c21aadfdd671febc43d
DIST dmd.2.100.2.linux.tar.xz 22013684 BLAKE2B e7e10ebc91a4baeda917b91e40b7b5d271caa0fee23d9c98f53c8239a0666c388d45a7290e338054b7b59dae6dbca9e5b1f03511783f59f92cc398a81e225390 SHA512 fd1615aa962b72f0f6e4c6d1276b101b8aa234206eb7162690267f674c9c788a5743fe42cf7415ff8d54514cd08b8844be1bca59ceafca753d1bac488e7e1661
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
diff --git a/dev-lang/dmd/dmd-2.102.2.ebuild b/dev-lang/dmd/dmd-2.102.2.ebuild
new file mode 100644
index 0000000..b347904
--- /dev/null
+++ b/dev-lang/dmd/dmd-2.102.2.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KEYWORDS="-* ~amd64 ~x86"
+YEAR=2023
+DLANG_VERSION_RANGE="2.076-2.080 2.082 2.084-2.102"
+
+inherit dmd
+
+PATCHES=(
+ "${FILESDIR}/2.097-link-32-bit-shared-lib-with-ld.bfd.patch"
+ # See https://github.com/dlang/phobos/pull/8820
+ "${FILESDIR}/2.101-phobos-change-DMD_DIR-meaning.patch"
+)
diff --git a/dev-util/dlang-tools/Manifest b/dev-util/dlang-tools/Manifest
index 94524ef..94d0066 100644
--- a/dev-util/dlang-tools/Manifest
+++ b/dev-util/dlang-tools/Manifest
@@ -36,6 +36,7 @@ DIST dlang-tools-2.098.1.tar.gz 129699 BLAKE2B b7902b2cdcb6f9bbf6e71356cfdaaf8e3
DIST dlang-tools-2.099.1.tar.gz 129867 BLAKE2B 6f37d08921a1532a7d5875df99e4037fb52a5ac59585bbc98d09d225afd2ce564963cc30f1ebaad093238ca758d7db2a874f9aa357fe23dce6a9a6c9ebcb6d21 SHA512 68cde8853bac2f3c92a2fbbe3f658e29b475bea2aeb5f5ffb96f2b3e85aca693b1d14c8fa248bad882461e55957c1de5cba9ac7a02b3a28be070e4869b6a4171
DIST dlang-tools-2.100.2.tar.gz 129438 BLAKE2B 16784d5ec33cbc31dfefad2b3a5a4f776f65aa61f83392de08944651bf06f15325e8be0a6a006aed0dfac9aa4b4307c60b317a1c9cb6b2eb4ec04e59373f2009 SHA512 1a42e4c9d871debcdd8a6342770d92da3de42e9e80dfc4f62ac3610bfa2903fc28964fde820512233fe22d86045191ef08e3fa82a51f63bc023f8c404b6b349b
DIST dlang-tools-2.101.2.tar.gz 129467 BLAKE2B 04a2240693ba9e04f796d367e2f10e11d8a777c26a6acba6c1fd2f59481583fae653fdb75b4a335f2ddbec962469954b056ec365fabaa7d5f4a7dd7f26b8a06f SHA512 1d16e3c40b7a29703bfa66a58b8f5ee00421f982b5b14de05f8edd1f4504385b0a84726fd618908c235ebeb49c1ad53a8034f5dad6057c2701884023608581fc
+DIST dlang-tools-2.102.2.tar.gz 129480 BLAKE2B 1eba640a429ab6812bf7f2c5a15ced31f603c8abaecb9ab729369e2519424784e20243b57de3a0a0b8dd46e6f07054d6c625e43ce9f1271427b4341d41ff5800 SHA512 5e46b3b2b9646688283ddcbe2a1610051da3035bfcb225790b4f5b653e5a2dd3f0b9ed9e143b18b62f1533323dffb91ab13fab483c0d42f575cc5be4f3c7adc9
DIST dlang.org-2.064.2.tar.gz 963131 BLAKE2B a7cf0d43a1cd531722bda717882a34e01c0186f0832a12064bf0600aede0a0913190724011f0b13c76cf794434e1c82490f48e9fda66409aa2820adc7c8a40f9 SHA512 a1284955764385539dcd8949cd851100af9be47908e85d8cfd897d6409903763919dc082fc0ca88fbaaf49647168357656aee82717a375ed45407eb15ccd44cf
DIST dlang.org-2.065.0.tar.gz 1005429 BLAKE2B 01fc8ec0c5148f910e2923be556208c08a18f00453ffa1f1a22d6725db6489b6f9022cd170caa3a05078baddde353ee819984da5efa53547e78006d2f0a97b9c SHA512 0fb185603766b54c3b9dc57824b18ec7ea9f37281610729860543630f4546591f9523bff48eee5414235d2ee656201c444e6d2efc44ba66a052b98a0d9b4729e
DIST dlang.org-2.066.1.tar.gz 1024075 BLAKE2B cfdb4922c38d9f0ced941eeb4578d71f09d65201d2f89cfc73e46ae73f0939c74fa92d7f003b87a28f814c5b2cc0dda6855b86e64fd86be3920c129f8c20df6a SHA512 d3838cc2ab6236d57c17f92fa5eaef8458176715985aecbea9653cc772725e1b9f813c9ffc8e06490e08c1031826ab84d1fcfbd88008791cac3257db814e3dc8
diff --git a/dev-util/dlang-tools/dlang-tools-2.102.2.ebuild b/dev-util/dlang-tools/dlang-tools-2.102.2.ebuild
new file mode 100644
index 0000000..77e9b0d
--- /dev/null
+++ b/dev-util/dlang-tools/dlang-tools-2.102.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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} )"
+
+inherit eapi7-ver
+
+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-2.102"
+DLANG_PACKAGE_TYPE="single"
+
+inherit eutils 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 84326a0..8dd3204 100644
--- a/eclass/dlang-compilers.eclass
+++ b/eclass/dlang-compilers.eclass
@@ -62,6 +62,7 @@ dlang-compilers_declare_versions() {
["2.099"]="2.099 x86 amd64"
["2.100"]="2.100 ~x86 ~amd64"
["2.101"]="2.101 ~x86 ~amd64"
+ ["2.102"]="2.102 ~x86 ~amd64"
)
# GDC (hppa, sparc: masked "d" USE-flag)
diff --git a/profiles/use.desc b/profiles/use.desc
index d0396ba..474b16c 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
@@ -36,6 +36,7 @@ dmd-2_098 - Build for DMD 2.098
dmd-2_099 - Build for DMD 2.099
dmd-2_100 - Build for DMD 2.100
dmd-2_101 - Build for DMD 2.101
+dmd-2_102 - Build for DMD 2.102
gdc-11_3_1_p20230427 - Build for GCC 11.3.1_p20230427
gdc-11_4_0 - Build for GCC 11.4.0
gdc-11_4_1_p20230622 - Build for GCC 11.4.1_p20230622