[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: fd6defc33f472265c28cf6bce66763ff45ffbed1 Author: Andrei Horodniceanu proton me> AuthorDate: Thu Sep 12 12:49:58 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Thu Sep 12 17:11:45 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=fd6defc3 dev-lang/ldc2: 1.39.0 use external patches Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.39.0.ebuild | 29 - 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 6d39aef..31f9fe6 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -6,3 +6,4 @@ DIST ldc-1.36.0-src.tar.gz 8551871 BLAKE2B b0f09128ab37e332f2eebab3288cac687f91b DIST ldc-1.37.0-src.tar.gz 8555980 BLAKE2B ac93c903f9dbeec5b69e94c7cdf851ae3fa3168752dceccbd1262fbdae5cdda43e53b82bd7c8b24b0bb2dc06fb00f3b1c74a278a851ea68b948dc7e618460227 SHA512 488451dba58262cf533760f471f707f984d66edeb5c7dfff5a512efa0111742cead4ff23ed5ace39ea4d07e9bac290a846d0df3de49fd3fc276241a771aff0ed DIST ldc-1.38.0-src.tar.gz 8691096 BLAKE2B 7b25ba96c470a707d9ee7660ac030984c2cfecaf757a00015507dfb7c17075132ebcc546562ae700ab43eb19e117b4d1247cc1b2f62f455328a7cf9dc0ddf5d4 SHA512 1540a1a6f4bad3bc93da0f59bc28cd31dd4aeb58b8b4c744a204faa43692a1fe13d010ae56b3369e870a5e58724103b2aee58db8b40925698e7816f78f0f2de3 DIST ldc-1.39.0-src.tar.gz 8554301 BLAKE2B cb1dd5f6b4cc7a7344d8575d1e96fddbd1c34fc0e4f05cf96d29179bec725a997d7d8aee7bf0d97e53d0b36fb108f56e1c55eb66aa93e0075d1beb9d737e21e5 SHA512 d5c91043fa7d5faee9fc231fade52b6ac961907a7f6f8920d8337c9ba0b7052a5f98eb5f23ae56ca93510952c502ca78c9eec1d03f408aaa310fa4e4d57d9519 +DIST ldc2-1.39.0-patches-1.tar.gz 1176 BLAKE2B 7597fb1917f53ee5ee215cba73b92acf1d8347851d0d71223e5c01421da7ee6fd909ed7da217c99b162f3ca1602cdcddaf680ad13094db8957e98c635c72ecd1 SHA512 f78ddf97bb4ef0167328e1f58a3da7a35ec4a879a6c772f002dc161814bc9ac94b0ff543d3faf533375e0f5a9124a80c44b2371415810f0751617c2f13d56659 diff --git a/dev-lang/ldc2/ldc2-1.39.0.ebuild b/dev-lang/ldc2/ldc2-1.39.0.ebuild index 6ddfbce..b1630ae 100644 --- a/dev-lang/ldc2/ldc2-1.39.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.39.0.ebuild @@ -8,11 +8,18 @@ LLVM_COMPAT=( {15..18} ) PYTHON_COMPAT=( python3_{10..12} ) inherit cmake llvm-r1 multilib-build multiprocessing python-any-r1 toolchain-funcs +PATCH_VER=1 +PATCH_TAG_NAME="${PV}-patches-${PATCH_VER}" +PATCH_URL_BASE="https://github.com/the-horo/ldc-patches/archive/refs/tags"; + DESCRIPTION="LLVM D Compiler" HOMEPAGE="https://github.com/ldc-developers/ldc"; MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +SRC_URI=" + https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz + ${PATCH_URL_BASE}/${PATCH_TAG_NAME}.tar.gz -> ${P}-patches-${PATCH_VER}.tar.gz +" S=${WORKDIR}/${MY_P} LICENSE="BSD" # dmd code + runtime lib, see dmd-r1.eclass for more details @@ -60,14 +67,6 @@ python_check_deps() { python_has_version "dev-python/lit[${PYTHON_USEDEP}]" } -PATCHES=( - "${FILESDIR}"/ldc2-1.15.0-link-defaultlib-shared.patch - "${FILESDIR}/${PN}"-1.36.0-lit-cfg-disable-gdb.patch - - # https://github.com/ldc-developers/ldc/issues/4614#issuecomment-2034169152 - "${FILESDIR}/${PN}"-remove-dmd-common-int128-unittest.patch -) - pkg_setup() { dlang_setup llvm-r1_pkg_setup @@ -75,6 +74,8 @@ pkg_setup() { } src_prepare(){ + apply_patches + # Disable GDB tests by passing GDB_FLAGS=OFF # Put this here to avoid trigerring reconfigurations later on. sed -i 's/\(GDB_FLAGS=\)\S\+/\1OFF/' "${S}"/tests/dmd/CMakeLists.txt @@ -179,3 +180,13 @@ pkg_postinst() { pkg_postrm() { "${EROOT}"/usr/bin/eselect dlang update ldc2 } + +apply_patches() { + local patches_dir="${WORKDIR}/ldc-patches-${PATCH_TAG_NAME}" + local patch + while read -rd '' patch; do + eapply "${patch}" + done < <(find "${patches_dir}" -mindepth 1 -maxdepth 1 \ + -type f -name '*.patch' \ + -print0) +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: cfac04b0a8d9adbcf483936eb5028105d2109aeb Author: Andrei Horodniceanu proton me> AuthorDate: Thu Sep 12 17:41:21 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Thu Sep 12 19:09:11 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=cfac04b0 dev-lang/ldc2: 1.36.0-r2 use external patches Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.36.0-r2.ebuild | 34 -- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 4676ed6..15e8192 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -6,6 +6,7 @@ DIST ldc-1.36.0-src.tar.gz 8551871 BLAKE2B b0f09128ab37e332f2eebab3288cac687f91b DIST ldc-1.37.0-src.tar.gz 8555980 BLAKE2B ac93c903f9dbeec5b69e94c7cdf851ae3fa3168752dceccbd1262fbdae5cdda43e53b82bd7c8b24b0bb2dc06fb00f3b1c74a278a851ea68b948dc7e618460227 SHA512 488451dba58262cf533760f471f707f984d66edeb5c7dfff5a512efa0111742cead4ff23ed5ace39ea4d07e9bac290a846d0df3de49fd3fc276241a771aff0ed DIST ldc-1.38.0-src.tar.gz 8691096 BLAKE2B 7b25ba96c470a707d9ee7660ac030984c2cfecaf757a00015507dfb7c17075132ebcc546562ae700ab43eb19e117b4d1247cc1b2f62f455328a7cf9dc0ddf5d4 SHA512 1540a1a6f4bad3bc93da0f59bc28cd31dd4aeb58b8b4c744a204faa43692a1fe13d010ae56b3369e870a5e58724103b2aee58db8b40925698e7816f78f0f2de3 DIST ldc-1.39.0-src.tar.gz 8554301 BLAKE2B cb1dd5f6b4cc7a7344d8575d1e96fddbd1c34fc0e4f05cf96d29179bec725a997d7d8aee7bf0d97e53d0b36fb108f56e1c55eb66aa93e0075d1beb9d737e21e5 SHA512 d5c91043fa7d5faee9fc231fade52b6ac961907a7f6f8920d8337c9ba0b7052a5f98eb5f23ae56ca93510952c502ca78c9eec1d03f408aaa310fa4e4d57d9519 +DIST ldc2-1.36.0-patches-1.tar.gz 2526 BLAKE2B 016186abc61a174a3e880a167742eafc2f40c6579034e6ec733d22eaa8d2ea51cac1c00a4b80cb9fa995d44229b5473198b7b3d839085b9e94c5622726d4f41f SHA512 f7a124671cd3b7474419823f09d474f72f5be9e4b2c9a30f29743df88caf86491c1363ab2a8dbdfdde69e284789ab1918b78febc98dc0767100d26785cb9d6ba DIST ldc2-1.37.0-patches-1.tar.gz 2523 BLAKE2B 397d701de640bc04bdf9246b9f981141287f4bd8069cf1233567f9430652da3fb1b89899b0c8c9a19877d239465a3a4c9758df32ca2dc1cd098c0d729368 SHA512 b24318ec1f484d71c19db013893d94492b5a155f1bd2c5f7c993ad941e19635872b3e4dd15826094c6f80982c956240c58240c7e86f33b5f7af8344eb407090f DIST ldc2-1.38.0-patches-1.tar.gz 8924 BLAKE2B 332ff175f3ba50b2c1c2a4e225a6c584621628fa7eda01bc26f318d04af03c5b40202ce2748392f2e55ce712ee6d8431026703419f278c8a6f38ee57a1601ce3 SHA512 00a84c4a5e3391ef3724b3e41b98af91186fb76a4a74a449cfea5cde86eb14889d6a0f06fb449903e95bda12be1448c3b16164bdc64ea990c933211b304ca2a2 DIST ldc2-1.39.0-patches-1.tar.gz 1176 BLAKE2B 7597fb1917f53ee5ee215cba73b92acf1d8347851d0d71223e5c01421da7ee6fd909ed7da217c99b162f3ca1602cdcddaf680ad13094db8957e98c635c72ecd1 SHA512 f78ddf97bb4ef0167328e1f58a3da7a35ec4a879a6c772f002dc161814bc9ac94b0ff543d3faf533375e0f5a9124a80c44b2371415810f0751617c2f13d56659 diff --git a/dev-lang/ldc2/ldc2-1.36.0-r2.ebuild b/dev-lang/ldc2/ldc2-1.36.0-r2.ebuild index 95fe554..6e625da 100644 --- a/dev-lang/ldc2/ldc2-1.36.0-r2.ebuild +++ b/dev-lang/ldc2/ldc2-1.36.0-r2.ebuild @@ -8,9 +8,16 @@ LLVM_COMPAT=( {15..17} ) PYTHON_COMPAT=( python3_{10..12} ) inherit cmake flag-o-matic llvm-r1 multilib-build multiprocessing python-any-r1 toolchain-funcs +PATCH_VER=1 +PATCH_TAG_NAME="${PV}-patches-${PATCH_VER}" +PATCH_URL_BASE="https://github.com/the-horo/ldc-patches/archive/refs/tags"; + MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +SRC_URI=" + https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz + ${PATCH_URL_BASE}/${PATCH_TAG_NAME}.tar.gz -> ${P}-patches-${PATCH_VER}.tar.gz +" S=${WORKDIR}/${MY_P} DESCRIPTION="LLVM D Compiler" @@ -55,19 +62,6 @@ python_check_deps() { python_has_version "dev-python/lit[${PYTHON_USEDEP}]" } -PATCHES=( - "${FILESDIR}"/ldc2-1.15.0-link-defaultlib-shared.patch - "${FILESDIR}/${PN}"-1.36.0-disable-compiler-rt-sanitizers-tests.patch - "${FILESDIR}/${PN}"-1.36.0-lit-cfg-disable-gdb.patch - - # https://github.com/dlang/phobos/pull/8956 - "${FILESDIR}/${PN}"-1.36.0-fix-phobos-OS-dependent-test-string.patch - # https://github.com/ldc-developers/ldc/pull/4612 - "${FILESDIR}/${PN}"-1.36.0-tests-dshell-remove--m-switch.patch - # https://github.com/ldc-developers/ldc/issues/4614#issuecomment-2034169152 - "${FILESDIR}/${PN}"-remove-dmd-common-int128-unittest.patch -) - pkg_setup() { dlang_setup llvm-r1_pkg_setup @@ -75,6 +69,8 @@ pkg_setup() { } src_prepare(){ + apply_patches + # Disable GDB tests by passing GDB_FLAGS=OFF # Put this here to avoid trigerring reconfigurations later on. sed -i 's/\(GDB_FLAGS=\)\S\+/\1OFF/' "${S}"/tests/dmd/C
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/files/
commit: 68dacc91c61f921f1561db7bd7be340ef203beaf Author: Andrei Horodniceanu proton me> AuthorDate: Thu Sep 12 17:45:09 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Thu Sep 12 19:09:12 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=68dacc91 dev-lang/ldc2/files: remove unused patches Signed-off-by: Andrei Horodniceanu proton.me> ...36.0-disable-compiler-rt-sanitizers-tests.patch | 56 -- 36.0-fix-phobos-OS-dependent-test-string.patch | 26 - .../files/ldc2-1.36.0-lit-cfg-disable-gdb.patch| 13 - ...ldc2-1.36.0-tests-dshell-remove--m-switch.patch | 13 - ...-autodetect-and-compiler-rt-fixes-pr-4659.patch | 585 - .../ldc2-remove-dmd-common-int128-unittest.patch | 17 - .../files/ldc2-x86-mangling-test-fix-pr-4661.patch | 55 -- ...x86-tests-avoid-calling-amd64-gcc-pr-4662.patch | 39 -- 8 files changed, 804 deletions(-) diff --git a/dev-lang/ldc2/files/ldc2-1.36.0-disable-compiler-rt-sanitizers-tests.patch b/dev-lang/ldc2/files/ldc2-1.36.0-disable-compiler-rt-sanitizers-tests.patch deleted file mode 100644 index e086e2d..000 --- a/dev-lang/ldc2/files/ldc2-1.36.0-disable-compiler-rt-sanitizers-tests.patch +++ /dev/null @@ -1,56 +0,0 @@ -diff --git a/tests/PGO/lit.local.cfg b/tests/PGO/lit.local.cfg -index 9638e26..4578f1a 100644 a/tests/PGO/lit.local.cfg -+++ b/tests/PGO/lit.local.cfg -@@ -1,2 +1,2 @@ - # Add "PGO_RT" feature, assuming the `profile` compiler-rt library is available --config.available_features.add('PGO_RT') -+#config.available_features.add('PGO_RT') -diff --git a/tests/instrument/lit.local.cfg b/tests/instrument/lit.local.cfg -index 9366e7b..5030a1e 100644 a/tests/instrument/lit.local.cfg -+++ b/tests/instrument/lit.local.cfg -@@ -2,4 +2,5 @@ import platform - - # Add "XRay_RT" feature on non-Windows, assuming the compiler-rt libraries are available - if (platform.system() != 'Windows'): --config.available_features.add('XRay_RT') -+#config.available_features.add('XRay_RT') -+pass -diff --git a/tests/sanitizers/lit.local.cfg b/tests/sanitizers/lit.local.cfg -index ce12558..6bd5021 100644 a/tests/sanitizers/lit.local.cfg -+++ b/tests/sanitizers/lit.local.cfg -@@ -4,24 +4,27 @@ import platform - sys = platform.system() - - # Add "LSan" feature, assuming the compiler-rt library is available --config.available_features.add('LSan') -+#config.available_features.add('LSan') - - # FreeBSD TSan doesn't seem to work, - # Linux TSan currently only works with static druntime, - # and there's no Windows TSan (yet?). - if (sys != 'FreeBSD') and (sys != 'Windows') and not (sys == 'Linux' and config.shared_rt_libs_only): --config.available_features.add('TSan') -+#config.available_features.add('TSan') -+pass - - # FreeBSD ASan and MSan don't cope well with ASLR (might do with FreeBSD 14 according to https://github.com/llvm/llvm-project/pull/73439) - if sys != 'FreeBSD': --config.available_features.add('ASan') -+#config.available_features.add('ASan') -+pass - - # MSan is supported on Linux, FreeBSD (modulo ASLR issue), and OpenBSD: https://clang.llvm.org/docs/MemorySanitizer.html#supported-platforms - if (sys == 'Linux') or (sys == 'OpenBSD'): --config.available_features.add('MSan') -+#config.available_features.add('MSan') -+pass - - # Add "Fuzzer" feature, assuming the compiler-rt library is available --config.available_features.add('Fuzzer') -+#config.available_features.add('Fuzzer') - - if 'ASan' in config.available_features: - # On Darwin, ASan defaults to `abort_on_error=1`, which would make tests run diff --git a/dev-lang/ldc2/files/ldc2-1.36.0-fix-phobos-OS-dependent-test-string.patch b/dev-lang/ldc2/files/ldc2-1.36.0-fix-phobos-OS-dependent-test-string.patch deleted file mode 100644 index 5b67c5d..000 --- a/dev-lang/ldc2/files/ldc2-1.36.0-fix-phobos-OS-dependent-test-string.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/runtime/phobos/std/file.d b/runtime/phobos/std/file.d -index 5b8925d..f1b19b3 100644 a/runtime/phobos/std/file.d -+++ b/runtime/phobos/std/file.d -@@ -1082,6 +1082,7 @@ private void removeImpl(scope const(char)[] name, scope const(FSChar)* namez) @t - - @safe unittest - { -+import std.algorithm.searching : startsWith; - import std.exception : collectExceptionMsg, assertThrown; - - string filename = null; // e.g. as returned by File.tmpfile.name -@@ -1090,12 +1091,10 @@ private void removeImpl(scope const(char)[] name, scope const(FSChar)* namez) @t - { - // exact exception message is OS-dependent - auto msg = filename.remove.collectExceptionMsg!FileException; --assert("Failed to remove file (null): Bad address" == msg, msg); -+assert(msg.startsWith("Failed to remove file (null):"), msg); - } - else version (Windows) - { --import std.algorithm.searching : startsWith; -- - // don't test exact message on w
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 143a6f03b8b37c84379a7adf8a174a7df1fbe1ce Author: Andrei Horodniceanu proton me> AuthorDate: Thu Sep 12 17:26:25 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Thu Sep 12 19:06:15 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=143a6f03 dev-lang/ldc2: 1.38.0 use external patches Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.38.0.ebuild | 34 -- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 31f9fe6..6dce506 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -6,4 +6,5 @@ DIST ldc-1.36.0-src.tar.gz 8551871 BLAKE2B b0f09128ab37e332f2eebab3288cac687f91b DIST ldc-1.37.0-src.tar.gz 8555980 BLAKE2B ac93c903f9dbeec5b69e94c7cdf851ae3fa3168752dceccbd1262fbdae5cdda43e53b82bd7c8b24b0bb2dc06fb00f3b1c74a278a851ea68b948dc7e618460227 SHA512 488451dba58262cf533760f471f707f984d66edeb5c7dfff5a512efa0111742cead4ff23ed5ace39ea4d07e9bac290a846d0df3de49fd3fc276241a771aff0ed DIST ldc-1.38.0-src.tar.gz 8691096 BLAKE2B 7b25ba96c470a707d9ee7660ac030984c2cfecaf757a00015507dfb7c17075132ebcc546562ae700ab43eb19e117b4d1247cc1b2f62f455328a7cf9dc0ddf5d4 SHA512 1540a1a6f4bad3bc93da0f59bc28cd31dd4aeb58b8b4c744a204faa43692a1fe13d010ae56b3369e870a5e58724103b2aee58db8b40925698e7816f78f0f2de3 DIST ldc-1.39.0-src.tar.gz 8554301 BLAKE2B cb1dd5f6b4cc7a7344d8575d1e96fddbd1c34fc0e4f05cf96d29179bec725a997d7d8aee7bf0d97e53d0b36fb108f56e1c55eb66aa93e0075d1beb9d737e21e5 SHA512 d5c91043fa7d5faee9fc231fade52b6ac961907a7f6f8920d8337c9ba0b7052a5f98eb5f23ae56ca93510952c502ca78c9eec1d03f408aaa310fa4e4d57d9519 +DIST ldc2-1.38.0-patches-1.tar.gz 8924 BLAKE2B 332ff175f3ba50b2c1c2a4e225a6c584621628fa7eda01bc26f318d04af03c5b40202ce2748392f2e55ce712ee6d8431026703419f278c8a6f38ee57a1601ce3 SHA512 00a84c4a5e3391ef3724b3e41b98af91186fb76a4a74a449cfea5cde86eb14889d6a0f06fb449903e95bda12be1448c3b16164bdc64ea990c933211b304ca2a2 DIST ldc2-1.39.0-patches-1.tar.gz 1176 BLAKE2B 7597fb1917f53ee5ee215cba73b92acf1d8347851d0d71223e5c01421da7ee6fd909ed7da217c99b162f3ca1602cdcddaf680ad13094db8957e98c635c72ecd1 SHA512 f78ddf97bb4ef0167328e1f58a3da7a35ec4a879a6c772f002dc161814bc9ac94b0ff543d3faf533375e0f5a9124a80c44b2371415810f0751617c2f13d56659 diff --git a/dev-lang/ldc2/ldc2-1.38.0.ebuild b/dev-lang/ldc2/ldc2-1.38.0.ebuild index aeaae13..f4bbac6 100644 --- a/dev-lang/ldc2/ldc2-1.38.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.38.0.ebuild @@ -8,11 +8,18 @@ LLVM_COMPAT=( {15..18} ) PYTHON_COMPAT=( python3_{10..12} ) inherit cmake llvm-r1 multilib-build multiprocessing python-any-r1 toolchain-funcs +PATCH_VER=1 +PATCH_TAG_NAME="${PV}-patches-${PATCH_VER}" +PATCH_URL_BASE="https://github.com/the-horo/ldc-patches/archive/refs/tags"; + DESCRIPTION="LLVM D Compiler" HOMEPAGE="https://github.com/ldc-developers/ldc"; MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +SRC_URI=" + https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz + ${PATCH_URL_BASE}/${PATCH_TAG_NAME}.tar.gz -> ${P}-patches-${PATCH_VER}.tar.gz +" S=${WORKDIR}/${MY_P} LICENSE="BSD" # dmd code + runtime lib @@ -60,19 +67,6 @@ python_check_deps() { python_has_version "dev-python/lit[${PYTHON_USEDEP}]" } -PATCHES=( - "${FILESDIR}"/ldc2-1.15.0-link-defaultlib-shared.patch - "${FILESDIR}/${PN}"-1.36.0-lit-cfg-disable-gdb.patch - - # https://github.com/dlang/phobos/pull/8956 - "${FILESDIR}/${PN}"-1.36.0-fix-phobos-OS-dependent-test-string.patch - # https://github.com/ldc-developers/ldc/issues/4614#issuecomment-2034169152 - "${FILESDIR}/${PN}"-remove-dmd-common-int128-unittest.patch - "${FILESDIR}/${PN}"-cmake-autodetect-and-compiler-rt-fixes-pr-4659.patch - "${FILESDIR}/${PN}"-x86-mangling-test-fix-pr-4661.patch - "${FILESDIR}/${PN}"-x86-tests-avoid-calling-amd64-gcc-pr-4662.patch -) - pkg_setup() { dlang_setup llvm-r1_pkg_setup @@ -80,6 +74,8 @@ pkg_setup() { } src_prepare(){ + apply_patches + # Disable GDB tests by passing GDB_FLAGS=OFF # Put this here to avoid trigerring reconfigurations later on. sed -i 's/\(GDB_FLAGS=\)\S\+/\1OFF/' "${S}"/tests/dmd/CMakeLists.txt @@ -192,3 +188,13 @@ pkg_postinst() { pkg_postrm() { "${EROOT}"/usr/bin/eselect dlang update ldc2 } + +apply_patches() { + local patches_dir="${WORKDIR}/ldc-patches-${PATCH_TAG_NAME}" + local patch + while read -rd '' patch; do + eapply "${patch}" + done < <(find "${patches_dir}" -mindepth 1 -maxdepth 1 \ + -type f -name '*.patch' \ + -print0) +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 6a441c6ceaaef5267545e15f165a835ecefbf1c5 Author: Andrei Horodniceanu proton me> AuthorDate: Thu Sep 12 17:34:41 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Thu Sep 12 19:08:54 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=6a441c6c dev-lang/ldc2: 1.37.0 use external patches Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.37.0.ebuild | 34 -- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 6dce506..4676ed6 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -6,5 +6,6 @@ DIST ldc-1.36.0-src.tar.gz 8551871 BLAKE2B b0f09128ab37e332f2eebab3288cac687f91b DIST ldc-1.37.0-src.tar.gz 8555980 BLAKE2B ac93c903f9dbeec5b69e94c7cdf851ae3fa3168752dceccbd1262fbdae5cdda43e53b82bd7c8b24b0bb2dc06fb00f3b1c74a278a851ea68b948dc7e618460227 SHA512 488451dba58262cf533760f471f707f984d66edeb5c7dfff5a512efa0111742cead4ff23ed5ace39ea4d07e9bac290a846d0df3de49fd3fc276241a771aff0ed DIST ldc-1.38.0-src.tar.gz 8691096 BLAKE2B 7b25ba96c470a707d9ee7660ac030984c2cfecaf757a00015507dfb7c17075132ebcc546562ae700ab43eb19e117b4d1247cc1b2f62f455328a7cf9dc0ddf5d4 SHA512 1540a1a6f4bad3bc93da0f59bc28cd31dd4aeb58b8b4c744a204faa43692a1fe13d010ae56b3369e870a5e58724103b2aee58db8b40925698e7816f78f0f2de3 DIST ldc-1.39.0-src.tar.gz 8554301 BLAKE2B cb1dd5f6b4cc7a7344d8575d1e96fddbd1c34fc0e4f05cf96d29179bec725a997d7d8aee7bf0d97e53d0b36fb108f56e1c55eb66aa93e0075d1beb9d737e21e5 SHA512 d5c91043fa7d5faee9fc231fade52b6ac961907a7f6f8920d8337c9ba0b7052a5f98eb5f23ae56ca93510952c502ca78c9eec1d03f408aaa310fa4e4d57d9519 +DIST ldc2-1.37.0-patches-1.tar.gz 2523 BLAKE2B 397d701de640bc04bdf9246b9f981141287f4bd8069cf1233567f9430652da3fb1b89899b0c8c9a19877d239465a3a4c9758df32ca2dc1cd098c0d729368 SHA512 b24318ec1f484d71c19db013893d94492b5a155f1bd2c5f7c993ad941e19635872b3e4dd15826094c6f80982c956240c58240c7e86f33b5f7af8344eb407090f DIST ldc2-1.38.0-patches-1.tar.gz 8924 BLAKE2B 332ff175f3ba50b2c1c2a4e225a6c584621628fa7eda01bc26f318d04af03c5b40202ce2748392f2e55ce712ee6d8431026703419f278c8a6f38ee57a1601ce3 SHA512 00a84c4a5e3391ef3724b3e41b98af91186fb76a4a74a449cfea5cde86eb14889d6a0f06fb449903e95bda12be1448c3b16164bdc64ea990c933211b304ca2a2 DIST ldc2-1.39.0-patches-1.tar.gz 1176 BLAKE2B 7597fb1917f53ee5ee215cba73b92acf1d8347851d0d71223e5c01421da7ee6fd909ed7da217c99b162f3ca1602cdcddaf680ad13094db8957e98c635c72ecd1 SHA512 f78ddf97bb4ef0167328e1f58a3da7a35ec4a879a6c772f002dc161814bc9ac94b0ff543d3faf533375e0f5a9124a80c44b2371415810f0751617c2f13d56659 diff --git a/dev-lang/ldc2/ldc2-1.37.0.ebuild b/dev-lang/ldc2/ldc2-1.37.0.ebuild index 1367abe..b681cd4 100644 --- a/dev-lang/ldc2/ldc2-1.37.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.37.0.ebuild @@ -8,11 +8,18 @@ LLVM_COMPAT=( {15..17} ) PYTHON_COMPAT=( python3_{10..12} ) inherit cmake llvm-r1 multilib-build multiprocessing python-any-r1 toolchain-funcs +PATCH_VER=1 +PATCH_TAG_NAME="${PV}-patches-${PATCH_VER}" +PATCH_URL_BASE="https://github.com/the-horo/ldc-patches/archive/refs/tags"; + DESCRIPTION="LLVM D Compiler" HOMEPAGE="https://github.com/ldc-developers/ldc"; MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +SRC_URI=" + https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz + ${PATCH_URL_BASE}/${PATCH_TAG_NAME}.tar.gz -> ${P}-patches-${PATCH_VER}.tar.gz +" S=${WORKDIR}/${MY_P} LICENSE="BSD" @@ -54,19 +61,6 @@ python_check_deps() { python_has_version "dev-python/lit[${PYTHON_USEDEP}]" } -PATCHES=( - "${FILESDIR}"/ldc2-1.15.0-link-defaultlib-shared.patch - "${FILESDIR}/${PN}"-1.36.0-disable-compiler-rt-sanitizers-tests.patch - "${FILESDIR}/${PN}"-1.36.0-lit-cfg-disable-gdb.patch - - # https://github.com/dlang/phobos/pull/8956 - "${FILESDIR}/${PN}"-1.36.0-fix-phobos-OS-dependent-test-string.patch - # https://github.com/ldc-developers/ldc/pull/4612 - "${FILESDIR}/${PN}"-1.36.0-tests-dshell-remove--m-switch.patch - # https://github.com/ldc-developers/ldc/issues/4614#issuecomment-2034169152 - "${FILESDIR}/${PN}"-remove-dmd-common-int128-unittest.patch -) - pkg_setup() { dlang_setup llvm-r1_pkg_setup @@ -74,6 +68,8 @@ pkg_setup() { } src_prepare(){ + apply_patches + # Disable GDB tests by passing GDB_FLAGS=OFF # Put this here to avoid trigerring reconfigurations later on. sed -i 's/\(GDB_FLAGS=\)\S\+/\1OFF/' "${S}"/tests/dmd/CMakeLists.txt @@ -193,3 +189,13 @@ pkg_postinst() { pkg_postrm() { "${EROOT}"/usr/bin/eselect dlang update ldc2 } + +apply_patches() { + local patches_dir="${WORKDIR}/ldc-patches-${PATCH_TAG_NAME}" + local patch + while read -rd '' patch; do +
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/, eclass/, profiles/
commit: 1e1eecea2dadd260c4d83dad658f20fc90fd42a5 Author: Andrei Horodniceanu proton me> AuthorDate: Sun Jul 7 15:00:01 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Sun Jul 7 15:00:01 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=1e1eecea dev-lang/ldc2: add 1.39.0 The LICENSE has been corrected as I've mistaken the license of the valgrind headers as being BSD when, in fact, it is BZIP2. The other change to LICENSE, RSA being replaced by `|| ( CC0-1.0 Apache-2.0 )' is because some internal hashing implementation has changed. The arm64 keyword has been dropped temporarily as I find myself without the hardware to test it. Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.39.0.ebuild | 181 +++ eclass/dlang-compilers-r1.eclass | 1 + profiles/use.desc| 2 + 4 files changed, 185 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 0aa65e2..6d39aef 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -5,3 +5,4 @@ DIST ldc-1.35.0-src.tar.gz 8241960 BLAKE2B fb531841e57225f82cddf5135d0b0da98624d DIST ldc-1.36.0-src.tar.gz 8551871 BLAKE2B b0f09128ab37e332f2eebab3288cac687f91b696ba758d9ecd6fc4d98dc70d13e6fc4e02878028ac530cc9d9449d1148c8c3ed052fecfb18c95bd76437537467 SHA512 e8060ae30ddf659c51b2e57989b14f1d94c58537a3aa0c5afd3cf2906503d66421598014c33fdeb063a5aaea00034b4b11769a2c07cc2dabd7644840241183b4 DIST ldc-1.37.0-src.tar.gz 8555980 BLAKE2B ac93c903f9dbeec5b69e94c7cdf851ae3fa3168752dceccbd1262fbdae5cdda43e53b82bd7c8b24b0bb2dc06fb00f3b1c74a278a851ea68b948dc7e618460227 SHA512 488451dba58262cf533760f471f707f984d66edeb5c7dfff5a512efa0111742cead4ff23ed5ace39ea4d07e9bac290a846d0df3de49fd3fc276241a771aff0ed DIST ldc-1.38.0-src.tar.gz 8691096 BLAKE2B 7b25ba96c470a707d9ee7660ac030984c2cfecaf757a00015507dfb7c17075132ebcc546562ae700ab43eb19e117b4d1247cc1b2f62f455328a7cf9dc0ddf5d4 SHA512 1540a1a6f4bad3bc93da0f59bc28cd31dd4aeb58b8b4c744a204faa43692a1fe13d010ae56b3369e870a5e58724103b2aee58db8b40925698e7816f78f0f2de3 +DIST ldc-1.39.0-src.tar.gz 8554301 BLAKE2B cb1dd5f6b4cc7a7344d8575d1e96fddbd1c34fc0e4f05cf96d29179bec725a997d7d8aee7bf0d97e53d0b36fb108f56e1c55eb66aa93e0075d1beb9d737e21e5 SHA512 d5c91043fa7d5faee9fc231fade52b6ac961907a7f6f8920d8337c9ba0b7052a5f98eb5f23ae56ca93510952c502ca78c9eec1d03f408aaa310fa4e4d57d9519 diff --git a/dev-lang/ldc2/ldc2-1.39.0.ebuild b/dev-lang/ldc2/ldc2-1.39.0.ebuild new file mode 100644 index 000..6ddfbce --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.39.0.ebuild @@ -0,0 +1,181 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Upstream supports LLVM 15.0 through 18.0. +LLVM_COMPAT=( {15..18} ) +PYTHON_COMPAT=( python3_{10..12} ) +inherit cmake llvm-r1 multilib-build multiprocessing python-any-r1 toolchain-funcs + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} +LICENSE="BSD" +# dmd code + runtime lib, see dmd-r1.eclass for more details +LICENSE+=" Boost-1.0 || ( CC0-1.0 Apache-2.0 ) BZIP2 ZLIB curl public-domain" +# llvm bits +LICENSE+=" Apache-2.0-with-LLVM-exceptions UoI-NCSA" +# old gdc + dmd code +LICENSE+=" GPL-2+ Artistic" + +# Only increase subslot in case of ABI breakage +SLOT="$(ver_cut 1-2)/0" +KEYWORDS="~amd64 ~x86" + +IUSE="static-libs test" +RESTRICT="!test? ( test )" + +DLANG_COMPAT=( dmd-2_{106..109} gdc-1{3..4} ldc2-1_{35..39} ) + +inherit dlang-single + +REQUIRED_USE=${DLANG_REQUIRED_USE} +DEPEND=" + ${DLANG_DEPS} + $(llvm_gen_dep ' + sys-devel/llvm:${LLVM_SLOT}= + ') + net-misc/curl[${MULTILIB_USEDEP}] +" +IDEPEND=">=app-eselect/eselect-dlang-20140709" +RDEPEND=" + ${DEPEND} + ${IDEPEND} +" +BDEPEND=" + ${DLANG_DEPS} + test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/lit[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + python_has_version "dev-python/lit[${PYTHON_USEDEP}]" +} + +PATCHES=( + "${FILESDIR}"/ldc2-1.15.0-link-defaultlib-shared.patch + "${FILESDIR}/${PN}"-1.36.0-lit-cfg-disable-gdb.patch + + # https://github.com/ldc-developers/ldc/issues/4614#issuecomment-2034169152 + "${FILESDIR}/${PN}"-remove-dmd-common-int128-unittest.patch +) + +pkg_setup() { + dlang_setup + llvm-r1_pkg_setup + use test && python_setup +} + +src_prepare(){ + # Disable GDB tests by passing GDB_FLAGS=OFF + # Put this here to avoid trigerring reconfigurations later on. + sed -i 's/\(GDB_FLAGS=\)\S\+/\1OFF/' "${S}"/tests/dmd/CMakeLists.txt + + cmake_src_prepare +} + +src
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/, dev-lang/ldc2/files/
commit: 0c9782ce5fe4b41cab39e44c0245eb95148a9c8d Author: Andrei Horodniceanu proton me> AuthorDate: Fri Jul 5 17:51:11 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Fri Jul 5 17:51:28 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=0c9782ce dev-lang/ldc2: remove github PRs from SRC_URI and put them in FILESDIR pkgcheck has warned me that fetching them from github may lead to them changing, which is exactly what happened leading to manifest failures. I did it because I thought that, since the PR is closed and I'm the author, the possibility of it changing is slim and the alternative was to get a size violation warning from pkgcheck. I have now learned why I shouldn't ignore pkgcheck errors and, if commits need to be taken from upstream, I should keep their size to a minimum and only backport commits that fix stuff, not commits which add features. Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/Manifest | 3 - ...-autodetect-and-compiler-rt-fixes-pr-4659.patch | 585 + .../files/ldc2-x86-mangling-test-fix-pr-4661.patch | 55 ++ ...x86-tests-avoid-calling-amd64-gcc-pr-4662.patch | 39 ++ dev-lang/ldc2/ldc2-1.38.0.ebuild | 12 +- 5 files changed, 683 insertions(+), 11 deletions(-) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index a4a3083..0aa65e2 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -5,6 +5,3 @@ DIST ldc-1.35.0-src.tar.gz 8241960 BLAKE2B fb531841e57225f82cddf5135d0b0da98624d DIST ldc-1.36.0-src.tar.gz 8551871 BLAKE2B b0f09128ab37e332f2eebab3288cac687f91b696ba758d9ecd6fc4d98dc70d13e6fc4e02878028ac530cc9d9449d1148c8c3ed052fecfb18c95bd76437537467 SHA512 e8060ae30ddf659c51b2e57989b14f1d94c58537a3aa0c5afd3cf2906503d66421598014c33fdeb063a5aaea00034b4b11769a2c07cc2dabd7644840241183b4 DIST ldc-1.37.0-src.tar.gz 8555980 BLAKE2B ac93c903f9dbeec5b69e94c7cdf851ae3fa3168752dceccbd1262fbdae5cdda43e53b82bd7c8b24b0bb2dc06fb00f3b1c74a278a851ea68b948dc7e618460227 SHA512 488451dba58262cf533760f471f707f984d66edeb5c7dfff5a512efa0111742cead4ff23ed5ace39ea4d07e9bac290a846d0df3de49fd3fc276241a771aff0ed DIST ldc-1.38.0-src.tar.gz 8691096 BLAKE2B 7b25ba96c470a707d9ee7660ac030984c2cfecaf757a00015507dfb7c17075132ebcc546562ae700ab43eb19e117b4d1247cc1b2f62f455328a7cf9dc0ddf5d4 SHA512 1540a1a6f4bad3bc93da0f59bc28cd31dd4aeb58b8b4c744a204faa43692a1fe13d010ae56b3369e870a5e58724103b2aee58db8b40925698e7816f78f0f2de3 -DIST ldc2-pr-4659.patch 29459 BLAKE2B d4a24ea28d8ddca26924051973aa9ac27489c399849137996043fa8023ae43353fa80c8aa4cbe504b3cc1f45a7a25ec66b01a14dc072f37ea74286cf203fe7bf SHA512 d1a4fd76b3aa4a1527cf4434129918da821c52d74cdfb044c22e177db38fcbca692e1b597a2f2658c2bf26d6e581674637d4aa77cb464bf12535ba1161c6dced -DIST ldc2-pr-4661.patch 2230 BLAKE2B 0819499e30b90c4089ae5f7295e67675def2579c374f40d0a0918f7563235768350c2b5ff9d32619f9f5c63ace1f7386a6fc3301f92b30d03bd39ddcefeb17cc SHA512 a3215efd1771ddf185ccbe360c66372d0f7cb450c0094c9b96e9df3bd5596dfb2cc9841e205076c339fd01e3864ab4a859074e836f7420b2856d1ee6062fe12c -DIST ldc2-pr-4662.patch 1438 BLAKE2B e9f8027bba8723f766d33fc049058dd3206914a7cc0890bed361ceeff0a3c9684755cf6d70133409b57e54718855533c78f61d1b6af0e77532e5c7174409d696 SHA512 f35242fd2d97c7f40028b468b24bfb23d46a611d3bcc9aa58a63fe3c0aea19812bb5d9862927a3bd65d46a58fa0a61198df6d2b9f5cb894d92f1b9e7e385a4e8 diff --git a/dev-lang/ldc2/files/ldc2-cmake-autodetect-and-compiler-rt-fixes-pr-4659.patch b/dev-lang/ldc2/files/ldc2-cmake-autodetect-and-compiler-rt-fixes-pr-4659.patch new file mode 100644 index 000..7af27a9 --- /dev/null +++ b/dev-lang/ldc2/files/ldc2-cmake-autodetect-and-compiler-rt-fixes-pr-4659.patch @@ -0,0 +1,585 @@ +# A lot of unrelated work in one PR. +# - It changes some wrong autodetection to lower to amount of stuff being +# built. +# - It better supports compiler-rt-sanitizers by handling the way they +# are installed in Gentoo. +# - It adds some more fixes for upstream which I didn't take out of the +# the PR to keep it as is. +From 58550bbd27e572d1706b04f39132d60c5c2797ac Mon Sep 17 00:00:00 2001 +From: Andrei Horodniceanu +Date: Wed, 15 May 2024 18:33:46 +0300 +Subject: [PATCH 1/6] utils/CMakeLists.txt: Fix typo split-filea => split-file + +Signed-off-by: Andrei Horodniceanu +--- + utils/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt +index 6b61a068373..379edf2c1b4 100644 +--- a/utils/CMakeLists.txt b/utils/CMakeLists.txt +@@ -68,7 +68,7 @@ set_target_properties( + target_link_libraries(not ${LLVM_LIBRARIES} ${CMAKE_DL_LIBS} ${LLVM_LDFLAGS}) + endif() + +-if ((TARGET split-file) OR (EXISTS ${LLVM_ROOT_DIR}/bin/split-filea)) ++if ((TARGET split-file) OR (EXISTS ${LLVM_ROOT_DIR}/bin/split-file)) + # already provided by LLVM + message(STATUS "Skip building split-file, it is already provided by LLVM")
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: efa3aea95c26d5fa2137d7809efc0d7733e21319 Author: Andrei Horodniceanu proton me> AuthorDate: Sat Jun 1 11:37:06 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Sat Jun 1 16:54:02 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=efa3aea9 dev-lang/ldc2: enable gdc-14 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.38.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/ldc2/ldc2-1.38.0.ebuild b/dev-lang/ldc2/ldc2-1.38.0.ebuild index 404d535..d8ef981 100644 --- a/dev-lang/ldc2/ldc2-1.38.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.38.0.ebuild @@ -34,7 +34,7 @@ KEYWORDS="~amd64 ~arm64 ~x86" IUSE="static-libs test" RESTRICT="!test? ( test )" -DLANG_COMPAT=( dmd-2_{106..108} gdc-13 ldc2-1_{35..38} ) +DLANG_COMPAT=( dmd-2_{106..108} gdc-1{3..4} ldc2-1_{35..38} ) inherit dlang-single
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: bd7877994e9bad50415a6b7551d946adfd4e86ca Author: Andrei Horodniceanu proton me> AuthorDate: Thu May 30 16:50:52 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Thu May 30 16:50:52 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=bd787799 dev-lang/ldc2: drop 1.36.0-r1 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.36.0-r1.ebuild | 89 - 1 file changed, 89 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.36.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.36.0-r1.ebuild deleted file mode 100644 index bc995b9..000 --- a/dev-lang/ldc2/ldc2-1.36.0-r1.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic multilib-build cmake llvm - -MY_PV="${PV//_/-}" -MY_P="ldc-${MY_PV}-src" -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; -S=${WORKDIR}/${MY_P} - -DESCRIPTION="LLVM D Compiler" -HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="~amd64 ~arm64 ~x86" -LICENSE="BSD" -SLOT="$(ver_cut 1-2)/$(ver_cut 3)" - -IUSE="static-libs" - -# Upstream supports LLVM 11.0 through 17.0. -DEPEND=" - || ( - sys-devel/llvm:17 - sys-devel/llvm:16 - sys-devel/llvm:15 - ) - =app-eselect/eselect-dlang-20140709" -RDEPEND=" - ${DEPEND} - ${IDEPEND}" - -LLVM_MAX_SLOT=17 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" - -# For now, we support amd64 multilib. Anyone is free to add more support here. -MULTILIB_COMPAT=( abi_x86_{32,64} ) - -# Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.100-2.106" -DLANG_PACKAGE_TYPE="single" - -inherit dlang - -src_prepare() { - cmake_src_prepare -} - -d_src_configure() { - # Make sure libphobos2 is installed into ldc2's directory. - export LIBDIR_${ABI}="${LIBDIR_HOST}" - # We disable assertions so we have to apply the same workaround as for - # sys-devel/llvm: add -DNDEBUG to CPPFLAGS. - local CPPFLAGS="${CPPFLAGS} -DNDEBUG" - # https://bugs.gentoo.org/show_bug.cgi?id=922590 - append-flags -fno-strict-aliasing - local mycmakeargs=( - -DD_VERSION=2 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) - -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" - -DLDC_WITH_LLD=OFF - -DCOMPILE_D_MODULES_SEPARATELY=ON - -DLDC_ENABLE_ASSERTIONS=OFF - ) - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) - cmake_src_configure -} - -d_src_compile() -{ - cmake_src_compile -} - -d_src_install() { - cmake_src_install - - rm -rf "${ED}"/usr/share/bash-completion -} - -pkg_postinst() { - # Update active ldc2 - "${ROOT}"/usr/bin/eselect dlang update ldc2 -} - -pkg_postrm() { - "${ROOT}"/usr/bin/eselect dlang update ldc2 -}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/, eclass/, profiles/
commit: e7f04fa3eacd05d8221f72fde0c2c87db1e9dee0 Author: Andrei Horodniceanu proton me> AuthorDate: Sun May 19 11:28:51 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Tue May 28 19:33:25 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=e7f04fa3 dev-lang/ldc2: add 1.38.0 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/Manifest | 4 + dev-lang/ldc2/ldc2-1.38.0.ebuild | 198 +++ eclass/dlang-compilers-r1.eclass | 1 + profiles/use.desc| 1 + 4 files changed, 204 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 4ae4b26..a4a3083 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -4,3 +4,7 @@ DIST ldc-1.34.0-src.tar.gz 8176200 BLAKE2B 048975a3142da860540ba5378be5214884eb4 DIST ldc-1.35.0-src.tar.gz 8241960 BLAKE2B fb531841e57225f82cddf5135d0b0da98624d33aba76a1d39d98b13deb319556eaad3599ba1461f9f509c6b7b535632b85805de2433bae4ccf50c691c116da3f SHA512 f85871832455a8e3208f7f905b04ac249a988f8ea2cfe81ed2a67b56404d11a08653b13b6019f45d9dbcf6fbd60086e6aabb13307908d1bbf6d86bd91462dfaa DIST ldc-1.36.0-src.tar.gz 8551871 BLAKE2B b0f09128ab37e332f2eebab3288cac687f91b696ba758d9ecd6fc4d98dc70d13e6fc4e02878028ac530cc9d9449d1148c8c3ed052fecfb18c95bd76437537467 SHA512 e8060ae30ddf659c51b2e57989b14f1d94c58537a3aa0c5afd3cf2906503d66421598014c33fdeb063a5aaea00034b4b11769a2c07cc2dabd7644840241183b4 DIST ldc-1.37.0-src.tar.gz 8555980 BLAKE2B ac93c903f9dbeec5b69e94c7cdf851ae3fa3168752dceccbd1262fbdae5cdda43e53b82bd7c8b24b0bb2dc06fb00f3b1c74a278a851ea68b948dc7e618460227 SHA512 488451dba58262cf533760f471f707f984d66edeb5c7dfff5a512efa0111742cead4ff23ed5ace39ea4d07e9bac290a846d0df3de49fd3fc276241a771aff0ed +DIST ldc-1.38.0-src.tar.gz 8691096 BLAKE2B 7b25ba96c470a707d9ee7660ac030984c2cfecaf757a00015507dfb7c17075132ebcc546562ae700ab43eb19e117b4d1247cc1b2f62f455328a7cf9dc0ddf5d4 SHA512 1540a1a6f4bad3bc93da0f59bc28cd31dd4aeb58b8b4c744a204faa43692a1fe13d010ae56b3369e870a5e58724103b2aee58db8b40925698e7816f78f0f2de3 +DIST ldc2-pr-4659.patch 29459 BLAKE2B d4a24ea28d8ddca26924051973aa9ac27489c399849137996043fa8023ae43353fa80c8aa4cbe504b3cc1f45a7a25ec66b01a14dc072f37ea74286cf203fe7bf SHA512 d1a4fd76b3aa4a1527cf4434129918da821c52d74cdfb044c22e177db38fcbca692e1b597a2f2658c2bf26d6e581674637d4aa77cb464bf12535ba1161c6dced +DIST ldc2-pr-4661.patch 2230 BLAKE2B 0819499e30b90c4089ae5f7295e67675def2579c374f40d0a0918f7563235768350c2b5ff9d32619f9f5c63ace1f7386a6fc3301f92b30d03bd39ddcefeb17cc SHA512 a3215efd1771ddf185ccbe360c66372d0f7cb450c0094c9b96e9df3bd5596dfb2cc9841e205076c339fd01e3864ab4a859074e836f7420b2856d1ee6062fe12c +DIST ldc2-pr-4662.patch 1438 BLAKE2B e9f8027bba8723f766d33fc049058dd3206914a7cc0890bed361ceeff0a3c9684755cf6d70133409b57e54718855533c78f61d1b6af0e77532e5c7174409d696 SHA512 f35242fd2d97c7f40028b468b24bfb23d46a611d3bcc9aa58a63fe3c0aea19812bb5d9862927a3bd65d46a58fa0a61198df6d2b9f5cb894d92f1b9e7e385a4e8 diff --git a/dev-lang/ldc2/ldc2-1.38.0.ebuild b/dev-lang/ldc2/ldc2-1.38.0.ebuild new file mode 100644 index 000..404d535 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.38.0.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Upstream supports LLVM 11.0 through 18.0. +LLVM_COMPAT=( {15..18} ) +PYTHON_COMPAT=( python3_{10..12} ) +inherit cmake llvm-r1 multilib-build multiprocessing python-any-r1 toolchain-funcs + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +PR_URL="https://github.com/ldc-developers/ldc/pull"; +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz + ${PR_URL}/4659.patch -> ${PN}-pr-4659.patch + ${PR_URL}/4661.patch -> ${PN}-pr-4661.patch + ${PR_URL}/4662.patch -> ${PN}-pr-4662.patch +" +S=${WORKDIR}/${MY_P} +LICENSE="BSD" +# dmd code + runtime lib +LICENSE+=" Boost-1.0 RSA BSD ZLIB curl public-domain" +# llvm bits +LICENSE+=" Apache-2.0-with-LLVM-exceptions UoI-NCSA" +# old gdc + dmd code +LICENSE+=" GPL-2+ Artistic" + +# Only increase subslot in case of ABI breakage +SLOT="$(ver_cut 1-2)/0" +KEYWORDS="~amd64 ~arm64 ~x86" + +IUSE="static-libs test" +RESTRICT="!test? ( test )" + +DLANG_COMPAT=( dmd-2_{106..108} gdc-13 ldc2-1_{35..38} ) + +inherit dlang-single + +REQUIRED_USE=${DLANG_REQUIRED_USE} +DEPEND=" + ${DLANG_DEPS} + $(llvm_gen_dep ' + sys-devel/llvm:${LLVM_SLOT}= + ') + net-misc/curl[${MULTILIB_USEDEP}] +" +IDEPEND=">=app-eselect/eselect-dlang-20140709" +RDEPEND=" + ${DEPEND} + ${IDEPEND} +" +BDEPEND=" + ${DLANG_DEPS} + test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/lit[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { +
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/, dev-lang/ldc2/files/
commit: 79bb15a181cd764a02097382d13c5461eb0ef4e1 Author: Andrei Horodniceanu proton me> AuthorDate: Fri Mar 22 06:53:22 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Sat Apr 13 23:00:58 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=79bb15a1 dev-lang/ldc2: add tests Signed-off-by: Andrei Horodniceanu proton.me> ...36.0-disable-compiler-rt-sanitizers-tests.patch | 56 + 36.0-fix-phobos-OS-dependent-test-string.patch | 26 .../files/ldc2-1.36.0-lit-cfg-disable-gdb.patch| 13 ++ ...ldc2-1.36.0-tests-dshell-remove--m-switch.patch | 13 ++ .../ldc2-remove-dmd-common-int128-unittest.patch | 17 +++ dev-lang/ldc2/ldc2-1.36.0-r2.ebuild| 138 +++-- 6 files changed, 255 insertions(+), 8 deletions(-) diff --git a/dev-lang/ldc2/files/ldc2-1.36.0-disable-compiler-rt-sanitizers-tests.patch b/dev-lang/ldc2/files/ldc2-1.36.0-disable-compiler-rt-sanitizers-tests.patch new file mode 100644 index 000..e086e2d --- /dev/null +++ b/dev-lang/ldc2/files/ldc2-1.36.0-disable-compiler-rt-sanitizers-tests.patch @@ -0,0 +1,56 @@ +diff --git a/tests/PGO/lit.local.cfg b/tests/PGO/lit.local.cfg +index 9638e26..4578f1a 100644 +--- a/tests/PGO/lit.local.cfg b/tests/PGO/lit.local.cfg +@@ -1,2 +1,2 @@ + # Add "PGO_RT" feature, assuming the `profile` compiler-rt library is available +-config.available_features.add('PGO_RT') ++#config.available_features.add('PGO_RT') +diff --git a/tests/instrument/lit.local.cfg b/tests/instrument/lit.local.cfg +index 9366e7b..5030a1e 100644 +--- a/tests/instrument/lit.local.cfg b/tests/instrument/lit.local.cfg +@@ -2,4 +2,5 @@ import platform + + # Add "XRay_RT" feature on non-Windows, assuming the compiler-rt libraries are available + if (platform.system() != 'Windows'): +-config.available_features.add('XRay_RT') ++#config.available_features.add('XRay_RT') ++pass +diff --git a/tests/sanitizers/lit.local.cfg b/tests/sanitizers/lit.local.cfg +index ce12558..6bd5021 100644 +--- a/tests/sanitizers/lit.local.cfg b/tests/sanitizers/lit.local.cfg +@@ -4,24 +4,27 @@ import platform + sys = platform.system() + + # Add "LSan" feature, assuming the compiler-rt library is available +-config.available_features.add('LSan') ++#config.available_features.add('LSan') + + # FreeBSD TSan doesn't seem to work, + # Linux TSan currently only works with static druntime, + # and there's no Windows TSan (yet?). + if (sys != 'FreeBSD') and (sys != 'Windows') and not (sys == 'Linux' and config.shared_rt_libs_only): +-config.available_features.add('TSan') ++#config.available_features.add('TSan') ++pass + + # FreeBSD ASan and MSan don't cope well with ASLR (might do with FreeBSD 14 according to https://github.com/llvm/llvm-project/pull/73439) + if sys != 'FreeBSD': +-config.available_features.add('ASan') ++#config.available_features.add('ASan') ++pass + + # MSan is supported on Linux, FreeBSD (modulo ASLR issue), and OpenBSD: https://clang.llvm.org/docs/MemorySanitizer.html#supported-platforms + if (sys == 'Linux') or (sys == 'OpenBSD'): +-config.available_features.add('MSan') ++#config.available_features.add('MSan') ++pass + + # Add "Fuzzer" feature, assuming the compiler-rt library is available +-config.available_features.add('Fuzzer') ++#config.available_features.add('Fuzzer') + + if 'ASan' in config.available_features: + # On Darwin, ASan defaults to `abort_on_error=1`, which would make tests run diff --git a/dev-lang/ldc2/files/ldc2-1.36.0-fix-phobos-OS-dependent-test-string.patch b/dev-lang/ldc2/files/ldc2-1.36.0-fix-phobos-OS-dependent-test-string.patch new file mode 100644 index 000..5b67c5d --- /dev/null +++ b/dev-lang/ldc2/files/ldc2-1.36.0-fix-phobos-OS-dependent-test-string.patch @@ -0,0 +1,26 @@ +diff --git a/runtime/phobos/std/file.d b/runtime/phobos/std/file.d +index 5b8925d..f1b19b3 100644 +--- a/runtime/phobos/std/file.d b/runtime/phobos/std/file.d +@@ -1082,6 +1082,7 @@ private void removeImpl(scope const(char)[] name, scope const(FSChar)* namez) @t + + @safe unittest + { ++import std.algorithm.searching : startsWith; + import std.exception : collectExceptionMsg, assertThrown; + + string filename = null; // e.g. as returned by File.tmpfile.name +@@ -1090,12 +1091,10 @@ private void removeImpl(scope const(char)[] name, scope const(FSChar)* namez) @t + { + // exact exception message is OS-dependent + auto msg = filename.remove.collectExceptionMsg!FileException; +-assert("Failed to remove file (null): Bad address" == msg, msg); ++assert(msg.startsWith("Failed to remove file (null):"), msg); + } + else version (Windows) + { +-import std.algorithm.searching : startsWith; +- + // don't test exact message on windows, it's language dependent + auto msg = filename.remove.collectExceptionMsg!FileException; + ass
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 251def323a040201f48b3fae348f6dee9af3e064 Author: Andrei Horodniceanu proton me> AuthorDate: Mon Mar 4 19:07:23 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Sat Apr 13 22:47:30 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=251def32 dev-lang/ldc2: port to dlang-single.eclass Additional changes: - remove the useless MULTILIB_COMPAT line since the variable was set post inherit and it is unwanted since ldc2 supports arm64. - change ROOT to EROOT in pkg_post_* - use llvm-r1.eclass instead of llvm.eclass Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.36.0-r2.ebuild | 79 + 1 file changed, 79 insertions(+) diff --git a/dev-lang/ldc2/ldc2-1.36.0-r2.ebuild b/dev-lang/ldc2/ldc2-1.36.0-r2.ebuild new file mode 100644 index 000..84a0413 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.36.0-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic multilib-build cmake + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~arm64 ~x86" +LICENSE="BSD" +# For first bump, set the subslot below to 0 and only increase if there +# is an actual ABI bkreakage. +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" +RESTRICT="test" + +# Upstream supports LLVM 11.0 through 17.0. +LLVM_COMPAT=( {15..17} ) +DLANG_COMPAT=( dmd-2_{106..107} gdc-13 ldc2-1_{35..36} ) + +inherit llvm-r1 dlang-single + +REQUIRED_USE=${DLANG_REQUIRED_USE} +DEPEND=" + ${DLANG_DEPS} + $(llvm_gen_dep ' + sys-devel/llvm:${LLVM_SLOT}= + ') +" +IDEPEND=">=app-eselect/eselect-dlang-20140709" +RDEPEND=" + ${DEPEND} + ${IDEPEND} +" +BDEPEND=${DLANG_DEPS} + +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +src_configure() { + # We disable assertions so we have to apply the same workaround as for + # sys-devel/llvm: add -DNDEBUG to CPPFLAGS. + local CPPFLAGS="${CPPFLAGS} -DNDEBUG" + # https://bugs.gentoo.org/show_bug.cgi?id=922590 + append-flags -fno-strict-aliasing + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="$(dlang_get_dmdw) $(dlang_get_dmdw_dcflags)" + -DLDC_WITH_LLD=OFF + -DCOMPILE_D_MODULES_SEPARATELY=ON + -DLDC_ENABLE_ASSERTIONS=OFF + -DBUILD_SHARED_LIBS=$(usex static-libs BOTH ON) + ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${EROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${EROOT}"/usr/bin/eselect dlang update ldc2 +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 429d6ccc4110362720d455d36d7779975b70177a Author: Andrei Horodniceanu proton me> AuthorDate: Wed Mar 13 21:26:16 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Mar 13 21:26:16 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=429d6ccc dev-lang/ldc2: stabilize 1.35.0-r2 for amd64, x86 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.35.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/ldc2/ldc2-1.35.0-r2.ebuild b/dev-lang/ldc2/ldc2-1.35.0-r2.ebuild index ae28b6e..aa6edf1 100644 --- a/dev-lang/ldc2/ldc2-1.35.0-r2.ebuild +++ b/dev-lang/ldc2/ldc2-1.35.0-r2.ebuild @@ -12,7 +12,7 @@ S=${WORKDIR}/${MY_P} DESCRIPTION="LLVM D Compiler" HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 x86" LICENSE="BSD" SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: e7f724bb736cf0df737b39fa41a8a11600876592 Author: Andrei Horodniceanu proton me> AuthorDate: Wed Mar 13 21:27:24 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Mar 13 21:27:24 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=e7f724bb dev-lang/ldc2: drop 1.34.0 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.34.0.ebuild | 79 1 file changed, 79 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.34.0.ebuild b/dev-lang/ldc2/ldc2-1.34.0.ebuild deleted file mode 100644 index f055ccb..000 --- a/dev-lang/ldc2/ldc2-1.34.0.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit multilib-build cmake llvm - -MY_PV="${PV//_/-}" -MY_P="ldc-${MY_PV}-src" -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; -S=${WORKDIR}/${MY_P} - -DESCRIPTION="LLVM D Compiler" -HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="amd64 ~arm64 x86" -LICENSE="BSD" -SLOT="$(ver_cut 1-2)/$(ver_cut 3)" - -IUSE="static-libs" - -# Upstream supports LLVM 11.0 through 16. -RDEPEND=" - || ( - sys-devel/llvm:16 - sys-devel/llvm:15 - sys-devel/llvm:14 - ) - =app-eselect/eselect-dlang-20140709" -DEPEND="${RDEPEND}" -LLVM_MAX_SLOT=16 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" - -# For now, we support amd64 multilib. Anyone is free to add more support here. -MULTILIB_COMPAT=( abi_x86_{32,64} ) - -# Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" -DLANG_PACKAGE_TYPE="single" - -inherit dlang - -src_prepare() { - cmake_src_prepare -} - -d_src_configure() { - # Make sure libphobos2 is installed into ldc2's directory. - export LIBDIR_${ABI}="${LIBDIR_HOST}" - local mycmakeargs=( - -DD_VERSION=2 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) - -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" - -DLDC_WITH_LLD=OFF - ) - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) - cmake_src_configure -} - -d_src_compile() -{ - cmake_src_compile -} - -d_src_install() { - cmake_src_install - - rm -rf "${ED}"/usr/share/bash-completion -} - -pkg_postinst() { - # Update active ldc2 - "${ROOT}"/usr/bin/eselect dlang update ldc2 -} - -pkg_postrm() { - "${ROOT}"/usr/bin/eselect dlang update ldc2 -}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 5270507f19e72d41c7cf5c8a930d37838fbe1d52 Author: Andrei Horodniceanu proton me> AuthorDate: Wed Mar 13 21:27:43 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Mar 13 21:27:43 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=5270507f dev-lang/ldc2: drop 1.35.0 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.35.0.ebuild | 82 1 file changed, 82 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.35.0.ebuild b/dev-lang/ldc2/ldc2-1.35.0.ebuild deleted file mode 100644 index cd6d066..000 --- a/dev-lang/ldc2/ldc2-1.35.0.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit multilib-build cmake llvm - -MY_PV="${PV//_/-}" -MY_P="ldc-${MY_PV}-src" -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; -S=${WORKDIR}/${MY_P} - -DESCRIPTION="LLVM D Compiler" -HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="amd64 ~arm64 x86" -LICENSE="BSD" -SLOT="$(ver_cut 1-2)/$(ver_cut 3)" - -IUSE="static-libs" - -# Upstream supports LLVM 11.0 through 16.0. -DEPEND=" - || ( - sys-devel/llvm:16 - sys-devel/llvm:15 - sys-devel/llvm:14 - ) - =app-eselect/eselect-dlang-20140709" -RDEPEND=" - ${DEPEND} - ${IDEPEND}" - -LLVM_MAX_SLOT=16 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" - -# For now, we support amd64 multilib. Anyone is free to add more support here. -MULTILIB_COMPAT=( abi_x86_{32,64} ) - -# Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" -DLANG_PACKAGE_TYPE="single" - -inherit dlang - -src_prepare() { - cmake_src_prepare -} - -d_src_configure() { - # Make sure libphobos2 is installed into ldc2's directory. - export LIBDIR_${ABI}="${LIBDIR_HOST}" - local mycmakeargs=( - -DD_VERSION=2 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) - -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" - -DLDC_WITH_LLD=OFF - ) - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) - cmake_src_configure -} - -d_src_compile() -{ - cmake_src_compile -} - -d_src_install() { - cmake_src_install - - rm -rf "${ED}"/usr/share/bash-completion -} - -pkg_postinst() { - # Update active ldc2 - "${ROOT}"/usr/bin/eselect dlang update ldc2 -} - -pkg_postrm() { - "${ROOT}"/usr/bin/eselect dlang update ldc2 -}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 67a4acd140ec6a9207b42b0c60d43346a1d3523f Author: Andrei Horodniceanu proton me> AuthorDate: Wed Mar 13 21:26:56 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Mar 13 21:26:56 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=67a4acd1 dev-lang/ldc2: drop 1.33.0 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.33.0.ebuild | 78 1 file changed, 78 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.33.0.ebuild b/dev-lang/ldc2/ldc2-1.33.0.ebuild deleted file mode 100644 index 37cc843..000 --- a/dev-lang/ldc2/ldc2-1.33.0.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit multilib-build cmake llvm - -MY_PV="${PV//_/-}" -MY_P="ldc-${MY_PV}-src" -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; -S=${WORKDIR}/${MY_P} - -DESCRIPTION="LLVM D Compiler" -HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="amd64 ~arm64 x86" -LICENSE="BSD" -SLOT="$(ver_cut 1-2)/$(ver_cut 3)" - -IUSE="static-libs" - -# Upstream supports LLVM 9.0 through 15.0. -RDEPEND=" - || ( - sys-devel/llvm:15 - sys-devel/llvm:14 - ) - =app-eselect/eselect-dlang-20140709" -DEPEND="${RDEPEND}" -LLVM_MAX_SLOT=15 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" - -# For now, we support amd64 multilib. Anyone is free to add more support here. -MULTILIB_COMPAT=( abi_x86_{32,64} ) - -# Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" -DLANG_PACKAGE_TYPE="single" - -inherit dlang - -src_prepare() { - cmake_src_prepare -} - -d_src_configure() { - # Make sure libphobos2 is installed into ldc2's directory. - export LIBDIR_${ABI}="${LIBDIR_HOST}" - local mycmakeargs=( - -DD_VERSION=2 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) - -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" - -DLDC_WITH_LLD=OFF - ) - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) - cmake_src_configure -} - -d_src_compile() -{ - cmake_src_compile -} - -d_src_install() { - cmake_src_install - - rm -rf "${ED}"/usr/share/bash-completion -} - -pkg_postinst() { - # Update active ldc2 - "${ROOT}"/usr/bin/eselect dlang update ldc2 -} - -pkg_postrm() { - "${ROOT}"/usr/bin/eselect dlang update ldc2 -}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 1091f18061a6e5bdeb0eda421b637b3bcda860f8 Author: Andrei Horodniceanu proton me> AuthorDate: Wed Mar 13 21:25:23 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Mar 13 21:25:23 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=1091f180 dev-lang/ldc2: stabilize 1.33.0-r1 for amd64, x86 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.33.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild index 4d52b34..5f31254 100644 --- a/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild @@ -12,7 +12,7 @@ S=${WORKDIR}/${MY_P} DESCRIPTION="LLVM D Compiler" HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 x86" LICENSE="BSD" SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 1c137bd73ba830f0b4552b1a5d7f2a896c3a6946 Author: Andrei Horodniceanu proton me> AuthorDate: Wed Mar 13 21:25:40 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Mar 13 21:25:40 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=1c137bd7 dev-lang/ldc2: stabilize 1.34.0-r1 for amd64, x86 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.34.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/ldc2/ldc2-1.34.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.34.0-r1.ebuild index 975b209..fdbd364 100644 --- a/dev-lang/ldc2/ldc2-1.34.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.34.0-r1.ebuild @@ -12,7 +12,7 @@ S=${WORKDIR}/${MY_P} DESCRIPTION="LLVM D Compiler" HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 x86" LICENSE="BSD" SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 90a37fb4c08a407490b0f13b75dbf3af156f58e7 Author: Andrei Horodniceanu proton me> AuthorDate: Wed Mar 13 21:24:49 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Mar 13 21:24:49 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=90a37fb4 dev-lang/ldc2: stabilize 1.32.2-r1 for amd64, x86 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.32.2-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild b/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild index 4d52b34..5f31254 100644 --- a/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild @@ -12,7 +12,7 @@ S=${WORKDIR}/${MY_P} DESCRIPTION="LLVM D Compiler" HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 x86" LICENSE="BSD" SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 9a612ee57adb526769ce16420177e62a2b7fd86d Author: Andrei Horodniceanu proton me> AuthorDate: Wed Mar 13 21:26:41 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Mar 13 21:26:41 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=9a612ee5 dev-lang/ldc2: drop 1.32.2 Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.32.2.ebuild | 78 1 file changed, 78 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.32.2.ebuild b/dev-lang/ldc2/ldc2-1.32.2.ebuild deleted file mode 100644 index 37cc843..000 --- a/dev-lang/ldc2/ldc2-1.32.2.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit multilib-build cmake llvm - -MY_PV="${PV//_/-}" -MY_P="ldc-${MY_PV}-src" -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; -S=${WORKDIR}/${MY_P} - -DESCRIPTION="LLVM D Compiler" -HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="amd64 ~arm64 x86" -LICENSE="BSD" -SLOT="$(ver_cut 1-2)/$(ver_cut 3)" - -IUSE="static-libs" - -# Upstream supports LLVM 9.0 through 15.0. -RDEPEND=" - || ( - sys-devel/llvm:15 - sys-devel/llvm:14 - ) - =app-eselect/eselect-dlang-20140709" -DEPEND="${RDEPEND}" -LLVM_MAX_SLOT=15 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" - -# For now, we support amd64 multilib. Anyone is free to add more support here. -MULTILIB_COMPAT=( abi_x86_{32,64} ) - -# Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" -DLANG_PACKAGE_TYPE="single" - -inherit dlang - -src_prepare() { - cmake_src_prepare -} - -d_src_configure() { - # Make sure libphobos2 is installed into ldc2's directory. - export LIBDIR_${ABI}="${LIBDIR_HOST}" - local mycmakeargs=( - -DD_VERSION=2 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) - -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" - -DLDC_WITH_LLD=OFF - ) - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) - cmake_src_configure -} - -d_src_compile() -{ - cmake_src_compile -} - -d_src_install() { - cmake_src_install - - rm -rf "${ED}"/usr/share/bash-completion -} - -pkg_postinst() { - # Update active ldc2 - "${ROOT}"/usr/bin/eselect dlang update ldc2 -} - -pkg_postrm() { - "${ROOT}"/usr/bin/eselect dlang update ldc2 -}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/, dev-util/dscanner/, net-misc/onedrive/, dev-util/dlang-tools/, ...
commit: 176d27d5d8eb0cd4c06f6a41f679acaa7589ba91 Author: Andrei Horodniceanu proton me> AuthorDate: Sun Feb 4 15:56:58 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Sun Feb 4 18:59:49 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=176d27d5 */*: set an upper bound on DLANG_VERSION_RANGE A package should explicitly list the D compiler versions it supports and not rely on "any version higher than X". This is especially relevant for stable packages. These changes don't actually have any effect right now, they will only make themselves seen when a new compiler version is added to the tree. Signed-off-by: Andrei Horodniceanu proton.me> dev-lang/ldc2/ldc2-1.32.2-r1.ebuild | 2 +- dev-lang/ldc2/ldc2-1.32.2.ebuild| 2 +- dev-lang/ldc2/ldc2-1.33.0-r1.ebuild | 2 +- dev-lang/ldc2/ldc2-1.33.0.ebuild| 2 +- dev-lang/ldc2/ldc2-1.34.0-r1.ebuild | 2 +- dev-lang/ldc2/ldc2-1.34.0.ebuild| 2 +- dev-lang/ldc2/ldc2-1.35.0.ebuild| 4 ++-- dev-libs/gtkd/gtkd-3.10.0-r1.ebuild | 2 +- dev-util/dfmt/dfmt-0.13.4.ebuild| 4 ++-- dev-util/dlang-tools/dlang-tools-2.106.1.ebuild | 2 +- dev-util/dscanner/dscanner-0.11.1.ebuild| 4 ++-- net-misc/onedrive/onedrive-2.4.25.ebuild| 4 ++-- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild b/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild index f1d5ad7..4d52b34 100644 --- a/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild @@ -33,7 +33,7 @@ PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-" +DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" DLANG_PACKAGE_TYPE="single" inherit dlang diff --git a/dev-lang/ldc2/ldc2-1.32.2.ebuild b/dev-lang/ldc2/ldc2-1.32.2.ebuild index c64522d..37cc843 100644 --- a/dev-lang/ldc2/ldc2-1.32.2.ebuild +++ b/dev-lang/ldc2/ldc2-1.32.2.ebuild @@ -34,7 +34,7 @@ PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-" +DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" DLANG_PACKAGE_TYPE="single" inherit dlang diff --git a/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild index f1d5ad7..4d52b34 100644 --- a/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild @@ -33,7 +33,7 @@ PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-" +DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" DLANG_PACKAGE_TYPE="single" inherit dlang diff --git a/dev-lang/ldc2/ldc2-1.33.0.ebuild b/dev-lang/ldc2/ldc2-1.33.0.ebuild index c64522d..37cc843 100644 --- a/dev-lang/ldc2/ldc2-1.33.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.33.0.ebuild @@ -34,7 +34,7 @@ PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-" +DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" DLANG_PACKAGE_TYPE="single" inherit dlang diff --git a/dev-lang/ldc2/ldc2-1.34.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.34.0-r1.ebuild index 9cf71ba..975b209 100644 --- a/dev-lang/ldc2/ldc2-1.34.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.34.0-r1.ebuild @@ -34,7 +34,7 @@ PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-" +DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" DLANG_PACKAGE_TYPE="single" inherit dlang diff --git a/dev-lang/ldc2/ldc2-1.34.0.ebuild b/dev-lang/ldc2/ldc2-1.34.0.ebuild index 8a23db2..f055ccb 100644 --- a/dev-lang/ldc2/ldc2-1.34.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.34.0.ebuild @@ -35,7 +35,7 @@ PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-" +DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" DLANG_PACKAGE_TYPE="single" inherit dlang diff --git a/dev-lang/ldc2/ldc2-1.35.0.ebuild b/dev-lang/ldc2/ldc2-1.35.0.ebuild index 5ead0f9..cd6d066 100644 --- a/dev-lang/ldc2/ldc2-1.35.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.35.0.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=8 @@ -38,7 +38,7 @@ PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.075-2.080 2.082-" +DLANG_VERSION_RANGE="2.075-2.080 2.082-2.106" DLANG_PACKAGE_TYPE="single" inherit dlang diff --git a/dev-lib
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 585480e834a5740f4d3086b867b7232cb1c1bf63 Author: Horodniceanu Andrei proton me> AuthorDate: Wed Jan 24 18:37:44 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Jan 24 18:38:50 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=585480e8 dev-lang/ldc2: backport strict-aliasing fixes Bug: https://bugs.gentoo.org/922590 Signed-off-by: Horodniceanu Andrei proton.me> ...ldc2-1.35.0-r1.ebuild => ldc2-1.32.2-r1.ebuild} | 25 ++ ...ldc2-1.35.0-r1.ebuild => ldc2-1.33.0-r1.ebuild} | 25 ++ ...ldc2-1.35.0-r1.ebuild => ldc2-1.34.0-r1.ebuild} | 22 +-- ...ldc2-1.35.0-r1.ebuild => ldc2-1.35.0-r2.ebuild} | 4 +++- 4 files changed, 35 insertions(+), 41 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild similarity index 82% copy from dev-lang/ldc2/ldc2-1.35.0-r1.ebuild copy to dev-lang/ldc2/ldc2-1.32.2-r1.ebuild index 58638e2..f1d5ad7 100644 --- a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=8 +EAPI=7 -inherit multilib-build cmake llvm +inherit flag-o-matic multilib-build cmake llvm MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" @@ -18,26 +18,22 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)" IUSE="static-libs" -# Upstream supports LLVM 11.0 through 16.0. -DEPEND=" +# Upstream supports LLVM 9.0 through 15.0. +RDEPEND=" || ( - sys-devel/llvm:16 sys-devel/llvm:15 ) - =app-eselect/eselect-dlang-20140709" -RDEPEND=" - ${DEPEND} - ${IDEPEND}" - -LLVM_MAX_SLOT=16 + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=15 PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" # For now, we support amd64 multilib. Anyone is free to add more support here. MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.100-2.106" +DLANG_VERSION_RANGE="2.075-2.080 2.082-" DLANG_PACKAGE_TYPE="single" inherit dlang @@ -49,12 +45,13 @@ src_prepare() { d_src_configure() { # Make sure libphobos2 is installed into ldc2's directory. export LIBDIR_${ABI}="${LIBDIR_HOST}" + # https://bugs.gentoo.org/show_bug.cgi?id=922590 + append-flags -fno-strict-aliasing local mycmakeargs=( -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" -DLDC_WITH_LLD=OFF - -DCOMPILE_D_MODULES_SEPARATELY=ON ) use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) diff --git a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild similarity index 82% copy from dev-lang/ldc2/ldc2-1.35.0-r1.ebuild copy to dev-lang/ldc2/ldc2-1.33.0-r1.ebuild index 58638e2..f1d5ad7 100644 --- a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=8 +EAPI=7 -inherit multilib-build cmake llvm +inherit flag-o-matic multilib-build cmake llvm MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" @@ -18,26 +18,22 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)" IUSE="static-libs" -# Upstream supports LLVM 11.0 through 16.0. -DEPEND=" +# Upstream supports LLVM 9.0 through 15.0. +RDEPEND=" || ( - sys-devel/llvm:16 sys-devel/llvm:15 ) - =app-eselect/eselect-dlang-20140709" -RDEPEND=" - ${DEPEND} - ${IDEPEND}" - -LLVM_MAX_SLOT=16 + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=15 PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" # For now, we support amd64 multilib. Anyone is free to add more support here. MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.100-2.106" +DLANG_VERSION_RANGE="2.075-2.080 2.082-" DLANG_PACKAGE_TYPE="single" inherit dlang @@ -49,12 +45,13 @@ src_prepare() { d_src_configure() { # Make sure libphobos2 is installed into ldc2's directory. export LIBDIR_${ABI}="${LIBDIR_HOST}" + # https://bugs.gentoo.org/show_bug.cgi?id=922590 + append-flags -fno-strict-aliasing local mycmakeargs=( -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" -DLDC_WITH_LLD=OFF - -DCOMPILE_D_MODULES_SEPARATELY=ON ) use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: ce1aa5d8fdb60dcd1c08cc1d35cf77fc2998959b Author: Horodniceanu Andrei proton me> AuthorDate: Wed Jan 24 18:21:55 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Jan 24 18:38:46 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=ce1aa5d8 dev-lang/ldc2: pass -fno-strict-aliasing Bug: https://bugs.gentoo.org/show_bug.cgi?id=922590 Signed-off-by: Horodniceanu Andrei proton.me> dev-lang/ldc2/{ldc2-1.36.0.ebuild => ldc2-1.36.0-r1.ebuild} | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.36.0.ebuild b/dev-lang/ldc2/ldc2-1.36.0-r1.ebuild similarity index 91% rename from dev-lang/ldc2/ldc2-1.36.0.ebuild rename to dev-lang/ldc2/ldc2-1.36.0-r1.ebuild index f6837c0..bc995b9 100644 --- a/dev-lang/ldc2/ldc2-1.36.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.36.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit multilib-build cmake llvm +inherit flag-o-matic multilib-build cmake llvm MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" @@ -18,7 +18,7 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)" IUSE="static-libs" -# Upstream supports LLVM 11.0 through 16.0. +# Upstream supports LLVM 11.0 through 17.0. DEPEND=" || ( sys-devel/llvm:17 @@ -53,6 +53,8 @@ d_src_configure() { # We disable assertions so we have to apply the same workaround as for # sys-devel/llvm: add -DNDEBUG to CPPFLAGS. local CPPFLAGS="${CPPFLAGS} -DNDEBUG" + # https://bugs.gentoo.org/show_bug.cgi?id=922590 + append-flags -fno-strict-aliasing local mycmakeargs=( -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/, profiles/, eclass/
commit: ba7512166cd29466f24db43dc7a927fa988b99ff Author: Horodniceanu Andrei proton me> AuthorDate: Sun Jan 14 10:41:25 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Sun Jan 14 10:43:54 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=ba751216 dev-lang/ldc2: add 1.36.0 Additional changes: - force disable LDC_ENABLE_ASSERTIONS instead of defaulting to LLVM_ENABLE_ASSERTIONS - pass the -NDEBUG flag in the same manner as sys-devel/llvm to prevent linking errors. Signed-off-by: Horodniceanu Andrei proton.me> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.36.0.ebuild | 87 eclass/dlang-compilers.eclass| 1 + profiles/use.desc| 1 + 4 files changed, 90 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 49e6954..77ede1e 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -2,3 +2,4 @@ DIST ldc-1.32.2-src.tar.gz 8116363 BLAKE2B 2fb0c2c01bc6257dcaeca75318e241ebdb9b6 DIST ldc-1.33.0-src.tar.gz 8139266 BLAKE2B 6c2efd0765307815563bc7bd775f1faef3f5e19c82e4aee038f668dd00a2521fa58bd32f6a45d2bc5a3854f31a2d7bd47b1be255aeafc0a4206f72d663b0021f SHA512 ef5a42934e24caf947b63ef29a62205b07b539a59292266877f2d5f5ecf06272e1fc3ca83772d02eda203e4b166fbcea788b804740b8780b07a4643e4b51bf70 DIST ldc-1.34.0-src.tar.gz 8176200 BLAKE2B 048975a3142da860540ba5378be5214884eb44e2f4492e95aa124a669ccf53bbcf9ccce24f12946948265af5a0de1f5771d21f196052ab53275aa8bb7d0dfb2e SHA512 c4ceda1d448b91f706719cdea141cb705f9996ea3f86c107620f13e2f50f6a29724a69b5e3b01c51e13dd4e50ba29a280785ce0789188641c90738d774300a06 DIST ldc-1.35.0-src.tar.gz 8241960 BLAKE2B fb531841e57225f82cddf5135d0b0da98624d33aba76a1d39d98b13deb319556eaad3599ba1461f9f509c6b7b535632b85805de2433bae4ccf50c691c116da3f SHA512 f85871832455a8e3208f7f905b04ac249a988f8ea2cfe81ed2a67b56404d11a08653b13b6019f45d9dbcf6fbd60086e6aabb13307908d1bbf6d86bd91462dfaa +DIST ldc-1.36.0-src.tar.gz 8551871 BLAKE2B b0f09128ab37e332f2eebab3288cac687f91b696ba758d9ecd6fc4d98dc70d13e6fc4e02878028ac530cc9d9449d1148c8c3ed052fecfb18c95bd76437537467 SHA512 e8060ae30ddf659c51b2e57989b14f1d94c58537a3aa0c5afd3cf2906503d66421598014c33fdeb063a5aaea00034b4b11769a2c07cc2dabd7644840241183b4 diff --git a/dev-lang/ldc2/ldc2-1.36.0.ebuild b/dev-lang/ldc2/ldc2-1.36.0.ebuild new file mode 100644 index 000..f6837c0 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.36.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~arm64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# Upstream supports LLVM 11.0 through 16.0. +DEPEND=" + || ( + sys-devel/llvm:17 + sys-devel/llvm:16 + sys-devel/llvm:15 + ) + =app-eselect/eselect-dlang-20140709" +RDEPEND=" + ${DEPEND} + ${IDEPEND}" + +LLVM_MAX_SLOT=17 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +# Upstream supports "2.079-" +DLANG_VERSION_RANGE="2.100-2.106" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + # We disable assertions so we have to apply the same workaround as for + # sys-devel/llvm: add -DNDEBUG to CPPFLAGS. + local CPPFLAGS="${CPPFLAGS} -DNDEBUG" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" + -DLDC_WITH_LLD=OFF + -DCOMPILE_D_MODULES_SEPARATELY=ON + -DLDC_ENABLE_ASSERTIONS=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + cmake_src_configure +} + +d_src_compile() +{ + cmake_src_compile +} + +d_src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass index fa02ccc..73155e2 100644 --- a/eclass/dlang-compilers.eclass +++ b/eclass/dla
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 07a8bdfa56f5fd220123c961975f8032fe8b177c Author: Horodniceanu Andrei proton me> AuthorDate: Sun Jan 14 10:30:53 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Sun Jan 14 10:30:53 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=07a8bdfa dev-lang/ldc2: keyword 1.35.0-r1 for ~arm64 Signed-off-by: Horodniceanu Andrei proton.me> dev-lang/ldc2/ldc2-1.35.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild index cade36e..58638e2 100644 --- a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild @@ -12,7 +12,7 @@ S=${WORKDIR}/${MY_P} DESCRIPTION="LLVM D Compiler" HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~arm64 ~x86" LICENSE="BSD" SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: f8590120afabb6eb0a01c39806dc346222c515cf Author: Horodniceanu Andrei proton me> AuthorDate: Sat Jan 13 16:04:52 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Sat Jan 13 16:04:52 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=f8590120 dev-lang/ldc2: remove dev-util/ninja from RDEPEND Signed-off-by: Horodniceanu Andrei proton.me> dev-lang/ldc2/ldc2-1.32.2.ebuild | 4 ++-- dev-lang/ldc2/ldc2-1.33.0.ebuild | 4 ++-- dev-lang/ldc2/ldc2-1.34.0.ebuild | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.32.2.ebuild b/dev-lang/ldc2/ldc2-1.32.2.ebuild index 76f8bba..c64522d 100644 --- a/dev-lang/ldc2/ldc2-1.32.2.ebuild +++ b/dev-lang/ldc2/ldc2-1.32.2.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 @@ -19,7 +19,7 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)" IUSE="static-libs" # Upstream supports LLVM 9.0 through 15.0. -RDEPEND="dev-util/ninja +RDEPEND=" || ( sys-devel/llvm:15 sys-devel/llvm:14 diff --git a/dev-lang/ldc2/ldc2-1.33.0.ebuild b/dev-lang/ldc2/ldc2-1.33.0.ebuild index 76f8bba..c64522d 100644 --- a/dev-lang/ldc2/ldc2-1.33.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.33.0.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 @@ -19,7 +19,7 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)" IUSE="static-libs" # Upstream supports LLVM 9.0 through 15.0. -RDEPEND="dev-util/ninja +RDEPEND=" || ( sys-devel/llvm:15 sys-devel/llvm:14 diff --git a/dev-lang/ldc2/ldc2-1.34.0.ebuild b/dev-lang/ldc2/ldc2-1.34.0.ebuild index e2b4dfe..8a23db2 100644 --- a/dev-lang/ldc2/ldc2-1.34.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.34.0.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 @@ -19,7 +19,7 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)" IUSE="static-libs" # Upstream supports LLVM 11.0 through 16. -RDEPEND="dev-util/ninja +RDEPEND=" || ( sys-devel/llvm:16 sys-devel/llvm:15
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 68edb2d343a252284207d5cc097acfae0de4a5c3 Author: Horodniceanu Andrei proton me> AuthorDate: Wed Jan 3 22:08:55 2024 + Commit: Horodniceanu Andrei proton me> CommitDate: Wed Jan 3 22:08:55 2024 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=68edb2d3 dev-lang/ldc2: 1.35.0-r1 build D modules separately Having this feature enabled, compared to building all D modules in one go, on my machine at least, lowers the amount of memory used and speeds up build times. Signed-off-by: Horodniceanu Andrei proton.me> dev-lang/ldc2/ldc2-1.35.0-r1.ebuild | 82 + 1 file changed, 82 insertions(+) diff --git a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild new file mode 100644 index 000..cade36e --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# Upstream supports LLVM 11.0 through 16.0. +DEPEND=" + || ( + sys-devel/llvm:16 + sys-devel/llvm:15 + ) + =app-eselect/eselect-dlang-20140709" +RDEPEND=" + ${DEPEND} + ${IDEPEND}" + +LLVM_MAX_SLOT=16 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +# Upstream supports "2.079-" +DLANG_VERSION_RANGE="2.100-2.106" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" + -DLDC_WITH_LLD=OFF + -DCOMPILE_D_MODULES_SEPARATELY=ON + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + cmake_src_configure +} + +d_src_compile() +{ + cmake_src_compile +} + +d_src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 72c6d16962c09d24a336ef2bd92087f35735 Author: Horodniceanu Andrei protonmail com> AuthorDate: Mon Aug 21 13:27:42 2023 + Commit: Marco Leise gmx de> CommitDate: Fri Sep 1 18:13:01 2023 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=72c6 dev-lang/ldc2: don't embed -relocation-model=pic Signed-off-by: Horodniceanu Andrei protonmail.com> dev-lang/ldc2/{ldc2-1.29.0-r1.ebuild => ldc2-1.29.0-r2.ebuild} | 7 +-- dev-lang/ldc2/{ldc2-1.30.0.ebuild => ldc2-1.30.0-r1.ebuild}| 7 +-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.29.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.29.0-r2.ebuild similarity index 89% rename from dev-lang/ldc2/ldc2-1.29.0-r1.ebuild rename to dev-lang/ldc2/ldc2-1.29.0-r2.ebuild index be9d229..f42c22d 100644 --- a/dev-lang/ldc2/ldc2-1.29.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.29.0-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -38,10 +38,6 @@ DLANG_PACKAGE_TYPE="single" inherit dlang -detect_hardened() { - gcc --version | grep -o Hardened -} - src_prepare() { cmake_src_prepare } @@ -57,7 +53,6 @@ d_src_configure() { ) use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' ) cmake_src_configure } diff --git a/dev-lang/ldc2/ldc2-1.30.0.ebuild b/dev-lang/ldc2/ldc2-1.30.0-r1.ebuild similarity index 89% rename from dev-lang/ldc2/ldc2-1.30.0.ebuild rename to dev-lang/ldc2/ldc2-1.30.0-r1.ebuild index 2b27d1d..fb22627 100644 --- a/dev-lang/ldc2/ldc2-1.30.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.30.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -39,10 +39,6 @@ DLANG_PACKAGE_TYPE="single" inherit dlang -detect_hardened() { - gcc --version | grep -o Hardened -} - src_prepare() { cmake_src_prepare } @@ -58,7 +54,6 @@ d_src_configure() { ) use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' ) cmake_src_configure }
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 826ae8226782d246235941f396253aa323d84fc3 Author: Horodniceanu Andrei protonmail com> AuthorDate: Sat Aug 26 21:56:17 2023 + Commit: Marco Leise gmx de> CommitDate: Fri Sep 1 21:12:51 2023 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=826ae822 dev-lang/ldc2: Respect $DCFLAGS Signed-off-by: Horodniceanu Andrei protonmail.com> dev-lang/ldc2/ldc2-1.29.0-r2.ebuild | 2 +- dev-lang/ldc2/ldc2-1.30.0-r1.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.29.0-r2.ebuild b/dev-lang/ldc2/ldc2-1.29.0-r2.ebuild index f42c22d..cb01cfe 100644 --- a/dev-lang/ldc2/ldc2-1.29.0-r2.ebuild +++ b/dev-lang/ldc2/ldc2-1.29.0-r2.ebuild @@ -48,7 +48,7 @@ d_src_configure() { local mycmakeargs=( -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) - -DD_COMPILER="${DMD}" + -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" -DLDC_WITH_LLD=OFF ) use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) diff --git a/dev-lang/ldc2/ldc2-1.30.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.30.0-r1.ebuild index fb22627..85daa28 100644 --- a/dev-lang/ldc2/ldc2-1.30.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.30.0-r1.ebuild @@ -49,7 +49,7 @@ d_src_configure() { local mycmakeargs=( -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) - -DD_COMPILER="${DMD}" + -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" -DLDC_WITH_LLD=OFF ) use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 118781d0346e695903064f76e6a17c4fa50c8074 Author: Marco Leise gmx de> AuthorDate: Mon Jul 25 11:11:40 2022 + Commit: Marco Leise gmx de> CommitDate: Mon Jul 25 11:11:40 2022 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=118781d0 fixed KEYWORDS on ldc2-1.29 Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/ldc2-1.29.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/ldc2/ldc2-1.29.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.29.0-r1.ebuild index 1880f4d..be9d229 100644 --- a/dev-lang/ldc2/ldc2-1.29.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.29.0-r1.ebuild @@ -12,7 +12,7 @@ S=${WORKDIR}/${MY_P} DESCRIPTION="LLVM D Compiler" HOMEPAGE="https://github.com/ldc-developers/ldc"; -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" LICENSE="BSD" SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 2b05087d0516fbca1acf0144a8451627623eff08 Author: Niko Böckerman protonmail com> AuthorDate: Thu Mar 17 15:54:44 2022 + Commit: Marco Leise gmx de> CommitDate: Wed Mar 23 19:48:39 2022 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=2b05087d ldc2-1.28.1 Signed-off-by: Niko Böckerman protonmail.com> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.28.1.ebuild | 82 2 files changed, 83 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 2b27d45..eef4a5e 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -2,3 +2,4 @@ DIST ldc-1.25.1-src.tar.gz 7625687 BLAKE2B 02eacb06c334608d4b649d8fdffdef03cd164 DIST ldc-1.26.0-src.tar.gz 7650063 BLAKE2B d132dc842e27a93fc76810e17db1d67f856530ca7e6948c795ec5f943e4be32513b4a956aa9217df4acd45806bc81ff855ebab757aa3f6a1943fa7c394b3e3ce SHA512 7bb2aa464f5ba834c07f67743f4af01db6588d56611d6c9e250a6908ebe93a0dcd9d3a79f8f252fc92eeb4826bfa62de6c51c4db03ff80e60a8d993e4451f573 DIST ldc-1.27.1-src.tar.gz 7742031 BLAKE2B d459d70e6745930aca1293cf17ec186526393ce3ff3888c0aad3781f215ed53d6a44a08e3a1bc69e91ba0b039c443e277a0b526e7054e18445e074be1de12e87 SHA512 d10118c9c52a26510f3f9d8d93b38f89144aca7b861ef663e807df0bcf1bb3bc12d1410e6617891e58a3f2cfe160e31bb8478bb1f39f79d026c97ce7e72a9f65 DIST ldc-1.28.0-src.tar.gz 7923347 BLAKE2B 5381eab19ad66bfa91e27ed9085b11e6a7e202704dcd8ea6141d16fc8580c464c88fba895e1248568781059bf77c396c56e0669ca36125df948e32eaef98c9bd SHA512 3e566282175d65eb075c9c076bcf0475658c747238ed91efd350a7834d6d54760310ac5249fb74db3812c07058efbca8d726427ef39055d77b3f9a6940bf4188 +DIST ldc-1.28.1-src.tar.gz 7937120 BLAKE2B fae97676064506989883c03f628685bc8ddd3bb3cd1f41afef9a34bba83c9d803a6cff186145a26e8605479b18b7a7661bb14a950f5891ab27b195f045a219a9 SHA512 3ec4c754873db4c00fb2e45ec42a3641f46ed6a7d882c0a00edb9ee8a5686fad7c43e45068b7a216b2df89395860ccfc700a7f3efea38c2d3d0ac3b90dd5d3a1 diff --git a/dev-lang/ldc2/ldc2-1.28.1.ebuild b/dev-lang/ldc2/ldc2-1.28.1.ebuild new file mode 100644 index 000..fa6bdb2 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.28.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 6.0 through 10. +RDEPEND="dev-util/ninja + || ( + sys-devel/llvm:11 + sys-devel/llvm:12 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=12 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.075-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' ) + cmake_src_configure +} + +d_src_compile() +{ + cmake_src_compile +} + +d_src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: e9ae75b70e14a2ec5ef17929e5d913c169afb255 Author: Niko Böckerman protonmail com> AuthorDate: Thu Mar 17 15:55:22 2022 + Commit: Marco Leise gmx de> CommitDate: Wed Mar 23 19:48:23 2022 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=e9ae75b7 Remove ldc2-1.24.0 source tarball from Manifest Signed-off-by: Niko Böckerman protonmail.com> dev-lang/ldc2/Manifest | 1 - 1 file changed, 1 deletion(-) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index a8f2072..2b27d45 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -1,4 +1,3 @@ -DIST ldc-1.24.0-src.tar.gz 7522065 BLAKE2B 65069835528466c4a39ebf08245fa7fcc9348ee620bab933d23157af0702c0ac4f5b3c1692b1eff83ba81ba2b8be6f086935527585c55e1ecb4ea42f965befe6 SHA512 c6f06d80617e5f7789f9e0e349a21e380d0bb6898983f0c2e2aaaec32e23ea0f69c039b6f0c03b8015782b837c890a6ff1051bfa332a6af7c79fc3479446dfb1 DIST ldc-1.25.1-src.tar.gz 7625687 BLAKE2B 02eacb06c334608d4b649d8fdffdef03cd1645a2d237063c888728c840a8c939df1c1ff9aefe3efab395358a7757dd287d1efa7a704b37f0b2661c8c1b5faaca SHA512 a087f48ec8f559eea17f88f9c00893c84db17bfcb10590011f43d6d1573a30286067207133ad6d249897fe51cb22829c2ddf00bf23210f01aa059b1f87790fae DIST ldc-1.26.0-src.tar.gz 7650063 BLAKE2B d132dc842e27a93fc76810e17db1d67f856530ca7e6948c795ec5f943e4be32513b4a956aa9217df4acd45806bc81ff855ebab757aa3f6a1943fa7c394b3e3ce SHA512 7bb2aa464f5ba834c07f67743f4af01db6588d56611d6c9e250a6908ebe93a0dcd9d3a79f8f252fc92eeb4826bfa62de6c51c4db03ff80e60a8d993e4451f573 DIST ldc-1.27.1-src.tar.gz 7742031 BLAKE2B d459d70e6745930aca1293cf17ec186526393ce3ff3888c0aad3781f215ed53d6a44a08e3a1bc69e91ba0b039c443e277a0b526e7054e18445e074be1de12e87 SHA512 d10118c9c52a26510f3f9d8d93b38f89144aca7b861ef663e807df0bcf1bb3bc12d1410e6617891e58a3f2cfe160e31bb8478bb1f39f79d026c97ce7e72a9f65
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 2966167d6db5018b0ea1eb50f2a277324ffbd229 Author: Niko Böckerman protonmail com> AuthorDate: Thu Feb 3 19:29:34 2022 + Commit: Marco Leise gmx de> CommitDate: Thu Feb 3 19:36:52 2022 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=2966167d ldc2: Add support for newer llvm versions LDC2 1.24 added support for LLVM 11 and LDC 1.25 added support also for LLVM 12. Signed-off-by: Niko Böckerman protonmail.com> dev-lang/ldc2/ldc2-1.24.0-r2.ebuild | 82 dev-lang/ldc2/ldc2-1.25.1-r1.ebuild | 83 + dev-lang/ldc2/ldc2-1.26.0-r1.ebuild | 83 + 3 files changed, 248 insertions(+) diff --git a/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild b/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild new file mode 100644 index 000..181f1b5 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 6.0 through 10. +RDEPEND="dev-util/ninja + || ( + sys-devel/llvm:10 + sys-devel/llvm:11 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=11 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.075-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' ) + cmake_src_configure +} + +d_src_compile() +{ + cmake_src_compile +} + +d_src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} diff --git a/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild b/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild new file mode 100644 index 000..1171863 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 6.0 through 10. +RDEPEND="dev-util/ninja + || ( + sys-devel/llvm:10 + sys-devel/llvm:11 + sys-devel/llvm:12 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=12 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.075-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hard
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: e177a4bd80ebed3dd237d7f16f8e4a20b56d2084 Author: Marco Leise gmx de> AuthorDate: Wed Jul 7 13:15:16 2021 + Commit: Marco Leise gmx de> CommitDate: Wed Jul 7 13:59:17 2021 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=e177a4bd Fix for syntax error in ldc2.conf during compilation on hardened Gentoo. Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/ldc2-1.20.1-r2.ebuild | 81 + dev-lang/ldc2/ldc2-1.21.0-r2.ebuild | 81 + dev-lang/ldc2/ldc2-1.22.0-r1.ebuild | 81 + dev-lang/ldc2/ldc2-1.23.0-r1.ebuild | 81 + dev-lang/ldc2/ldc2-1.24.0-r1.ebuild | 81 + 5 files changed, 405 insertions(+) diff --git a/dev-lang/ldc2/ldc2-1.20.1-r2.ebuild b/dev-lang/ldc2/ldc2-1.20.1-r2.ebuild new file mode 100644 index 000..5a2b5c6 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.20.1-r2.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 3.9 through 10. +RDEPEND="dev-util/ninja + || ( + sys-devel/llvm:10 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=10 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.075-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' ) + cmake_src_configure +} + +d_src_compile() +{ + cmake_src_compile +} + +d_src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} diff --git a/dev-lang/ldc2/ldc2-1.21.0-r2.ebuild b/dev-lang/ldc2/ldc2-1.21.0-r2.ebuild new file mode 100644 index 000..5a2b5c6 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.21.0-r2.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 3.9 through 10. +RDEPEND="dev-util/ninja + || ( + sys-devel/llvm:10 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=10 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.075-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmak
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 9dc7c97fabf392de6f3ad8fdb96479fe405e4d3e Author: Marco Leise gmx de> AuthorDate: Wed Jul 7 13:42:04 2021 + Commit: Marco Leise gmx de> CommitDate: Wed Jul 7 14:00:47 2021 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=9dc7c97f ldc2-1.25.1 & ldc2-1.26.0 Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/Manifest | 2 + dev-lang/ldc2/ldc2-1.25.1.ebuild | 81 dev-lang/ldc2/ldc2-1.26.0.ebuild | 81 3 files changed, 164 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index a4e6e61..2a2a28f 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -3,3 +3,5 @@ DIST ldc-1.21.0-src.tar.gz 7355981 BLAKE2B 46f3289e3e39d8c3b2a4985e1de4b5ef0e218 DIST ldc-1.22.0-src.tar.gz 7434646 BLAKE2B 317c9ebb3f75e495c939fadd24abbbea4baa2f9bf547894067d373adc48dfefd47c5bcc2136ac67ecd2bbbe2bf0cf879cfc9b978d9ff75d68ede7b0686dbfee9 SHA512 81c59e96b181fbe4a499d84a816ee4fbdbc8b6170fe87dc42e8a315e72d0be4a7f42b939084e5a529572987bcdc495926d83ca517aff8a7e5632767cf46d67d8 DIST ldc-1.23.0-src.tar.gz 7438736 BLAKE2B 42cad99be83ce6c8d08819e6e2c6aca161f1243a239da1e692551e7b140069aacb12bbf38b4dc727eab4814bba9d8dafbb16ea2c938ea49db907275c2149b2bd SHA512 dbade9a120bb30d0c691f5c4c6c7e06be0cf3575b9bd63a921e9a768a22aef10293cc4058c7da348707856e1d363419c91e38a893d13408e9b5be4ae85544bb0 DIST ldc-1.24.0-src.tar.gz 7522065 BLAKE2B 65069835528466c4a39ebf08245fa7fcc9348ee620bab933d23157af0702c0ac4f5b3c1692b1eff83ba81ba2b8be6f086935527585c55e1ecb4ea42f965befe6 SHA512 c6f06d80617e5f7789f9e0e349a21e380d0bb6898983f0c2e2aaaec32e23ea0f69c039b6f0c03b8015782b837c890a6ff1051bfa332a6af7c79fc3479446dfb1 +DIST ldc-1.25.1-src.tar.gz 7625687 BLAKE2B 02eacb06c334608d4b649d8fdffdef03cd1645a2d237063c888728c840a8c939df1c1ff9aefe3efab395358a7757dd287d1efa7a704b37f0b2661c8c1b5faaca SHA512 a087f48ec8f559eea17f88f9c00893c84db17bfcb10590011f43d6d1573a30286067207133ad6d249897fe51cb22829c2ddf00bf23210f01aa059b1f87790fae +DIST ldc-1.26.0-src.tar.gz 7650063 BLAKE2B d132dc842e27a93fc76810e17db1d67f856530ca7e6948c795ec5f943e4be32513b4a956aa9217df4acd45806bc81ff855ebab757aa3f6a1943fa7c394b3e3ce SHA512 7bb2aa464f5ba834c07f67743f4af01db6588d56611d6c9e250a6908ebe93a0dcd9d3a79f8f252fc92eeb4826bfa62de6c51c4db03ff80e60a8d993e4451f573 diff --git a/dev-lang/ldc2/ldc2-1.25.1.ebuild b/dev-lang/ldc2/ldc2-1.25.1.ebuild new file mode 100644 index 000..322787b --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.25.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 6.0 through 10. +RDEPEND="dev-util/ninja + || ( + sys-devel/llvm:10 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=10 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.075-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' ) + cmake_src_configure +} + +d_src_compile() +{ + cmake_src_compile +} + +d_src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} diff --git a/dev-lang/ldc2/ldc2-1.26.0.ebuild b/dev-lang/ldc2/ldc2-1.26.0.ebuild new file mode 100644 index 000..322787b --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.26.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: ac57a54fd348d4227ebaf2cf2ec08ab7c7be0737 Author: Marco Leise gmx de> AuthorDate: Mon Nov 16 01:13:47 2020 + Commit: Marco Leise gmx de> CommitDate: Mon Nov 16 04:02:49 2020 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=ac57a54f ldc2-1.23 Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.23.0.ebuild | 76 2 files changed, 77 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 8c35cf6..a3c721f 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -3,3 +3,4 @@ DIST ldc-1.19.0-src.tar.gz 7222182 BLAKE2B 28a2256aad57f5304644126da63d88a9f0e42 DIST ldc-1.20.1-src.tar.gz 7283975 BLAKE2B ceb75e767562936606a5fc8383dd089a8daefd04e6fbcd8c6b360fccad50ecb7c6656d60c5351b11a3580d01bdb45101ed50ff6c7a9791af1fd25be160e9a037 SHA512 bb69a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564e83f720a62ab4f2c1942c2e26bb53 DIST ldc-1.21.0-src.tar.gz 7355981 BLAKE2B 46f3289e3e39d8c3b2a4985e1de4b5ef0e218188af5095cb2007bb83eec2bdaf6c590786d7b655a1f886c7f46703db2c049cf054c0fac438f943a702d3ac7a3b SHA512 5759cb0ad04d2e62a075748b40efb30261c1ebefbc129024cddccf60ab59c211f20b87a0fe22b0a714a0435f53d54a79cd8ad4ede7bfbf492809f23c679a DIST ldc-1.22.0-src.tar.gz 7434646 BLAKE2B 317c9ebb3f75e495c939fadd24abbbea4baa2f9bf547894067d373adc48dfefd47c5bcc2136ac67ecd2bbbe2bf0cf879cfc9b978d9ff75d68ede7b0686dbfee9 SHA512 81c59e96b181fbe4a499d84a816ee4fbdbc8b6170fe87dc42e8a315e72d0be4a7f42b939084e5a529572987bcdc495926d83ca517aff8a7e5632767cf46d67d8 +DIST ldc-1.23.0-src.tar.gz 7438736 BLAKE2B 42cad99be83ce6c8d08819e6e2c6aca161f1243a239da1e692551e7b140069aacb12bbf38b4dc727eab4814bba9d8dafbb16ea2c938ea49db907275c2149b2bd SHA512 dbade9a120bb30d0c691f5c4c6c7e06be0cf3575b9bd63a921e9a768a22aef10293cc4058c7da348707856e1d363419c91e38a893d13408e9b5be4ae85544bb0 diff --git a/dev-lang/ldc2/ldc2-1.23.0.ebuild b/dev-lang/ldc2/ldc2-1.23.0.ebuild new file mode 100644 index 000..32bd66a --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.23.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 6.0 through 10. +RDEPEND="|| ( + sys-devel/llvm:10 + sys-devel/llvm:9 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=10 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.075-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' ) + cmake_src_configure +} + +d_src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: ae2a43d059d43447a10b184a93e4fce44ff299c2 Author: Marco Leise gmx de> AuthorDate: Mon Nov 16 01:39:06 2020 + Commit: Marco Leise gmx de> CommitDate: Mon Nov 16 04:02:58 2020 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=ae2a43d0 ldc2-1.24 Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.24.0.ebuild | 76 2 files changed, 77 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index a3c721f..6808cea 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -4,3 +4,4 @@ DIST ldc-1.20.1-src.tar.gz 7283975 BLAKE2B ceb75e767562936606a5fc8383dd089a8daef DIST ldc-1.21.0-src.tar.gz 7355981 BLAKE2B 46f3289e3e39d8c3b2a4985e1de4b5ef0e218188af5095cb2007bb83eec2bdaf6c590786d7b655a1f886c7f46703db2c049cf054c0fac438f943a702d3ac7a3b SHA512 5759cb0ad04d2e62a075748b40efb30261c1ebefbc129024cddccf60ab59c211f20b87a0fe22b0a714a0435f53d54a79cd8ad4ede7bfbf492809f23c679a DIST ldc-1.22.0-src.tar.gz 7434646 BLAKE2B 317c9ebb3f75e495c939fadd24abbbea4baa2f9bf547894067d373adc48dfefd47c5bcc2136ac67ecd2bbbe2bf0cf879cfc9b978d9ff75d68ede7b0686dbfee9 SHA512 81c59e96b181fbe4a499d84a816ee4fbdbc8b6170fe87dc42e8a315e72d0be4a7f42b939084e5a529572987bcdc495926d83ca517aff8a7e5632767cf46d67d8 DIST ldc-1.23.0-src.tar.gz 7438736 BLAKE2B 42cad99be83ce6c8d08819e6e2c6aca161f1243a239da1e692551e7b140069aacb12bbf38b4dc727eab4814bba9d8dafbb16ea2c938ea49db907275c2149b2bd SHA512 dbade9a120bb30d0c691f5c4c6c7e06be0cf3575b9bd63a921e9a768a22aef10293cc4058c7da348707856e1d363419c91e38a893d13408e9b5be4ae85544bb0 +DIST ldc-1.24.0-src.tar.gz 7522065 BLAKE2B 65069835528466c4a39ebf08245fa7fcc9348ee620bab933d23157af0702c0ac4f5b3c1692b1eff83ba81ba2b8be6f086935527585c55e1ecb4ea42f965befe6 SHA512 c6f06d80617e5f7789f9e0e349a21e380d0bb6898983f0c2e2aaaec32e23ea0f69c039b6f0c03b8015782b837c890a6ff1051bfa332a6af7c79fc3479446dfb1 diff --git a/dev-lang/ldc2/ldc2-1.24.0.ebuild b/dev-lang/ldc2/ldc2-1.24.0.ebuild new file mode 100644 index 000..32bd66a --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.24.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://github.com/ldc-developers/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 6.0 through 10. +RDEPEND="|| ( + sys-devel/llvm:10 + sys-devel/llvm:9 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=10 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.075-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' ) + cmake_src_configure +} + +d_src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 94fb390fc2eb8a5b0ebddcbabfdc9d23e8424abd Author: Marco Leise gmx de> AuthorDate: Fri Aug 14 21:12:17 2020 + Commit: Marco Leise gmx de> CommitDate: Sat Aug 15 01:34:45 2020 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=94fb390f ldc2-1.22 Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.22.0.ebuild | 76 2 files changed, 77 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index e3f040c..8c35cf6 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -2,3 +2,4 @@ DIST ldc-1.18.0-src.tar.gz 7183351 BLAKE2B 0affd49dda5f7c3df64e8d89fe66f2fce4c3a DIST ldc-1.19.0-src.tar.gz 7222182 BLAKE2B 28a2256aad57f5304644126da63d88a9f0e4266402a537b7864605dd5ce97009b87d6767906b4271dd0ec9621bb1fb193531229c4799c66d0b47e6dad91c0766 SHA512 ffd1b085c7c8fe76162051234cc73e92f08a391cebac3f405c9dc6d03fcbf459d5e99295066ab4b0bd931bdce84dce53e23c33c1bc8ad35327f1b283f8e8f10a DIST ldc-1.20.1-src.tar.gz 7283975 BLAKE2B ceb75e767562936606a5fc8383dd089a8daefd04e6fbcd8c6b360fccad50ecb7c6656d60c5351b11a3580d01bdb45101ed50ff6c7a9791af1fd25be160e9a037 SHA512 bb69a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564e83f720a62ab4f2c1942c2e26bb53 DIST ldc-1.21.0-src.tar.gz 7355981 BLAKE2B 46f3289e3e39d8c3b2a4985e1de4b5ef0e218188af5095cb2007bb83eec2bdaf6c590786d7b655a1f886c7f46703db2c049cf054c0fac438f943a702d3ac7a3b SHA512 5759cb0ad04d2e62a075748b40efb30261c1ebefbc129024cddccf60ab59c211f20b87a0fe22b0a714a0435f53d54a79cd8ad4ede7bfbf492809f23c679a +DIST ldc-1.22.0-src.tar.gz 7434646 BLAKE2B 317c9ebb3f75e495c939fadd24abbbea4baa2f9bf547894067d373adc48dfefd47c5bcc2136ac67ecd2bbbe2bf0cf879cfc9b978d9ff75d68ede7b0686dbfee9 SHA512 81c59e96b181fbe4a499d84a816ee4fbdbc8b6170fe87dc42e8a315e72d0be4a7f42b939084e5a529572987bcdc495926d83ca517aff8a7e5632767cf46d67d8 diff --git a/dev-lang/ldc2/ldc2-1.22.0.ebuild b/dev-lang/ldc2/ldc2-1.22.0.ebuild new file mode 100644 index 000..c5db3f2 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.22.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://ldc-developers.github.com/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 3.9 through 10. +RDEPEND="|| ( + sys-devel/llvm:10 + sys-devel/llvm:9 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=10 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.075-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' ) + cmake_src_configure +} + +d_src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 97ad37cb061d6c879bcf49e2731cefce98bfe4ed Author: Marco Leise gmx de> AuthorDate: Fri Aug 14 17:31:32 2020 + Commit: Marco Leise gmx de> CommitDate: Sat Aug 15 01:34:34 2020 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=97ad37cb Moved remaining ldc2 ebuilds to EAPI=7 and all of them from the legacy eclass cmake-util to cmake. Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/ldc2-1.18.0-r1.ebuild | 76 + dev-lang/ldc2/ldc2-1.19.0-r1.ebuild | 75 dev-lang/ldc2/ldc2-1.20.1-r1.ebuild | 76 + dev-lang/ldc2/ldc2-1.21.0-r1.ebuild | 76 + 4 files changed, 303 insertions(+) diff --git a/dev-lang/ldc2/ldc2-1.18.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.18.0-r1.ebuild new file mode 100644 index 000..5229a08 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.18.0-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://ldc-developers.github.com/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 3.9 through 9. +RDEPEND="|| ( + sys-devel/llvm:9 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=9 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch\ + ${FILESDIR}/ldc2-1.18.0-FileCheck-not.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.068 2.071-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' ) + cmake_src_configure +} + +d_src_install() { + cmake_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} diff --git a/dev-lang/ldc2/ldc2-1.19.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.19.0-r1.ebuild new file mode 100644 index 000..e39c89a --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.19.0-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://ldc-developers.github.com/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 3.9 through 9. +RDEPEND="|| ( + sys-devel/llvm:9 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=9 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.068 2.071-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' ) + cmake_src_
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: ee6583aa63ec9dcddf8607c8522fb8530a97e79d Author: Marco Leise gmx de> AuthorDate: Sat May 16 19:57:32 2020 + Commit: Marco Leise gmx de> CommitDate: Sat May 16 19:57:32 2020 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=ee6583aa ldc2-1.21.0 Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.21.0.ebuild | 83 2 files changed, 84 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 157e50c..4abf228 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -4,3 +4,4 @@ DIST ldc-1.17.0-src.tar.gz 7084805 BLAKE2B 1379ad77c0e489fea43b646a5d6cf5aa54e76 DIST ldc-1.18.0-src.tar.gz 7183351 BLAKE2B 0affd49dda5f7c3df64e8d89fe66f2fce4c3a18c4bc5e4147e2e906d10f0b27316c8c460f5b9d767f3f50e5e909448b9f44cb17e156766d5488e237a71dd5009 SHA512 fe7529c33d0e43dfb71f474dfa381b88ee476b70933c8f80fc063d9a015df24a75e2b607a7242cc4b9cd4b6ac7559aec8f2883016bf7252342742322fcccbd4d DIST ldc-1.19.0-src.tar.gz 7222182 BLAKE2B 28a2256aad57f5304644126da63d88a9f0e4266402a537b7864605dd5ce97009b87d6767906b4271dd0ec9621bb1fb193531229c4799c66d0b47e6dad91c0766 SHA512 ffd1b085c7c8fe76162051234cc73e92f08a391cebac3f405c9dc6d03fcbf459d5e99295066ab4b0bd931bdce84dce53e23c33c1bc8ad35327f1b283f8e8f10a DIST ldc-1.20.1-src.tar.gz 7283975 BLAKE2B ceb75e767562936606a5fc8383dd089a8daefd04e6fbcd8c6b360fccad50ecb7c6656d60c5351b11a3580d01bdb45101ed50ff6c7a9791af1fd25be160e9a037 SHA512 bb69a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564e83f720a62ab4f2c1942c2e26bb53 +DIST ldc-1.21.0-src.tar.gz 7355981 BLAKE2B 46f3289e3e39d8c3b2a4985e1de4b5ef0e218188af5095cb2007bb83eec2bdaf6c590786d7b655a1f886c7f46703db2c049cf054c0fac438f943a702d3ac7a3b SHA512 5759cb0ad04d2e62a075748b40efb30261c1ebefbc129024cddccf60ab59c211f20b87a0fe22b0a714a0435f53d54a79cd8ad4ede7bfbf492809f23c679a diff --git a/dev-lang/ldc2/ldc2-1.21.0.ebuild b/dev-lang/ldc2/ldc2-1.21.0.ebuild new file mode 100644 index 000..8137ddf --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.21.0.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake-utils llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://ldc-developers.github.com/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 3.9 through 10. +RDEPEND="|| ( + sys-devel/llvm:10 + sys-devel/llvm:9 + sys-devel/llvm:8 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND=">=dev-util/cmake-3.8 + dev-util/ninja + ${RDEPEND}" +LLVM_MAX_SLOT=10 +PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.075-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake-utils_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' ) + cmake-utils_src_configure +} + +d_src_compile() { + cmake-utils_src_make +} + +d_src_install() { + cmake-utils_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/, eclass/, dev-lang/ldc2/files/, dev-util/gdmd/, profiles/, ...
commit: 1cc37afdb743d9478176533084a252b45c75557c Author: Marco Leise gmx de> AuthorDate: Sat May 16 17:32:38 2020 + Commit: Marco Leise gmx de> CommitDate: Sat May 16 19:35:13 2020 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=1cc37afd repository maintenance: added missiing onedrive manifest, removed ldc2 versions that depend on removed llvm-7 and updated gdmd KEYWORDS Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/Manifest | 3 - .../ldc2-1.12.0-llvm-7.1.0-compatibility.patch | 18 - .../ldc2-1.13.0-llvm-7.1.0-compatibility.patch | 16 - ...ch => ldc2-1.15.0-link-defaultlib-shared.patch} | 6 +- dev-lang/ldc2/ldc2-1.12.0-r2.ebuild| 82 -- dev-lang/ldc2/ldc2-1.13.0-r2.ebuild| 82 -- dev-lang/ldc2/ldc2-1.14.0-r2.ebuild| 82 -- dev-lang/ldc2/ldc2-1.15.0-r2.ebuild| 6 +- dev-lang/ldc2/ldc2-1.16.0.ebuild | 6 +- dev-lang/ldc2/ldc2-1.17.0.ebuild | 6 +- dev-lang/ldc2/ldc2-1.18.0.ebuild | 4 +- dev-lang/ldc2/ldc2-1.19.0.ebuild | 4 +- dev-lang/ldc2/ldc2-1.20.1.ebuild | 4 +- dev-util/gdmd/gdmd-9.2.0.ebuild| 2 +- dev-util/gdmd/gdmd-9.3.0.ebuild| 2 +- eclass/dlang-compilers.eclass | 9 +-- net-misc/onedrive/Manifest | 2 +- profiles/use.desc | 3 - 18 files changed, 18 insertions(+), 319 deletions(-) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 84b7208..157e50c 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -1,6 +1,3 @@ -DIST ldc-1.12.0-src.tar.gz 6782018 BLAKE2B 18c15098518048e23bd19f3076da8824642014d167673c6c25d9ba0ac8185a2d2254d9353833738f6a5594f971e7d5f9a579aeae785738c3cd840b543f1f6d62 SHA512 1b62b1dc06fb4ea8865a69a227d05627583813b0598cc1dcb8bbdb028a40c6dd0a0cc6d8e445c80e92d30158cf77f83fa5784b695062f625f17e031387da3e5a -DIST ldc-1.13.0-src.tar.gz 6773063 BLAKE2B 91ea5836f7cfbd492983ed8c68af3db147e494d6c26a13caa87fe4f00f32172d3ca0c5a5b081e3dad749f08a853c6419f843b28c1294451de62acf819e189d3f SHA512 6c513232d1eeae16eebe7c5fc1b22c42d5967894cc5594d718e7675c6daad50b696a06a99d959b47846f4a74395f6efb9e4517d549d6f121cec86f96bdb46871 -DIST ldc-1.14.0-src.tar.gz 6841607 BLAKE2B 3e1024f76b8646a4951029a9c867ae763085e44f7e5af531b84a20095ff0253ddcb8b5abb2039eb6002cd3b7d64f5cf68b2b2b37d1accfcc57824acde2af9dcf SHA512 9876bf45a4b2472dd7d26e4ed40ea0075dc598e574a27bdb9d6a9ea5a01263446f0a92100535f17de9620d82d13b9e30ecbbb7bf330673dc0dc3da06247ddba2 DIST ldc-1.15.0-src.tar.gz 6949021 BLAKE2B ba2488c0ce247c1f00cd4ac6206605221d9a0eed8bb637fa661676034709efd5aa6ce1cb2d314d1472d5a78a382e622bd9170653c2e3fac40f2d644aa08fdc3d SHA512 acc180d0f01f2ff261a131de74b5630568da4b16acbe4c557ba36f3ca5606edeb9c7af8c8733927f174f4512812aabaa95cf2bff340c991c17ca4b50d7e3da87 DIST ldc-1.16.0-src.tar.gz 6995348 BLAKE2B 3437d2c1f64e17793c1564c19fdd41d5a881f1c3274a0e265b10b66a59b752436222395811354e9fea58dae0573c873f64f3c5de88c1681e4e78c74e618f9892 SHA512 afd9675ce0929a8acb1084becb47d2d30d40fcd3836a55713a9ac128d12764b7eefb5e04c2eae432c4e138aa64c3d8d248745dcfeb2fa134f66fb11ddc30743e DIST ldc-1.17.0-src.tar.gz 7084805 BLAKE2B 1379ad77c0e489fea43b646a5d6cf5aa54e76b2cefe00686c69bb1c9b0caf42da7a0e24fb6d0f08c10fab9fd32e3ccb01b6702319ea73c782e3dca0a51bf6c08 SHA512 72a50b16cef63b30863b41571d14aad30b5fc25ea7859014d596c41360693da46dcf3f208195d9319fc2f4ef472ac3c86a0c552b19222cc05e491cb8cbcee38c diff --git a/dev-lang/ldc2/files/ldc2-1.12.0-llvm-7.1.0-compatibility.patch b/dev-lang/ldc2/files/ldc2-1.12.0-llvm-7.1.0-compatibility.patch deleted file mode 100644 index 98d4546..000 --- a/dev-lang/ldc2/files/ldc2-1.12.0-llvm-7.1.0-compatibility.patch +++ /dev/null @@ -1,18 +0,0 @@ a/runtime/druntime/src/ldc/intrinsics.di -+++ b/runtime/druntime/src/ldc/intrinsics.di -@@ -61,6 +61,15 @@ - version = INTRINSICS_FROM_600; - version = INTRINSICS_FROM_700; - } -+else version (LDC_LLVM_701) -+{ -+version = INTRINSICS_FROM_308; -+version = INTRINSICS_FROM_309; -+version = INTRINSICS_FROM_400; -+version = INTRINSICS_FROM_500; -+version = INTRINSICS_FROM_600; -+version = INTRINSICS_FROM_700; -+} - else - { - static assert(false, "LDC LLVM version not supported"); diff --git a/dev-lang/ldc2/files/ldc2-1.13.0-llvm-7.1.0-compatibility.patch b/dev-lang/ldc2/files/ldc2-1.13.0-llvm-7.1.0-compatibility.patch deleted file mode 100644 index 744f53a..000 --- a/dev-lang/ldc2/files/ldc2-1.13.0-llvm-7.1.0-compatibility.patch +++ /dev/null @@ -1,16 +0,0 @@ a/runtime/druntime/src/ldc/intrinsics.di -+++ b/runtime/druntime/src/ldc/intrinsics.di -@@ -44,6 +44,13 @@ - version = INTRINSICS_FROM_600; - version = INTRINSICS_FROM_700; - } -+else
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/files/, dev-lang/ldc2/
commit: 83e654a75792d2cefe31077c6e58b8054869293f Author: Marco Leise gmx de> AuthorDate: Mon Feb 10 16:07:50 2020 + Commit: Marco Leise gmx de> CommitDate: Mon Feb 10 16:07:50 2020 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=83e654a7 Fix for FileCheck;not already defined in ldc2-1.18 Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/files/ldc2-1.18.0-FileCheck-not.patch | 20 .../files/ldc2-1.9.0-link-defaultlib-shared.patch| 11 --- dev-lang/ldc2/ldc2-1.18.0.ebuild | 5 +++-- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/dev-lang/ldc2/files/ldc2-1.18.0-FileCheck-not.patch b/dev-lang/ldc2/files/ldc2-1.18.0-FileCheck-not.patch new file mode 100644 index 000..3253da2 --- /dev/null +++ b/dev-lang/ldc2/files/ldc2-1.18.0-FileCheck-not.patch @@ -0,0 +1,20 @@ +--- a/utils/CMakeLists.txt 2020-02-10 16:40:25.516183683 +0100 b/utils/CMakeLists.txt 2020-02-10 16:37:23.941181536 +0100 +@@ -31,7 +31,7 @@ + target_link_libraries(gen_gccbuiltins dl) + endif() + +-if (TARGET FileCheck) ++if ((TARGET FileCheck) OR (EXISTS ${LLVM_ROOT_DIR}/bin/FileCheck)) + # already provided by LLVM + else() + # Build FileCheck for testing (build source version depending on LLVM version) +@@ -50,7 +50,7 @@ + endif() + endif() + +-if (TARGET not) ++if ((TARGET not) OR (EXISTS ${LLVM_ROOT_DIR}/bin/not)) + # already provided by LLVM + else() + # Build `not` for testing diff --git a/dev-lang/ldc2/files/ldc2-1.9.0-link-defaultlib-shared.patch b/dev-lang/ldc2/files/ldc2-1.9.0-link-defaultlib-shared.patch deleted file mode 100644 index 6576e5c..000 --- a/dev-lang/ldc2/files/ldc2-1.9.0-link-defaultlib-shared.patch +++ /dev/null @@ -1,11 +0,0 @@ a/runtime/CMakeLists.txt -+++ b/runtime/CMakeLists.txt -@@ -268,7 +268,7 @@ - - # Only have either shared or static libs? - # Then explicitly default to linking against them via default LDC switch. --if(${BUILD_SHARED_LIBS} STREQUAL "ON") -+if(NOT ${BUILD_SHARED_LIBS} STREQUAL "OFF") - set(ADDITIONAL_DEFAULT_LDC_SWITCHES "\n \"-link-defaultlib-shared\",") - elseif(${BUILD_SHARED_LIBS} STREQUAL "OFF") - set(ADDITIONAL_DEFAULT_LDC_SWITCHES "\n \"-link-defaultlib-shared=false\",") diff --git a/dev-lang/ldc2/ldc2-1.18.0.ebuild b/dev-lang/ldc2/ldc2-1.18.0.ebuild index eabd185..e3fbd03 100644 --- a/dev-lang/ldc2/ldc2-1.18.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.18.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -31,7 +31,8 @@ DEPEND=">=dev-util/cmake-3.8 ${RDEPEND}" LLVM_MAX_SLOT=9 PATCHES="${FILESDIR}/ldc2-1.12.0-link-defaultlib-shared.patch - ${FILESDIR}/ldc2-1.13.0-llvm-7.1.0-compatibility.patch" + ${FILESDIR}/ldc2-1.13.0-llvm-7.1.0-compatibility.patch + ${FILESDIR}/ldc2-1.18.0-FileCheck-not.patch" # For now, we support amd64 multilib. Anyone is free to add more support here. MULTILIB_COMPAT=( abi_x86_{32,64} )
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 53ceca710a84129a56230a88b055b102b8a6cbef Author: Marco Leise gmx de> AuthorDate: Sat Dec 21 18:16:28 2019 + Commit: Marco Leise gmx de> CommitDate: Mon Dec 23 16:50:11 2019 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=53ceca71 ldc2-0.19.0 Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.19.0.ebuild | 84 2 files changed, 85 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index ecc2989..84690f5 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -5,3 +5,4 @@ DIST ldc-1.15.0-src.tar.gz 6949021 BLAKE2B ba2488c0ce247c1f00cd4ac6206605221d9a0 DIST ldc-1.16.0-src.tar.gz 6995348 BLAKE2B 3437d2c1f64e17793c1564c19fdd41d5a881f1c3274a0e265b10b66a59b752436222395811354e9fea58dae0573c873f64f3c5de88c1681e4e78c74e618f9892 SHA512 afd9675ce0929a8acb1084becb47d2d30d40fcd3836a55713a9ac128d12764b7eefb5e04c2eae432c4e138aa64c3d8d248745dcfeb2fa134f66fb11ddc30743e DIST ldc-1.17.0-src.tar.gz 7084805 BLAKE2B 1379ad77c0e489fea43b646a5d6cf5aa54e76b2cefe00686c69bb1c9b0caf42da7a0e24fb6d0f08c10fab9fd32e3ccb01b6702319ea73c782e3dca0a51bf6c08 SHA512 72a50b16cef63b30863b41571d14aad30b5fc25ea7859014d596c41360693da46dcf3f208195d9319fc2f4ef472ac3c86a0c552b19222cc05e491cb8cbcee38c DIST ldc-1.18.0-src.tar.gz 7183351 BLAKE2B 0affd49dda5f7c3df64e8d89fe66f2fce4c3a18c4bc5e4147e2e906d10f0b27316c8c460f5b9d767f3f50e5e909448b9f44cb17e156766d5488e237a71dd5009 SHA512 fe7529c33d0e43dfb71f474dfa381b88ee476b70933c8f80fc063d9a015df24a75e2b607a7242cc4b9cd4b6ac7559aec8f2883016bf7252342742322fcccbd4d +DIST ldc-1.19.0-src.tar.gz 7222182 BLAKE2B 28a2256aad57f5304644126da63d88a9f0e4266402a537b7864605dd5ce97009b87d6767906b4271dd0ec9621bb1fb193531229c4799c66d0b47e6dad91c0766 SHA512 ffd1b085c7c8fe76162051234cc73e92f08a391cebac3f405c9dc6d03fcbf459d5e99295066ab4b0bd931bdce84dce53e23c33c1bc8ad35327f1b283f8e8f10a diff --git a/dev-lang/ldc2/ldc2-1.19.0.ebuild b/dev-lang/ldc2/ldc2-1.19.0.ebuild new file mode 100644 index 000..eabd185 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.19.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-build cmake-utils llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://ldc-developers.github.com/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 3.9 through 9. +RDEPEND="|| ( + sys-devel/llvm:9 + sys-devel/llvm:8 + sys-devel/llvm:7 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND=">=dev-util/cmake-3.8 + dev-util/ninja + ${RDEPEND}" +LLVM_MAX_SLOT=9 +PATCHES="${FILESDIR}/ldc2-1.12.0-link-defaultlib-shared.patch + ${FILESDIR}/ldc2-1.13.0-llvm-7.1.0-compatibility.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.068 2.071-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake-utils_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' ) + cmake-utils_src_configure +} + +d_src_compile() { + cmake-utils_src_make +} + +d_src_install() { + cmake-utils_src_install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/, dev-util/dub/files/, dev-util/dlang-tools/, dev-lang/dmd/, ...
commit: c722490a674f4585d8abc2cf2cddd2c262b4dd8f Author: Marco Leise gmx de> AuthorDate: Sat Dec 21 17:45:56 2019 + Commit: Marco Leise gmx de> CommitDate: Sat Dec 21 17:58:15 2019 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=c722490a stabilization sweep & removal of ldc2 ebuilds for which there are no compatible llvm versions Signed-off-by: Marco Leise gmx.de> dev-lang/dmd/Manifest | 1 - dev-lang/dmd/dmd-2.088.0-r1.ebuild | 24 --- dev-lang/dmd/dmd-2.088.1-r1.ebuild | 2 +- dev-lang/ldc2/Manifest | 4 -- dev-lang/ldc2/ldc2-0.17.6-r1.ebuild| 72 --- dev-lang/ldc2/ldc2-1.10.0-r1.ebuild| 81 -- dev-lang/ldc2/ldc2-1.11.0-r1.ebuild| 81 -- dev-lang/ldc2/ldc2-1.12.0-r2.ebuild| 1 - dev-lang/ldc2/ldc2-1.13.0-r2.ebuild| 1 - dev-lang/ldc2/ldc2-1.14.0-r2.ebuild| 1 - dev-lang/ldc2/ldc2-1.15.0-r2.ebuild| 1 - dev-lang/ldc2/ldc2-1.16.0.ebuild | 1 - dev-lang/ldc2/ldc2-1.17.0.ebuild | 1 - dev-lang/ldc2/ldc2-1.18.0.ebuild | 1 - dev-lang/ldc2/ldc2-1.9.0-r1.ebuild | 81 -- dev-util/dlang-tools/Manifest | 1 - dev-util/dlang-tools/dlang-tools-2.088.0.ebuild| 54 --- dev-util/dlang-tools/dlang-tools-2.088.1.ebuild| 2 +- dev-util/dub/Manifest | 1 - dev-util/dub/dub-1.17.0.ebuild | 39 --- dev-util/dub/dub-1.18.0.ebuild | 2 +- .../dub/files/dub-1.17.0-gdc-dmd-pathfix.patch | 16 - eclass/dlang-compilers.eclass | 5 +- profiles/use.desc | 2 +- 24 files changed, 5 insertions(+), 470 deletions(-) diff --git a/dev-lang/dmd/Manifest b/dev-lang/dmd/Manifest index fe2c4b7..09c7250 100644 --- a/dev-lang/dmd/Manifest +++ b/dev-lang/dmd/Manifest @@ -23,6 +23,5 @@ DIST dmd.2.084.1.linux.tar.xz 23699944 BLAKE2B cc99ac0a52d98db516f465a8278893e82 DIST dmd.2.085.1.linux.tar.xz 24397876 BLAKE2B 0e9ee8deb63796c623f2348b147d99c96bd56eafb3c59620fa13bdeb77c1e8547a09a27220bcd1a9c49bab6331027be553ad5c12e6e537d4191c41932e273d60 SHA512 e32805baf1926531ea7268f4ab6845039a9518230638cf11223c47d323316ca9478376eb8084b4f993ebddd471f664e0f07b24fcff38ba9deeb8dc2e435e60b6 DIST dmd.2.086.1.linux.tar.xz 24643816 BLAKE2B fc6703f6c7f8724e06bb75278df58469876a6a23093afaf99a5dc0300d9657b6218249f7f69cdcba487d9b6bdd826f0c3e8e751897d9af96070729d35d24bf26 SHA512 cf6a7f2ef2f2133587b3aa0f72e3fc902dac59ca03c1b1021dbb16d637bead2baf891bc6c1782928fdb19c9a38b135cc1c80d5f90bc39f18b55c8e713c142cea DIST dmd.2.087.1.linux.tar.xz 25120264 BLAKE2B fb6aed0ebf1547565f99717830acfe450bc7db260070b77d37491a8d216acbe7ac1b07d320a42d7df706e0f18c6644ab18925273455b7949160c99af83645053 SHA512 8c44aa61b7fb1605a98f49db2e45d9e115626ad4bca9a1cdf3e61a116538e893d2504f524234bcd060ad3a1dda67b8813adf256055f24a0289b4f9630fc7ce63 -DIST dmd.2.088.0.linux.tar.xz 25131504 BLAKE2B 9a52c7ff2a34ef3bf5f792709f71da852a19c5c48b79ee843c2d46b2017cff2e31d7bd4d375d665fe0d5027a1397c6f05c4b3c442d6a57196bd8d548e61135fc SHA512 dcacbb48de87c312b1032306e6b33888ec779f45d33fca08a37d2341fc1f2061ae43ea95467a46bc961ee2841795e559d9c8e3ea41cf06a6e14a9c789f044c17 DIST dmd.2.088.1.linux.tar.xz 25122116 BLAKE2B e573a97cf9f547a3017a0b904523f4877782bef98144744f064a539e87fac8c0938b2963308a0e4046b934a700273338cbea32467b472daf665c9c5673ee5e06 SHA512 e98183870cab35b67967b73149a10025b257ba9ce9aafabdbdd1d91cc3009b90d13d0b5173fb5e32d53da890de7b7bd41deddec19774baaafa84c6efef4717a8 DIST dmd.2.089.0.linux.tar.xz 25693688 BLAKE2B 034d90b18e32d382d3e9c78654560b20cfc89f53cf4395b46c2b0f09db9be75c008017ff843b49912a43a40020d857a6654890b8293df305c012058369e45f78 SHA512 91e03f706ff91172a64fb9ab06544e39fcec90890074fbf72758b3bbc4d8664f66a7f714ccac5d3d236464485abef85d7936aba1612559a5c1dd78a505abd328 diff --git a/dev-lang/dmd/dmd-2.088.0-r1.ebuild b/dev-lang/dmd/dmd-2.088.0-r1.ebuild deleted file mode 100644 index 1350dea..000 --- a/dev-lang/dmd/dmd-2.088.0-r1.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -KEYWORDS="-* ~amd64 ~x86" -YEAR=2019 -DLANG_VERSION_RANGE="2.075-" - -inherit dmd - -PATCHES=( - "${FILESDIR}/2.081-allow-deprecations.patch" - "${FILESDIR}/2.083-link-32-bit-shared-lib-with-ld.bfd.patch" -) - -dmd_src_prepare_extra() { - # Copy default DDOC theme file into resource directory - mkdir "dmd/res" || die "Failed to create 'dmd/res' directory" - cp "${FILESDIR}/2.086-default_ddoc_theme.ddoc" "dmd/res/default_ddoc_theme.ddoc" || die "Failed to copy 'default_ddoc_theme.ddoc'
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: 1d5b5e9126a455a974b6e6c21f6cdee09e952b8f Author: Marco Leise gmx de> AuthorDate: Sat Dec 21 14:46:46 2019 + Commit: Marco Leise gmx de> CommitDate: Sat Dec 21 14:46:46 2019 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=1d5b5e91 Fixes #80: eninja fails in installing phase with ACCESS DENIED Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/ldc2-1.18.0.ebuild | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.18.0.ebuild b/dev-lang/ldc2/ldc2-1.18.0.ebuild index 0c75a56..d15013d 100644 --- a/dev-lang/ldc2/ldc2-1.18.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.18.0.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit multilib-build cmake-utils ninja-utils eapi7-ver llvm +inherit multilib-build cmake-utils llvm MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" @@ -54,7 +54,6 @@ d_src_configure() { # Make sure libphobos2 is installed into ldc2's directory. export LIBDIR_${ABI}="${LIBDIR_HOST}" local mycmakeargs=( - -G Ninja -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) -DD_COMPILER="${DMD}" @@ -67,11 +66,11 @@ d_src_configure() { } d_src_compile() { - eninja -C "${BUILD_DIR}" + cmake-utils_src_make } d_src_install() { - eninja -C "${BUILD_DIR}" install + cmake-utils_src_install rm -rf "${ED}"/usr/share/bash-completion }
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
commit: e0d1724997a9306df3ec4f24af575c0fcf1b9e3a Author: Marco Leise gmx de> AuthorDate: Sat Nov 30 11:44:36 2019 + Commit: Marco Leise gmx de> CommitDate: Sat Nov 30 11:44:36 2019 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=e0d17249 ldc2-1.18 Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/Manifest | 1 + dev-lang/ldc2/ldc2-1.18.0.ebuild | 86 2 files changed, 87 insertions(+) diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest index 055ece3..f566506 100644 --- a/dev-lang/ldc2/Manifest +++ b/dev-lang/ldc2/Manifest @@ -7,4 +7,5 @@ DIST ldc-1.14.0-src.tar.gz 6841607 BLAKE2B 3e1024f76b8646a4951029a9c867ae763085e DIST ldc-1.15.0-src.tar.gz 6949021 BLAKE2B ba2488c0ce247c1f00cd4ac6206605221d9a0eed8bb637fa661676034709efd5aa6ce1cb2d314d1472d5a78a382e622bd9170653c2e3fac40f2d644aa08fdc3d SHA512 acc180d0f01f2ff261a131de74b5630568da4b16acbe4c557ba36f3ca5606edeb9c7af8c8733927f174f4512812aabaa95cf2bff340c991c17ca4b50d7e3da87 DIST ldc-1.16.0-src.tar.gz 6995348 BLAKE2B 3437d2c1f64e17793c1564c19fdd41d5a881f1c3274a0e265b10b66a59b752436222395811354e9fea58dae0573c873f64f3c5de88c1681e4e78c74e618f9892 SHA512 afd9675ce0929a8acb1084becb47d2d30d40fcd3836a55713a9ac128d12764b7eefb5e04c2eae432c4e138aa64c3d8d248745dcfeb2fa134f66fb11ddc30743e DIST ldc-1.17.0-src.tar.gz 7084805 BLAKE2B 1379ad77c0e489fea43b646a5d6cf5aa54e76b2cefe00686c69bb1c9b0caf42da7a0e24fb6d0f08c10fab9fd32e3ccb01b6702319ea73c782e3dca0a51bf6c08 SHA512 72a50b16cef63b30863b41571d14aad30b5fc25ea7859014d596c41360693da46dcf3f208195d9319fc2f4ef472ac3c86a0c552b19222cc05e491cb8cbcee38c +DIST ldc-1.18.0-src.tar.gz 7183351 BLAKE2B 0affd49dda5f7c3df64e8d89fe66f2fce4c3a18c4bc5e4147e2e906d10f0b27316c8c460f5b9d767f3f50e5e909448b9f44cb17e156766d5488e237a71dd5009 SHA512 fe7529c33d0e43dfb71f474dfa381b88ee476b70933c8f80fc063d9a015df24a75e2b607a7242cc4b9cd4b6ac7559aec8f2883016bf7252342742322fcccbd4d DIST ldc-1.9.0-src.tar.gz 6560330 BLAKE2B 4ffb8f3aa6af1ce1b5e9bfa9b4f5b22e0f88e7e1f097251c6a7a3fbdcfc94638ba89aa8fb5f84862e20049d35e3065323cef758675505641b5247a50a1c4c351 SHA512 a036097c6db72b925b1292994b27b5777fd5f29a529f2d918caede3bb7c5ae0c10e1069e7640a6b8ae0f5b37ac96eff669c3faf1661034f627ce829ca7681474 diff --git a/dev-lang/ldc2/ldc2-1.18.0.ebuild b/dev-lang/ldc2/ldc2-1.18.0.ebuild new file mode 100644 index 000..0c75a56 --- /dev/null +++ b/dev-lang/ldc2/ldc2-1.18.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib-build cmake-utils ninja-utils eapi7-ver llvm + +MY_PV="${PV//_/-}" +MY_P="ldc-${MY_PV}-src" +SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"; +S=${WORKDIR}/${MY_P} + +DESCRIPTION="LLVM D Compiler" +HOMEPAGE="https://ldc-developers.github.com/ldc"; +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +LICENSE="BSD" +SLOT="$(ver_cut 1-2)/$(ver_cut 3)" + +IUSE="static-libs" + +# We support LLVM 3.9 through 9. +RDEPEND="|| ( + sys-devel/llvm:9 + sys-devel/llvm:8 + sys-devel/llvm:7 + sys-devel/llvm:6 + ) + =app-eselect/eselect-dlang-20140709" +DEPEND=">=dev-util/cmake-3.8 + dev-util/ninja + ${RDEPEND}" +LLVM_MAX_SLOT=9 +PATCHES="${FILESDIR}/ldc2-1.12.0-link-defaultlib-shared.patch + ${FILESDIR}/ldc2-1.13.0-llvm-7.1.0-compatibility.patch" + +# For now, we support amd64 multilib. Anyone is free to add more support here. +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +DLANG_VERSION_RANGE="2.068 2.071-" +DLANG_PACKAGE_TYPE="single" + +inherit dlang + +detect_hardened() { + gcc --version | grep -o Hardened +} + +src_prepare() { + cmake-utils_src_prepare +} + +d_src_configure() { + # Make sure libphobos2 is installed into ldc2's directory. + export LIBDIR_${ABI}="${LIBDIR_HOST}" + local mycmakeargs=( + -G Ninja + -DD_VERSION=2 + -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) + -DD_COMPILER="${DMD}" + -DLDC_WITH_LLD=OFF + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) + use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) + detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' ) + cmake-utils_src_configure +} + +d_src_compile() { + eninja -C "${BUILD_DIR}" +} + +d_src_install() { + eninja -C "${BUILD_DIR}" install + + rm -rf "${ED}"/usr/share/bash-completion +} + +pkg_postinst() { + # Update active ldc2 + "${ROOT}"/usr/bin/eselect dlang update ldc2 +} + +pkg_postrm() { + "${ROOT}"/usr/bin/eselect dlang update ldc2 +}
[gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/, dev-util/dub/, eclass/, profiles/, dev-util/dub/files/
commit: 7b07c6a1dd5e165595858a9a7224ec80b611c339 Author: Marco Leise gmx de> AuthorDate: Sun Nov 3 00:22:03 2019 + Commit: Marco Leise gmx de> CommitDate: Sun Nov 17 15:36:41 2019 + URL:https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=7b07c6a1 stabilization sweep Signed-off-by: Marco Leise gmx.de> dev-lang/ldc2/ldc2-1.17.0.ebuild | 2 +- dev-util/dub/Manifest | 1 - dev-util/dub/dub-1.16.0.ebuild | 39 -- dev-util/dub/dub-1.17.0.ebuild | 2 +- .../dub/files/dub-1.16.0-gdc-dmd-pathfix.patch | 16 - eclass/dlang-compilers.eclass | 1 + profiles/use.desc | 1 + 7 files changed, 4 insertions(+), 58 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.17.0.ebuild b/dev-lang/ldc2/ldc2-1.17.0.ebuild index d01e602..f526ac8 100644 --- a/dev-lang/ldc2/ldc2-1.17.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.17.0.ebuild @@ -12,7 +12,7 @@ S=${WORKDIR}/${MY_P} DESCRIPTION="LLVM D Compiler" HOMEPAGE="https://ldc-developers.github.com/ldc"; -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" LICENSE="BSD" SLOT="$(ver_cut 1-2)/$(ver_cut 3)" diff --git a/dev-util/dub/Manifest b/dev-util/dub/Manifest index df15b75..aefe6c2 100644 --- a/dev-util/dub/Manifest +++ b/dev-util/dub/Manifest @@ -1,2 +1 @@ -DIST dub-1.16.0.tar.gz 1280193 BLAKE2B c569e2b189609d64801478f219139463552717b82d12b69792f0488ed52ffaefbe3b9ccfcec56c8324e03851a92b0a33f55730b759e56ecd8c322155980185c0 SHA512 e088fcdb0930439606c7575183d96cc4d743109d0d513f3606ae1ac1df41d4862aff8bfd36be90228aed4c4fc2f46528cb7a650ec6f988f146b051a10ccce177 DIST dub-1.17.0.tar.gz 1280689 BLAKE2B b7236bce2e2cc1218a8043ae95087876e6fa67e696e3320c2ba089451870eccc3f7d7aafb89d7ec192fad4bc5de89eab15f79c1e128ca7c12c1c906b4151ba1c SHA512 8907e7b66d5a5c3d6013a2073a61cdab2a9276454b9c63628b30bb787cee2a7f785bf5ee1db781bf241fe4196a792f74682872ad55bb42349ae5452ce0ffec92 diff --git a/dev-util/dub/dub-1.16.0.ebuild b/dev-util/dub/dub-1.16.0.ebuild deleted file mode 100644 index 757e33a..000 --- a/dev-util/dub/dub-1.16.0.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="Package and build management system for D" -HOMEPAGE="http://code.dlang.org/"; -LICENSE="MIT" - -SLOT="0" -KEYWORDS="amd64 ~arm x86" -IUSE="debug" - -GITHUB_URI="https://codeload.github.com/dlang"; -SRC_URI="${GITHUB_URI}/${PN}/tar.gz/v${PV} -> ${PN}-${PV}.tar.gz" -PATCHES="${FILESDIR}/${P}-gdc-dmd-pathfix.patch" - -DLANG_VERSION_RANGE="2.076-" -DLANG_PACKAGE_TYPE="single" - -inherit dlang - -DEPEND="net-misc/curl" -RDEPEND="${DEPEND}" - -d_src_compile() { - local imports=source versions="DubApplication DubUseCurl" libs="curl z" - dlang_compile_bin bin/dub $(http://code.dlang.org/"; LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" +KEYWORDS="amd64 ~arm x86" IUSE="debug" GITHUB_URI="https://codeload.github.com/dlang"; diff --git a/dev-util/dub/files/dub-1.16.0-gdc-dmd-pathfix.patch b/dev-util/dub/files/dub-1.16.0-gdc-dmd-pathfix.patch deleted file mode 100644 index 497ef50..000 --- a/dev-util/dub/files/dub-1.16.0-gdc-dmd-pathfix.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/source/dub/generators/build.d b/source/dub/generators/build.d a/source/dub/generators/build.d -+++ b/source/dub/generators/build.d -@@ -119,10 +119,10 @@ class BuildGenerator : ProjectGenerator { - auto build_id = computeBuildID(config, buildsettings, settings); - - // make all paths relative to shrink the command line -- string makeRelative(string path) { return shrinkPath(NativePath(path), cwd); } -+ /+string makeRelative(string path) { return shrinkPath(NativePath(path), cwd); } - foreach (ref f; buildsettings.sourceFiles) f = makeRelative(f); - foreach (ref p; buildsettings.importPaths) p = makeRelative(p); -- foreach (ref p; buildsettings.stringImportPaths) p = makeRelative(p); -+ foreach (ref p; buildsettings.stringImportPaths) p = makeRelative(p);+/ - - // perform the actual build - bool cached = false; diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass index 443c767..318cb91 100644 --- a/eclass/dlang-compilers.eclass +++ b/eclass/dlang-compilers.eclass @@ -58,6 +58,7 @@ dlang-compilers_declare_versions() { ["1.14"]="2.084 amd64 ~arm ~arm64 ~ppc64 x86" ["1.15"]="2.085 amd64 ~arm ~arm64 ~ppc64 x86" ["1.16"]="2.086 amd64 ~arm ~arm64 ~ppc64 x86" + ["1.17"]="2.087 amd64 ~arm ~arm64 ~ppc64 x86" ) } diff --git a/profiles/use.desc b/profiles/use.desc index da00b6f..6f0ec5b 100644 --- a/profiles/use.desc +++ b/profiles/