aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2020-03-09 19:49:32 +0100
committerMarco Leise <marco.leise@gmx.de>2020-03-09 19:49:32 +0100
commit13401fe31c8c2551c692ec65577521c5d4706df3 (patch)
treed69e9e6c70e8f77efaab0810ff5dec48c7b63ebd
parentreplaced own forks of GCC ebuilds with system-wide ebuild (diff)
downloaddlang-13401fe31c8c2551c692ec65577521c5d4706df3.tar.gz
dlang-13401fe31c8c2551c692ec65577521c5d4706df3.tar.bz2
dlang-13401fe31c8c2551c692ec65577521c5d4706df3.zip
ldc2-1.20.1
Signed-off-by: Marco Leise <marco.leise@gmx.de>
-rw-r--r--dev-lang/ldc2/Manifest1
-rw-r--r--dev-lang/ldc2/ldc2-1.18.0.ebuild2
-rw-r--r--dev-lang/ldc2/ldc2-1.19.0.ebuild4
-rw-r--r--dev-lang/ldc2/ldc2-1.20.1.ebuild85
-rw-r--r--eclass/dlang-compilers.eclass2
-rw-r--r--profiles/use.desc2
6 files changed, 93 insertions, 3 deletions
diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest
index 84690f5..84b7208 100644
--- a/dev-lang/ldc2/Manifest
+++ b/dev-lang/ldc2/Manifest
@@ -6,3 +6,4 @@ DIST ldc-1.16.0-src.tar.gz 6995348 BLAKE2B 3437d2c1f64e17793c1564c19fdd41d5a881f
DIST ldc-1.17.0-src.tar.gz 7084805 BLAKE2B 1379ad77c0e489fea43b646a5d6cf5aa54e76b2cefe00686c69bb1c9b0caf42da7a0e24fb6d0f08c10fab9fd32e3ccb01b6702319ea73c782e3dca0a51bf6c08 SHA512 72a50b16cef63b30863b41571d14aad30b5fc25ea7859014d596c41360693da46dcf3f208195d9319fc2f4ef472ac3c86a0c552b19222cc05e491cb8cbcee38c
DIST ldc-1.18.0-src.tar.gz 7183351 BLAKE2B 0affd49dda5f7c3df64e8d89fe66f2fce4c3a18c4bc5e4147e2e906d10f0b27316c8c460f5b9d767f3f50e5e909448b9f44cb17e156766d5488e237a71dd5009 SHA512 fe7529c33d0e43dfb71f474dfa381b88ee476b70933c8f80fc063d9a015df24a75e2b607a7242cc4b9cd4b6ac7559aec8f2883016bf7252342742322fcccbd4d
DIST ldc-1.19.0-src.tar.gz 7222182 BLAKE2B 28a2256aad57f5304644126da63d88a9f0e4266402a537b7864605dd5ce97009b87d6767906b4271dd0ec9621bb1fb193531229c4799c66d0b47e6dad91c0766 SHA512 ffd1b085c7c8fe76162051234cc73e92f08a391cebac3f405c9dc6d03fcbf459d5e99295066ab4b0bd931bdce84dce53e23c33c1bc8ad35327f1b283f8e8f10a
+DIST ldc-1.20.1-src.tar.gz 7283975 BLAKE2B ceb75e767562936606a5fc8383dd089a8daefd04e6fbcd8c6b360fccad50ecb7c6656d60c5351b11a3580d01bdb45101ed50ff6c7a9791af1fd25be160e9a037 SHA512 bb699999a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564ffffe83f720a62ab4f2c1942c2e26bb53
diff --git a/dev-lang/ldc2/ldc2-1.18.0.ebuild b/dev-lang/ldc2/ldc2-1.18.0.ebuild
index e3fbd03..3b4deda 100644
--- a/dev-lang/ldc2/ldc2-1.18.0.ebuild
+++ b/dev-lang/ldc2/ldc2-1.18.0.ebuild
@@ -12,7 +12,7 @@ S=${WORKDIR}/${MY_P}
DESCRIPTION="LLVM D Compiler"
HOMEPAGE="https://ldc-developers.github.com/ldc"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
LICENSE="BSD"
SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
diff --git a/dev-lang/ldc2/ldc2-1.19.0.ebuild b/dev-lang/ldc2/ldc2-1.19.0.ebuild
index eabd185..7819660 100644
--- a/dev-lang/ldc2/ldc2-1.19.0.ebuild
+++ b/dev-lang/ldc2/ldc2-1.19.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -12,7 +12,7 @@ S=${WORKDIR}/${MY_P}
DESCRIPTION="LLVM D Compiler"
HOMEPAGE="https://ldc-developers.github.com/ldc"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
LICENSE="BSD"
SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
diff --git a/dev-lang/ldc2/ldc2-1.20.1.ebuild b/dev-lang/ldc2/ldc2-1.20.1.ebuild
new file mode 100644
index 0000000..c9bebb6
--- /dev/null
+++ b/dev-lang/ldc2/ldc2-1.20.1.ebuild
@@ -0,0 +1,85 @@
+# 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:7
+ )
+ <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.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.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
+}
diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass
index ccf0ece..a58bf85 100644
--- a/eclass/dlang-compilers.eclass
+++ b/eclass/dlang-compilers.eclass
@@ -56,6 +56,8 @@ dlang-compilers_declare_versions() {
["1.15"]="2.085 amd64 ~arm ~arm64 ~ppc64 x86"
["1.16"]="2.086 amd64 ~arm ~arm64 ~ppc64 x86"
["1.17"]="2.087 amd64 ~arm ~arm64 ~ppc64 x86"
+ ["1.18"]="2.088 amd64 ~arm ~arm64 ~ppc64 x86"
+ ["1.19"]="2.089 amd64 ~arm ~arm64 ~ppc64 x86"
)
}
diff --git a/profiles/use.desc b/profiles/use.desc
index 4594421..3453e57 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
@@ -33,3 +33,5 @@ ldc2-1_14 - Build for ldc2 1.14
ldc2-1_15 - Build for ldc2 1.15
ldc2-1_16 - Build for ldc2 1.16
ldc2-1_17 - Build for ldc2 1.17
+ldc2-1_18 - Build for ldc2 1.18
+ldc2-1_19 - Build for ldc2 1.19