* [gentoo-commits] repo/user/dlang:master commit in: eclass/, profiles/, dev-lang/ldc2/
@ 2020-08-15 1:50 Marco Leise
0 siblings, 0 replies; 3+ messages in thread
From: Marco Leise @ 2020-08-15 1:50 UTC (permalink / raw
To: gentoo-commits
commit: 5019cbe38d24423e9e514a320df8a4ce5c7f4518
Author: Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Fri Aug 14 21:18:08 2020 +0000
Commit: Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Sat Aug 15 01:15:55 2020 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=5019cbe3
Removed ldc2 builds that depeneded on the removed LLVM 8.
Signed-off-by: Marco Leise <marco.leise <AT> gmx.de>
dev-lang/ldc2/Manifest | 3 --
dev-lang/ldc2/ldc2-1.15.0-r2.ebuild | 81 -------------------------------------
dev-lang/ldc2/ldc2-1.16.0.ebuild | 81 -------------------------------------
dev-lang/ldc2/ldc2-1.17.0.ebuild | 81 -------------------------------------
dev-lang/ldc2/ldc2-1.18.0.ebuild | 1 -
dev-lang/ldc2/ldc2-1.19.0.ebuild | 1 -
dev-lang/ldc2/ldc2-1.20.1.ebuild | 1 -
dev-lang/ldc2/ldc2-1.21.0.ebuild | 1 -
eclass/dlang-compilers.eclass | 3 --
profiles/use.desc | 3 --
10 files changed, 256 deletions(-)
diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest
index 4abf228..e3f040c 100644
--- a/dev-lang/ldc2/Manifest
+++ b/dev-lang/ldc2/Manifest
@@ -1,6 +1,3 @@
-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.19.0-src.tar.gz 7222182 BLAKE2B 28a2256aad57f5304644126da63d88a9f0e4266402a537b7864605dd5ce97009b87d6767906b4271dd0ec9621bb1fb193531229c4799c66d0b47e6dad91c0766 SHA512 ffd1b085c7c8fe76162051234cc73e92f08a391cebac3f405c9dc6d03fcbf459d5e99295066ab4b0bd931bdce84dce53e23c33c1bc8ad35327f1b283f8e8f10a
DIST ldc-1.20.1-src.tar.gz 7283975 BLAKE2B ceb75e767562936606a5fc8383dd089a8daefd04e6fbcd8c6b360fccad50ecb7c6656d60c5351b11a3580d01bdb45101ed50ff6c7a9791af1fd25be160e9a037 SHA512 bb699999a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564ffffe83f720a62ab4f2c1942c2e26bb53
diff --git a/dev-lang/ldc2/ldc2-1.15.0-r2.ebuild b/dev-lang/ldc2/ldc2-1.15.0-r2.ebuild
deleted file mode 100644
index 54ffbec..0000000
--- a/dev-lang/ldc2/ldc2-1.15.0-r2.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit multilib-build cmake-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 8.
-RDEPEND="|| (
- sys-devel/llvm:8
- )
- <sys-devel/llvm-9:=
- >=app-eselect/eselect-dlang-20140709"
-DEPEND=">=dev-util/cmake-2.8
- ${RDEPEND}"
-LLVM_MAX_SLOT=8
-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-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}"
- -DD_COMPILER_DMD_COMPAT=1
- -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
-}
diff --git a/dev-lang/ldc2/ldc2-1.16.0.ebuild b/dev-lang/ldc2/ldc2-1.16.0.ebuild
deleted file mode 100644
index 54ffbec..0000000
--- a/dev-lang/ldc2/ldc2-1.16.0.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit multilib-build cmake-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 8.
-RDEPEND="|| (
- sys-devel/llvm:8
- )
- <sys-devel/llvm-9:=
- >=app-eselect/eselect-dlang-20140709"
-DEPEND=">=dev-util/cmake-2.8
- ${RDEPEND}"
-LLVM_MAX_SLOT=8
-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-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}"
- -DD_COMPILER_DMD_COMPAT=1
- -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
-}
diff --git a/dev-lang/ldc2/ldc2-1.17.0.ebuild b/dev-lang/ldc2/ldc2-1.17.0.ebuild
deleted file mode 100644
index 54ffbec..0000000
--- a/dev-lang/ldc2/ldc2-1.17.0.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit multilib-build cmake-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 8.
-RDEPEND="|| (
- sys-devel/llvm:8
- )
- <sys-devel/llvm-9:=
- >=app-eselect/eselect-dlang-20140709"
-DEPEND=">=dev-util/cmake-2.8
- ${RDEPEND}"
-LLVM_MAX_SLOT=8
-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-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}"
- -DD_COMPILER_DMD_COMPAT=1
- -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
-}
diff --git a/dev-lang/ldc2/ldc2-1.18.0.ebuild b/dev-lang/ldc2/ldc2-1.18.0.ebuild
index f53f4fa..7c803d2 100644
--- a/dev-lang/ldc2/ldc2-1.18.0.ebuild
+++ b/dev-lang/ldc2/ldc2-1.18.0.ebuild
@@ -21,7 +21,6 @@ IUSE="static-libs"
# We support LLVM 3.9 through 9.
RDEPEND="|| (
sys-devel/llvm:9
- sys-devel/llvm:8
)
<sys-devel/llvm-10:=
>=app-eselect/eselect-dlang-20140709"
diff --git a/dev-lang/ldc2/ldc2-1.19.0.ebuild b/dev-lang/ldc2/ldc2-1.19.0.ebuild
index 75a1e0d..f9f501f 100644
--- a/dev-lang/ldc2/ldc2-1.19.0.ebuild
+++ b/dev-lang/ldc2/ldc2-1.19.0.ebuild
@@ -21,7 +21,6 @@ IUSE="static-libs"
# We support LLVM 3.9 through 9.
RDEPEND="|| (
sys-devel/llvm:9
- sys-devel/llvm:8
)
<sys-devel/llvm-10:=
>=app-eselect/eselect-dlang-20140709"
diff --git a/dev-lang/ldc2/ldc2-1.20.1.ebuild b/dev-lang/ldc2/ldc2-1.20.1.ebuild
index edd90cf..576ceaa 100644
--- a/dev-lang/ldc2/ldc2-1.20.1.ebuild
+++ b/dev-lang/ldc2/ldc2-1.20.1.ebuild
@@ -22,7 +22,6 @@ IUSE="static-libs"
RDEPEND="|| (
sys-devel/llvm:10
sys-devel/llvm:9
- sys-devel/llvm:8
)
<sys-devel/llvm-11:=
>=app-eselect/eselect-dlang-20140709"
diff --git a/dev-lang/ldc2/ldc2-1.21.0.ebuild b/dev-lang/ldc2/ldc2-1.21.0.ebuild
index edd90cf..576ceaa 100644
--- a/dev-lang/ldc2/ldc2-1.21.0.ebuild
+++ b/dev-lang/ldc2/ldc2-1.21.0.ebuild
@@ -22,7 +22,6 @@ IUSE="static-libs"
RDEPEND="|| (
sys-devel/llvm:10
sys-devel/llvm:9
- sys-devel/llvm:8
)
<sys-devel/llvm-11:=
>=app-eselect/eselect-dlang-20140709"
diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass
index c4fcb69..5aebd49 100644
--- a/eclass/dlang-compilers.eclass
+++ b/eclass/dlang-compilers.eclass
@@ -52,9 +52,6 @@ dlang-compilers_declare_versions() {
# LDC
__dlang_ldc2_frontend=(
- ["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"
["1.18"]="2.088 amd64 ~arm ~arm64 ~ppc64 x86"
["1.19"]="2.089 amd64 ~arm ~arm64 ~ppc64 x86"
["1.20"]="2.090 amd64 ~arm ~arm64 ~ppc64 x86"
diff --git a/profiles/use.desc b/profiles/use.desc
index f02ff90..d28d9c2 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
@@ -28,9 +28,6 @@ dmd-2_089 - Build for DMD 2.089
dmd-2_090 - Build for DMD 2.090
dmd-2_091 - Build for DMD 2.091
gdc-9_3_0 - Build for GCC 9.3.0
-ldc2-1_15 - Build for ldc2 1.15
-ldc2-1_16 - Build for ldc2 1.16
-ldc2-1_17 - Build for ldc2 1.17
ldc2-1_18 - Build for ldc2 1.18
ldc2-1_19 - Build for ldc2 1.19
ldc2-1_20 - Build for ldc2 1.20
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: eclass/, profiles/, dev-lang/ldc2/
@ 2022-02-08 21:39 Marco Leise
0 siblings, 0 replies; 3+ messages in thread
From: Marco Leise @ 2022-02-08 21:39 UTC (permalink / raw
To: gentoo-commits
commit: f737b97e9208279f490438dac51d22c4da7bb07b
Author: Niko Böckerman <niko.bockerman <AT> protonmail <DOT> com>
AuthorDate: Thu Feb 3 20:55:04 2022 +0000
Commit: Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Mon Feb 7 18:26:41 2022 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=f737b97e
ldc2-1.28.0
Signed-off-by: Niko Böckerman <niko.bockerman <AT> protonmail.com>
dev-lang/ldc2/Manifest | 1 +
dev-lang/ldc2/ldc2-1.28.0.ebuild | 82 ++++++++++++++++++++++++++++++++++++++++
eclass/dlang-compilers.eclass | 1 +
profiles/use.desc | 1 +
4 files changed, 85 insertions(+)
diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest
index d087c64..a8f2072 100644
--- a/dev-lang/ldc2/Manifest
+++ b/dev-lang/ldc2/Manifest
@@ -2,3 +2,4 @@ DIST ldc-1.24.0-src.tar.gz 7522065 BLAKE2B 65069835528466c4a39ebf08245fa7fcc9348
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
+DIST ldc-1.28.0-src.tar.gz 7923347 BLAKE2B 5381eab19ad66bfa91e27ed9085b11e6a7e202704dcd8ea6141d16fc8580c464c88fba895e1248568781059bf77c396c56e0669ca36125df948e32eaef98c9bd SHA512 3e566282175d65eb075c9c076bcf0475658c747238ed91efd350a7834d6d54760310ac5249fb74db3812c07058efbca8d726427ef39055d77b3f9a6940bf4188
diff --git a/dev-lang/ldc2/ldc2-1.28.0.ebuild b/dev-lang/ldc2/ldc2-1.28.0.ebuild
new file mode 100644
index 0000000..a68973a
--- /dev/null
+++ b/dev-lang/ldc2/ldc2-1.28.0.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:11
+ sys-devel/llvm:12
+ )
+ <sys-devel/llvm-13:=
+ >=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
+}
diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass
index ade019f..be7001b 100644
--- a/eclass/dlang-compilers.eclass
+++ b/eclass/dlang-compilers.eclass
@@ -61,6 +61,7 @@ dlang-compilers_declare_versions() {
["1.25"]="2.095 ~amd64 ~arm ~arm64 ~ppc64 ~x86"
["1.26"]="2.096 ~amd64 ~arm ~arm64 ~ppc64 ~x86"
["1.27"]="2.097 ~amd64 ~arm ~arm64 ~ppc64 ~x86"
+ ["1.28"]="2.098 ~amd64 ~arm ~arm64 ~ppc64 ~x86"
)
}
diff --git a/profiles/use.desc b/profiles/use.desc
index 6ae0f28..218024e 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
@@ -37,3 +37,4 @@ ldc2-1_24 - Build for ldc2 1.24
ldc2-1_25 - Build for ldc2 1.25
ldc2-1_26 - Build for ldc2 1.26
ldc2-1_27 - Build for ldc2 1.27
+ldc2-1_28 - Build for ldc2 1.28
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/user/dlang:master commit in: eclass/, profiles/, dev-lang/ldc2/
@ 2022-02-08 21:39 Marco Leise
0 siblings, 0 replies; 3+ messages in thread
From: Marco Leise @ 2022-02-08 21:39 UTC (permalink / raw
To: gentoo-commits
commit: 3d8947b7b7dbbd4687300c8c0834571089042c85
Author: Niko Böckerman <niko.bockerman <AT> protonmail <DOT> com>
AuthorDate: Thu Feb 3 20:54:45 2022 +0000
Commit: Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Mon Feb 7 18:24:58 2022 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=3d8947b7
ldc2-1.27.1
Signed-off-by: Niko Böckerman <niko.bockerman <AT> protonmail.com>
dev-lang/ldc2/Manifest | 1 +
dev-lang/ldc2/ldc2-1.27.1.ebuild | 82 ++++++++++++++++++++++++++++++++++++++++
eclass/dlang-compilers.eclass | 1 +
profiles/use.desc | 1 +
4 files changed, 85 insertions(+)
diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest
index 4767a40..d087c64 100644
--- a/dev-lang/ldc2/Manifest
+++ b/dev-lang/ldc2/Manifest
@@ -1,3 +1,4 @@
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
diff --git a/dev-lang/ldc2/ldc2-1.27.1.ebuild b/dev-lang/ldc2/ldc2-1.27.1.ebuild
new file mode 100644
index 0000000..a68973a
--- /dev/null
+++ b/dev-lang/ldc2/ldc2-1.27.1.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:11
+ sys-devel/llvm:12
+ )
+ <sys-devel/llvm-13:=
+ >=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
+}
diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass
index 8810153..ade019f 100644
--- a/eclass/dlang-compilers.eclass
+++ b/eclass/dlang-compilers.eclass
@@ -60,6 +60,7 @@ dlang-compilers_declare_versions() {
["1.24"]="2.094 amd64 ~arm ~arm64 ~ppc64 x86"
["1.25"]="2.095 ~amd64 ~arm ~arm64 ~ppc64 ~x86"
["1.26"]="2.096 ~amd64 ~arm ~arm64 ~ppc64 ~x86"
+ ["1.27"]="2.097 ~amd64 ~arm ~arm64 ~ppc64 ~x86"
)
}
diff --git a/profiles/use.desc b/profiles/use.desc
index 94d41a5..6ae0f28 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
@@ -36,3 +36,4 @@ gdc-9_3_0 - Build for GCC 9.3.0
ldc2-1_24 - Build for ldc2 1.24
ldc2-1_25 - Build for ldc2 1.25
ldc2-1_26 - Build for ldc2 1.26
+ldc2-1_27 - Build for ldc2 1.27
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-08 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-15 1:50 [gentoo-commits] repo/user/dlang:master commit in: eclass/, profiles/, dev-lang/ldc2/ Marco Leise
-- strict thread matches above, loose matches on Subject: below --
2022-02-08 21:39 Marco Leise
2022-02-08 21:39 Marco Leise
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox