commit: 72ca12b107ee7021e18a382617520205d2ba1211 Author: Horodniceanu Andrei <a.horodniceanu <AT> protonmail <DOT> com> AuthorDate: Mon Jul 18 16:27:56 2022 +0000 Commit: Marco Leise <marco.leise <AT> gmx <DOT> de> CommitDate: Mon Jul 18 16:44:17 2022 +0000 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=72ca12b1
Add gdc.11.3.0 Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> protonmail.com> dev-util/gdmd/gdmd-11.3.0.ebuild | 27 +++++++++++++++++++++++++++ eclass/dlang-compilers.eclass | 1 + profiles/use.desc | 1 + 3 files changed, 29 insertions(+) diff --git a/dev-util/gdmd/gdmd-11.3.0.ebuild b/dev-util/gdmd/gdmd-11.3.0.ebuild new file mode 100644 index 0000000..0d5b47f --- /dev/null +++ b/dev-util/gdmd/gdmd-11.3.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Wrapper script for gdc that emulates the dmd command" +HOMEPAGE="https://www.gdcproject.org/" +LICENSE="GPL-3+" + +SLOT="${PV}" +KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 x86" +RDEPEND="=sys-devel/gcc-${PV}*[d]" +RELEASE="0.1.0" +SRC_URI="https://codeload.github.com/D-Programming-GDC/gdmd/tar.gz/script-${RELEASE} -> gdmd-${RELEASE}.tar.gz" +PATCHES="${FILESDIR}/${PN}-no-dmd-conf.patch" +S="${WORKDIR}/gdmd-script-${RELEASE}" + +src_compile() { + : +} + +src_install() { + local binPath="usr/${CHOST}/gcc-bin/${PV}" + exeinto "${binPath}" + newexe dmd-script "${CHOST}-gdmd" + ln -f "${D}/${binPath}/${CHOST}-gdmd" "${D}/${binPath}/gdmd" || die "Could not create 'gdmd' hardlink" +} diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass index 1fa07bf..53eac98 100644 --- a/eclass/dlang-compilers.eclass +++ b/eclass/dlang-compilers.eclass @@ -55,6 +55,7 @@ dlang-compilers_declare_versions() { # GDC (hppa, sparc: masked "d" USE-flag) __dlang_gdc_frontend=( ["11.2.1"]="2.076 amd64 arm arm64 ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv ~s390 x86" + ["11.3.0"]="2.076 ~alpha amd64 arm arm64 ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 x86" ) # LDC diff --git a/profiles/use.desc b/profiles/use.desc index d4da5ed..20b3a65 100644 --- a/profiles/use.desc +++ b/profiles/use.desc @@ -36,6 +36,7 @@ dmd-2_097 - Build for DMD 2.097 dmd-2_098 - Build for DMD 2.098 dmd-2_099 - Build for DMD 2.099 gdc-11_2_1 - Build for GCC 11.2.1 +gdc-11_3_0 - Build for GCC 11.3.0 ldc2-1_25 - Build for ldc2 1.25 ldc2-1_26 - Build for ldc2 1.26 ldc2-1_27 - Build for ldc2 1.27
