From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A8AA013933E for ; Wed, 7 Jul 2021 15:41:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2F16E0D26; Wed, 7 Jul 2021 15:41:19 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 932D2E0C3D for ; Wed, 7 Jul 2021 15:41:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3B34C33BEE0 for ; Wed, 7 Jul 2021 15:41:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B5FC7744 for ; Wed, 7 Jul 2021 15:41:16 +0000 (UTC) From: "Marco Leise" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marco Leise" Message-ID: <1625666357.e177a4bd80ebed3dd237d7f16f8e4a20b56d2084.mleise@gentoo> Subject: [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/ X-VCS-Repository: repo/user/dlang X-VCS-Files: dev-lang/ldc2/ldc2-1.20.1-r2.ebuild dev-lang/ldc2/ldc2-1.21.0-r2.ebuild dev-lang/ldc2/ldc2-1.22.0-r1.ebuild dev-lang/ldc2/ldc2-1.23.0-r1.ebuild dev-lang/ldc2/ldc2-1.24.0-r1.ebuild X-VCS-Directories: dev-lang/ldc2/ X-VCS-Committer: mleise X-VCS-Committer-Name: Marco Leise X-VCS-Revision: e177a4bd80ebed3dd237d7f16f8e4a20b56d2084 X-VCS-Branch: master Date: Wed, 7 Jul 2021 15:41:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 04758819-72c5-4ae5-8f92-406e4523db0c X-Archives-Hash: 21c1d172737ad694d840970fd24e349a commit: e177a4bd80ebed3dd237d7f16f8e4a20b56d2084 Author: Marco Leise gmx de> AuthorDate: Wed Jul 7 13:15:16 2021 +0000 Commit: Marco Leise gmx 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 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 + ) + =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 + ) + =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 + ) + =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 + ) + =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 + ) + =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 +}