public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Horodniceanu Andrei" <a.horodniceanu@proton.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/user/dlang:master commit in: profiles/, dev-lang/ldc2/, eclass/
Date: Sat,  7 Oct 2023 21:33:53 +0000 (UTC)	[thread overview]
Message-ID: <1696679907.21fe0c08d3a89204e96d99ac0fbf1963928e51a2.a.horodniceanu@gentoo> (raw)

commit:     21fe0c08d3a89204e96d99ac0fbf1963928e51a2
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Tue Oct  3 19:21:39 2023 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Sat Oct  7 11:58:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=21fe0c08

dev-lang/ldc2: add 1.34.0

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

 dev-lang/ldc2/Manifest           |  1 +
 dev-lang/ldc2/ldc2-1.34.0.ebuild | 79 ++++++++++++++++++++++++++++++++++++++++
 eclass/dlang-compilers.eclass    |  1 +
 profiles/use.desc                |  1 +
 4 files changed, 82 insertions(+)

diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest
index 8520d03..cca7e9a 100644
--- a/dev-lang/ldc2/Manifest
+++ b/dev-lang/ldc2/Manifest
@@ -1,2 +1,3 @@
 DIST ldc-1.29.0-src.tar.gz 8080420 BLAKE2B 37890b283f8097e6d845d6d849b9c04e64bdca5654f483bd83e0d387f0bc4d1cacdef023ccab67dd140a57615e0e7ba9f92acffb18f49211ca130a503f8307e8 SHA512 f8a1e23150b84ef31d3616b9be8ca4c1a64df2b3f26fbedb1119a7d2d3dacad10cd86b6b9bf79728c8c725213f8f7ae88acdeb7a0d9e2f3f5068857f97c39a7e
 DIST ldc-1.30.0-src.tar.gz 8292548 BLAKE2B e2e9846b055837bd2ccccfbeb4b17481f0dd1a49978d8794ee380ad2c14b9713065e98486c62c76a02e9ac2deead8664191409d768da99c7cf447bc5c1d3c77c SHA512 6da36e70cdb7e298b103642d40465fad7a08f05e5424ca9205783c9db867a2e75058d4d3b0124fe305ac69d853cd3dae41e179f80c5359d771f206b76a8b7e80
+DIST ldc-1.34.0-src.tar.gz 8176200 BLAKE2B 048975a3142da860540ba5378be5214884eb44e2f4492e95aa124a669ccf53bbcf9ccce24f12946948265af5a0de1f5771d21f196052ab53275aa8bb7d0dfb2e SHA512 c4ceda1d448b91f706719cdea141cb705f9996ea3f86c107620f13e2f50f6a29724a69b5e3b01c51e13dd4e50ba29a280785ce0789188641c90738d774300a06

diff --git a/dev-lang/ldc2/ldc2-1.34.0.ebuild b/dev-lang/ldc2/ldc2-1.34.0.ebuild
new file mode 100644
index 0000000..61d39c9
--- /dev/null
+++ b/dev-lang/ldc2/ldc2-1.34.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2023 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="dev-util/ninja
+	|| (
+		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-"
+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
+}

diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass
index 6198a85..5f73ea7 100644
--- a/eclass/dlang-compilers.eclass
+++ b/eclass/dlang-compilers.eclass
@@ -84,6 +84,7 @@ dlang-compilers_declare_versions() {
 	_dlang_ldc2_frontend=(
 		["1.29"]="2.099 amd64 ~arm ~arm64 ~ppc64 x86"
 		["1.30"]="2.100 ~amd64 ~arm ~arm64 ~ppc64 ~x86"
+		["1.34"]="2.104 ~amd64 ~arm64 ~x86"
 	)
 }
 

diff --git a/profiles/use.desc b/profiles/use.desc
index eb41af4..fe30397 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
@@ -50,3 +50,4 @@ gdc-13_1_1_p20230527 - Build for GCC 13.1.1_p20230527
 gdc-13_2_0 - Build for GCC 13.2.0
 ldc2-1_29 - Build for ldc2 1.29
 ldc2-1_30 - Build for ldc2 1.30
+ldc2-1_34 - Build for ldc2 1.34


             reply	other threads:[~2023-10-07 21:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-07 21:33 Horodniceanu Andrei [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-12 20:18 [gentoo-commits] repo/user/dlang:master commit in: profiles/, dev-lang/ldc2/, eclass/ Horodniceanu Andrei
2023-10-12 20:18 Horodniceanu Andrei
2023-10-12 20:18 Horodniceanu Andrei
2022-05-10 23:17 Marco Leise
2020-04-06  2:42 Marco Leise

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1696679907.21fe0c08d3a89204e96d99ac0fbf1963928e51a2.a.horodniceanu@gentoo \
    --to=a.horodniceanu@proton.me \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox