public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2019-11-30 12:01 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2019-11-30 12:01 UTC (permalink / raw
  To: gentoo-commits

commit:     e0d1724997a9306df3ec4f24af575c0fcf1b9e3a
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Sat Nov 30 11:44:36 2019 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Sat Nov 30 11:44:36 2019 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=e0d17249

ldc2-1.18

Signed-off-by: Marco Leise <marco.leise <AT> 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 0000000..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
+	)
+	<sys-devel/llvm-10:=
+	>=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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2019-12-23 16:56 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2019-12-23 16:56 UTC (permalink / raw
  To: gentoo-commits

commit:     53ceca710a84129a56230a88b055b102b8a6cbef
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Sat Dec 21 18:16:28 2019 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Mon Dec 23 16:50:11 2019 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=53ceca71

ldc2-0.19.0

Signed-off-by: Marco Leise <marco.leise <AT> 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 0000000..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
+	)
+	<sys-devel/llvm-10:=
+	>=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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2019-12-23 16:56 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2019-12-23 16:56 UTC (permalink / raw
  To: gentoo-commits

commit:     1d5b5e9126a455a974b6e6c21f6cdee09e952b8f
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Sat Dec 21 14:46:46 2019 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Sat Dec 21 14:46:46 2019 +0000
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 <marco.leise <AT> 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
 }


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2020-05-17 15:07 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2020-05-17 15:07 UTC (permalink / raw
  To: gentoo-commits

commit:     ee6583aa63ec9dcddf8607c8522fb8530a97e79d
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Sat May 16 19:57:32 2020 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Sat May 16 19:57:32 2020 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=ee6583aa

ldc2-1.21.0

Signed-off-by: Marco Leise <marco.leise <AT> 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 bb699999a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564ffffe83f720a62ab4f2c1942c2e26bb53
+DIST ldc-1.21.0-src.tar.gz 7355981 BLAKE2B 46f3289e3e39d8c3b2a4985e1de4b5ef0e218188af5095cb2007bb83eec2bdaf6c590786d7b655a1f886c7f46703db2c049cf054c0fac438f943a702d3ac7a3b SHA512 5759cb0ad04d2e62a075748b40efb30261c1ebefbc129024cddccf60ab59c211f20b87a0fe22b0a714a0435f53d54a722229cd8ad4ede7bfbf492809f23c679a

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 0000000..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
+	)
+	<sys-devel/llvm-11:=
+	>=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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2020-08-15  1:50 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2020-08-15  1:50 UTC (permalink / raw
  To: gentoo-commits

commit:     97ad37cb061d6c879bcf49e2731cefce98bfe4ed
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Fri Aug 14 17:31:32 2020 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Sat Aug 15 01:34:34 2020 +0000
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 <marco.leise <AT> 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 0000000..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
+	)
+	<sys-devel/llvm-10:=
+	>=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 0000000..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
+	)
+	<sys-devel/llvm-10:=
+	>=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_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.20.1-r1.ebuild b/dev-lang/ldc2/ldc2-1.20.1-r1.ebuild
new file mode 100644
index 0000000..c5db3f2
--- /dev/null
+++ b/dev-lang/ldc2/ldc2-1.20.1-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 10.
+RDEPEND="|| (
+		sys-devel/llvm:10
+		sys-devel/llvm:9
+	)
+	<sys-devel/llvm-11:=
+	>=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
+}

diff --git a/dev-lang/ldc2/ldc2-1.21.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.21.0-r1.ebuild
new file mode 100644
index 0000000..c5db3f2
--- /dev/null
+++ b/dev-lang/ldc2/ldc2-1.21.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 10.
+RDEPEND="|| (
+		sys-devel/llvm:10
+		sys-devel/llvm:9
+	)
+	<sys-devel/llvm-11:=
+	>=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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2020-08-15  1:50 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2020-08-15  1:50 UTC (permalink / raw
  To: gentoo-commits

commit:     94fb390fc2eb8a5b0ebddcbabfdc9d23e8424abd
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Fri Aug 14 21:12:17 2020 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Sat Aug 15 01:34:45 2020 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=94fb390f

ldc2-1.22

Signed-off-by: Marco Leise <marco.leise <AT> 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 bb699999a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564ffffe83f720a62ab4f2c1942c2e26bb53
 DIST ldc-1.21.0-src.tar.gz 7355981 BLAKE2B 46f3289e3e39d8c3b2a4985e1de4b5ef0e218188af5095cb2007bb83eec2bdaf6c590786d7b655a1f886c7f46703db2c049cf054c0fac438f943a702d3ac7a3b SHA512 5759cb0ad04d2e62a075748b40efb30261c1ebefbc129024cddccf60ab59c211f20b87a0fe22b0a714a0435f53d54a722229cd8ad4ede7bfbf492809f23c679a
+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 0000000..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
+	)
+	<sys-devel/llvm-11:=
+	>=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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2020-11-16  4:05 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2020-11-16  4:05 UTC (permalink / raw
  To: gentoo-commits

commit:     ac57a54fd348d4227ebaf2cf2ec08ab7c7be0737
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Mon Nov 16 01:13:47 2020 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Mon Nov 16 04:02:49 2020 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=ac57a54f

ldc2-1.23

Signed-off-by: Marco Leise <marco.leise <AT> 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 bb699999a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564ffffe83f720a62ab4f2c1942c2e26bb53
 DIST ldc-1.21.0-src.tar.gz 7355981 BLAKE2B 46f3289e3e39d8c3b2a4985e1de4b5ef0e218188af5095cb2007bb83eec2bdaf6c590786d7b655a1f886c7f46703db2c049cf054c0fac438f943a702d3ac7a3b SHA512 5759cb0ad04d2e62a075748b40efb30261c1ebefbc129024cddccf60ab59c211f20b87a0fe22b0a714a0435f53d54a722229cd8ad4ede7bfbf492809f23c679a
 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 0000000..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
+	)
+	<sys-devel/llvm-11:=
+	>=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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2020-11-16  4:05 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2020-11-16  4:05 UTC (permalink / raw
  To: gentoo-commits

commit:     ae2a43d059d43447a10b184a93e4fce44ff299c2
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Mon Nov 16 01:39:06 2020 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Mon Nov 16 04:02:58 2020 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=ae2a43d0

ldc2-1.24

Signed-off-by: Marco Leise <marco.leise <AT> 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 5759cb0ad04d2e62a075748b40efb30261c1ebefbc129024cddccf60ab59c211f20b87a0fe22b0a714a0435f53d54a722229cd8ad4ede7bfbf492809f23c679a
 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 0000000..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
+	)
+	<sys-devel/llvm-11:=
+	>=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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2021-07-07 15:41 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2021-07-07 15:41 UTC (permalink / raw
  To: gentoo-commits

commit:     9dc7c97fabf392de6f3ad8fdb96479fe405e4d3e
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Wed Jul  7 13:42:04 2021 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Wed Jul  7 14:00:47 2021 +0000
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 <marco.leise <AT> 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 0000000..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
+	)
+	<sys-devel/llvm-11:=
+	>=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 0000000..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
+
+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=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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2021-07-07 15:41 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2021-07-07 15:41 UTC (permalink / raw
  To: gentoo-commits

commit:     e177a4bd80ebed3dd237d7f16f8e4a20b56d2084
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Wed Jul  7 13:15:16 2021 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Wed Jul  7 13:59:17 2021 +0000
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 <marco.leise <AT> 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 0000000..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
+	)
+	<sys-devel/llvm-11:=
+	>=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 0000000..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
+	)
+	<sys-devel/llvm-11:=
+	>=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.22.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.22.0-r1.ebuild
new file mode 100644
index 0000000..5a2b5c6
--- /dev/null
+++ b/dev-lang/ldc2/ldc2-1.22.0-r1.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
+	)
+	<sys-devel/llvm-11:=
+	>=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.23.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.23.0-r1.ebuild
new file mode 100644
index 0000000..322787b
--- /dev/null
+++ b/dev-lang/ldc2/ldc2-1.23.0-r1.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
+	)
+	<sys-devel/llvm-11:=
+	>=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.24.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.24.0-r1.ebuild
new file mode 100644
index 0000000..322787b
--- /dev/null
+++ b/dev-lang/ldc2/ldc2-1.24.0-r1.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
+	)
+	<sys-devel/llvm-11:=
+	>=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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2022-02-06 15:50 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2022-02-06 15:50 UTC (permalink / raw
  To: gentoo-commits

commit:     2966167d6db5018b0ea1eb50f2a277324ffbd229
Author:     Niko Böckerman <niko.bockerman <AT> protonmail <DOT> com>
AuthorDate: Thu Feb  3 19:29:34 2022 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Thu Feb  3 19:36:52 2022 +0000
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 <niko.bockerman <AT> 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 0000000..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
+	)
+	<sys-devel/llvm-12:=
+	>=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 0000000..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
+	)
+	<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/dev-lang/ldc2/ldc2-1.26.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.26.0-r1.ebuild
new file mode 100644
index 0000000..1171863
--- /dev/null
+++ b/dev-lang/ldc2/ldc2-1.26.0-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
+	)
+	<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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2022-03-24 18:15 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2022-03-24 18:15 UTC (permalink / raw
  To: gentoo-commits

commit:     2b05087d0516fbca1acf0144a8451627623eff08
Author:     Niko Böckerman <niko.bockerman <AT> protonmail <DOT> com>
AuthorDate: Thu Mar 17 15:54:44 2022 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Wed Mar 23 19:48:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=2b05087d

ldc2-1.28.1

Signed-off-by: Niko Böckerman <niko.bockerman <AT> 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 0000000..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
+	)
+	<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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2022-03-24 18:15 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2022-03-24 18:15 UTC (permalink / raw
  To: gentoo-commits

commit:     e9ae75b70e14a2ec5ef17929e5d913c169afb255
Author:     Niko Böckerman <niko.bockerman <AT> protonmail <DOT> com>
AuthorDate: Thu Mar 17 15:55:22 2022 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Wed Mar 23 19:48:23 2022 +0000
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 <niko.bockerman <AT> 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


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2022-07-25 11:15 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2022-07-25 11:15 UTC (permalink / raw
  To: gentoo-commits

commit:     118781d0346e695903064f76e6a17c4fa50c8074
Author:     Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Mon Jul 25 11:11:40 2022 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Mon Jul 25 11:11:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=118781d0

fixed KEYWORDS on ldc2-1.29

Signed-off-by: Marco Leise <marco.leise <AT> 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)"
 


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2023-09-28  4:56 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2023-09-28  4:56 UTC (permalink / raw
  To: gentoo-commits

commit:     744442c6d16962c09d24a336ef2bd92087f35735
Author:     Horodniceanu Andrei <a.horodniceanu <AT> protonmail <DOT> com>
AuthorDate: Mon Aug 21 13:27:42 2023 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Fri Sep  1 18:13:01 2023 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=744442c6

dev-lang/ldc2: don't embed -relocation-model=pic

Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> 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
 }
 


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2023-09-28  4:56 Marco Leise
  0 siblings, 0 replies; 36+ messages in thread
From: Marco Leise @ 2023-09-28  4:56 UTC (permalink / raw
  To: gentoo-commits

commit:     826ae8226782d246235941f396253aa323d84fc3
Author:     Horodniceanu Andrei <a.horodniceanu <AT> protonmail <DOT> com>
AuthorDate: Sat Aug 26 21:56:17 2023 +0000
Commit:     Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Fri Sep  1 21:12:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=826ae822

dev-lang/ldc2: Respect $DCFLAGS

Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> 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 )


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-01-04 14:04 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-01-04 14:04 UTC (permalink / raw
  To: gentoo-commits

commit:     68edb2d343a252284207d5cc097acfae0de4a5c3
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Jan  3 22:08:55 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Jan  3 22:08:55 2024 +0000
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 <a.horodniceanu <AT> 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 0000000..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
+	)
+	<sys-devel/llvm-17:="
+IDEPEND=">=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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-01-13 16:26 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-01-13 16:26 UTC (permalink / raw
  To: gentoo-commits

commit:     f8590120afabb6eb0a01c39806dc346222c515cf
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sat Jan 13 16:04:52 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Jan 13 16:04:52 2024 +0000
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 <a.horodniceanu <AT> 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


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-01-14 10:38 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-01-14 10:38 UTC (permalink / raw
  To: gentoo-commits

commit:     07a8bdfa56f5fd220123c961975f8032fe8b177c
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sun Jan 14 10:30:53 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sun Jan 14 10:30:53 2024 +0000
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 <a.horodniceanu <AT> 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)"
 


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-01-24 20:25 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-01-24 20:25 UTC (permalink / raw
  To: gentoo-commits

commit:     ce1aa5d8fdb60dcd1c08cc1d35cf77fc2998959b
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Jan 24 18:21:55 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Jan 24 18:38:46 2024 +0000
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 <a.horodniceanu <AT> 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)


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-01-24 20:25 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-01-24 20:25 UTC (permalink / raw
  To: gentoo-commits

commit:     585480e834a5740f4d3086b867b7232cb1c1bf63
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Jan 24 18:37:44 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Jan 24 18:38:50 2024 +0000
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 <a.horodniceanu <AT> 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
 	)
-	<sys-devel/llvm-17:="
-IDEPEND=">=app-eselect/eselect-dlang-20140709"
-RDEPEND="
-	${DEPEND}
-	${IDEPEND}"
-
-LLVM_MAX_SLOT=16
+	<sys-devel/llvm-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
 	)
-	<sys-devel/llvm-17:="
-IDEPEND=">=app-eselect/eselect-dlang-20140709"
-RDEPEND="
-	${DEPEND}
-	${IDEPEND}"
-
-LLVM_MAX_SLOT=16
+	<sys-devel/llvm-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.34.0-r1.ebuild
similarity index 83%
copy from dev-lang/ldc2/ldc2-1.35.0-r1.ebuild
copy to dev-lang/ldc2/ldc2-1.34.0-r1.ebuild
index 58638e2..9cf71ba 100644
--- a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild
+++ b/dev-lang/ldc2/ldc2-1.34.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,18 +18,15 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
 
 IUSE="static-libs"
 
-# Upstream supports LLVM 11.0 through 16.0.
-DEPEND="
+# Upstream supports LLVM 11.0 through 16.
+RDEPEND="
 	|| (
 		sys-devel/llvm:16
 		sys-devel/llvm:15
 	)
-	<sys-devel/llvm-17:="
-IDEPEND=">=app-eselect/eselect-dlang-20140709"
-RDEPEND="
-	${DEPEND}
-	${IDEPEND}"
-
+	<sys-devel/llvm-17:=
+	>=app-eselect/eselect-dlang-20140709"
+DEPEND="${RDEPEND}"
 LLVM_MAX_SLOT=16
 PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
 
@@ -37,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.100-2.106"
+DLANG_VERSION_RANGE="2.075-2.080 2.082-"
 DLANG_PACKAGE_TYPE="single"
 
 inherit dlang
@@ -49,12 +46,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.35.0-r2.ebuild
similarity index 93%
rename from dev-lang/ldc2/ldc2-1.35.0-r1.ebuild
rename to dev-lang/ldc2/ldc2-1.35.0-r2.ebuild
index 58638e2..ae28b6e 100644
--- a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild
+++ b/dev-lang/ldc2/ldc2-1.35.0-r2.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"
@@ -49,6 +49,8 @@ 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)


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-03-13 21:29 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-03-13 21:29 UTC (permalink / raw
  To: gentoo-commits

commit:     90a37fb4c08a407490b0f13b75dbf3af156f58e7
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Mar 13 21:24:49 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Mar 13 21:24:49 2024 +0000
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 <a.horodniceanu <AT> 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)"
 


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-03-13 21:29 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-03-13 21:29 UTC (permalink / raw
  To: gentoo-commits

commit:     1c137bd73ba830f0b4552b1a5d7f2a896c3a6946
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Mar 13 21:25:40 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Mar 13 21:25:40 2024 +0000
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 <a.horodniceanu <AT> 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)"
 


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-03-13 21:29 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-03-13 21:29 UTC (permalink / raw
  To: gentoo-commits

commit:     429d6ccc4110362720d455d36d7779975b70177a
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Mar 13 21:26:16 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Mar 13 21:26:16 2024 +0000
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 <a.horodniceanu <AT> 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)"
 


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-03-13 21:29 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-03-13 21:29 UTC (permalink / raw
  To: gentoo-commits

commit:     1091f18061a6e5bdeb0eda421b637b3bcda860f8
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Mar 13 21:25:23 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Mar 13 21:25:23 2024 +0000
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 <a.horodniceanu <AT> 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)"
 


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-03-13 21:29 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-03-13 21:29 UTC (permalink / raw
  To: gentoo-commits

commit:     5270507f19e72d41c7cf5c8a930d37838fbe1d52
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Mar 13 21:27:43 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Mar 13 21:27:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=5270507f

dev-lang/ldc2: drop 1.35.0

Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> 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..0000000
--- 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
-	)
-	<sys-devel/llvm-17:="
-IDEPEND=">=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
-}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-03-13 21:29 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-03-13 21:29 UTC (permalink / raw
  To: gentoo-commits

commit:     e7f724bb736cf0df737b39fa41a8a11600876592
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Mar 13 21:27:24 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Mar 13 21:27:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=e7f724bb

dev-lang/ldc2: drop 1.34.0

Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> 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..0000000
--- 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
-	)
-	<sys-devel/llvm-17:=
-	>=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
-}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-03-13 21:29 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-03-13 21:29 UTC (permalink / raw
  To: gentoo-commits

commit:     9a612ee57adb526769ce16420177e62a2b7fd86d
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Mar 13 21:26:41 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Mar 13 21:26:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=9a612ee5

dev-lang/ldc2: drop 1.32.2

Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> 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..0000000
--- 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
-	)
-	<sys-devel/llvm-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.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
-}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-03-13 21:29 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-03-13 21:29 UTC (permalink / raw
  To: gentoo-commits

commit:     67a4acd140ec6a9207b42b0c60d43346a1d3523f
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Wed Mar 13 21:26:56 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Wed Mar 13 21:26:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=67a4acd1

dev-lang/ldc2: drop 1.33.0

Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> 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..0000000
--- 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
-	)
-	<sys-devel/llvm-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.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
-}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-04-13 23:04 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-04-13 23:04 UTC (permalink / raw
  To: gentoo-commits

commit:     251def323a040201f48b3fae348f6dee9af3e064
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Mon Mar  4 19:07:23 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Apr 13 22:47:30 2024 +0000
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 <a.horodniceanu <AT> 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 0000000..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
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-05-30 17:28 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-05-30 17:28 UTC (permalink / raw
  To: gentoo-commits

commit:     bd7877994e9bad50415a6b7551d946adfd4e86ca
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Thu May 30 16:50:52 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Thu May 30 16:50:52 2024 +0000
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 <a.horodniceanu <AT> 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..0000000
--- 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
-	)
-	<sys-devel/llvm-18:="
-IDEPEND=">=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
-}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-06-02  5:29 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-06-02  5:29 UTC (permalink / raw
  To: gentoo-commits

commit:     efa3aea95c26d5fa2137d7809efc0d7733e21319
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sat Jun  1 11:37:06 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Jun  1 16:54:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=efa3aea9

dev-lang/ldc2: enable gdc-14

Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> 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
 


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-09-13  9:49 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-09-13  9:49 UTC (permalink / raw
  To: gentoo-commits

commit:     6a441c6ceaaef5267545e15f165a835ecefbf1c5
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Thu Sep 12 17:34:41 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Thu Sep 12 19:08:54 2024 +0000
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 <a.horodniceanu <AT> 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 397d701de640bc04bdf9246b9f981141287f4bd8069cf1233567f9430652da3fb1b89899b0c8c9a19877d239465a3a4c9758df32ca2dc1cd098ffffc0d729368 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
+		eapply "${patch}"
+	done < <(find "${patches_dir}" -mindepth 1 -maxdepth 1 \
+				  -type f -name '*.patch' \
+				  -print0)
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-09-13  9:49 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-09-13  9:49 UTC (permalink / raw
  To: gentoo-commits

commit:     143a6f03b8b37c84379a7adf8a174a7df1fbe1ce
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Thu Sep 12 17:26:25 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Thu Sep 12 19:06:15 2024 +0000
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 <a.horodniceanu <AT> 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)
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-09-13  9:49 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-09-13  9:49 UTC (permalink / raw
  To: gentoo-commits

commit:     cfac04b0a8d9adbcf483936eb5028105d2109aeb
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Thu Sep 12 17:41:21 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Thu Sep 12 19:09:11 2024 +0000
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 <a.horodniceanu <AT> 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 397d701de640bc04bdf9246b9f981141287f4bd8069cf1233567f9430652da3fb1b89899b0c8c9a19877d239465a3a4c9758df32ca2dc1cd098ffffc0d729368 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/CMakeLists.txt
@@ -199,3 +195,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)
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/
@ 2024-09-13  9:49 Horodniceanu Andrei
  0 siblings, 0 replies; 36+ messages in thread
From: Horodniceanu Andrei @ 2024-09-13  9:49 UTC (permalink / raw
  To: gentoo-commits

commit:     fd6defc33f472265c28cf6bce66763ff45ffbed1
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Thu Sep 12 12:49:58 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Thu Sep 12 17:11:45 2024 +0000
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 <a.horodniceanu <AT> 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)
+}


^ permalink raw reply related	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2024-09-13  9:49 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-04 14:04 [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/ Horodniceanu Andrei
  -- strict thread matches above, loose matches on Subject: below --
2024-09-13  9:49 Horodniceanu Andrei
2024-09-13  9:49 Horodniceanu Andrei
2024-09-13  9:49 Horodniceanu Andrei
2024-09-13  9:49 Horodniceanu Andrei
2024-06-02  5:29 Horodniceanu Andrei
2024-05-30 17:28 Horodniceanu Andrei
2024-04-13 23:04 Horodniceanu Andrei
2024-03-13 21:29 Horodniceanu Andrei
2024-03-13 21:29 Horodniceanu Andrei
2024-03-13 21:29 Horodniceanu Andrei
2024-03-13 21:29 Horodniceanu Andrei
2024-03-13 21:29 Horodniceanu Andrei
2024-03-13 21:29 Horodniceanu Andrei
2024-03-13 21:29 Horodniceanu Andrei
2024-03-13 21:29 Horodniceanu Andrei
2024-01-24 20:25 Horodniceanu Andrei
2024-01-24 20:25 Horodniceanu Andrei
2024-01-14 10:38 Horodniceanu Andrei
2024-01-13 16:26 Horodniceanu Andrei
2023-09-28  4:56 Marco Leise
2023-09-28  4:56 Marco Leise
2022-07-25 11:15 Marco Leise
2022-03-24 18:15 Marco Leise
2022-03-24 18:15 Marco Leise
2022-02-06 15:50 Marco Leise
2021-07-07 15:41 Marco Leise
2021-07-07 15:41 Marco Leise
2020-11-16  4:05 Marco Leise
2020-11-16  4:05 Marco Leise
2020-08-15  1:50 Marco Leise
2020-08-15  1:50 Marco Leise
2020-05-17 15:07 Marco Leise
2019-12-23 16:56 Marco Leise
2019-12-23 16:56 Marco Leise
2019-11-30 12:01 Marco Leise

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox