diff options
author | matoro <matoro@users.noreply.github.com> | 2022-09-12 10:35:38 -0400 |
---|---|---|
committer | Jakov Smolić <jsmolic@gentoo.org> | 2022-10-06 08:05:35 +0200 |
commit | 66f37906bdd17371f56db2c6426c1d3846bdfdf7 (patch) | |
tree | 3484a5c5a6021751ac94d2871802962fd2b4ca2d /dev-lang/ghc/ghc-9.0.2.ebuild | |
parent | app-admin/haskell-updater: keyword 1.3.2-r1 for ~riscv (diff) | |
download | gentoo-66f37906bdd17371f56db2c6426c1d3846bdfdf7.tar.gz gentoo-66f37906bdd17371f56db2c6426c1d3846bdfdf7.tar.bz2 gentoo-66f37906bdd17371f56db2c6426c1d3846bdfdf7.zip |
dev-lang/ghc: keyword 9.0.2 for ~riscv
Closes: https://bugs.gentoo.org/866143
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'dev-lang/ghc/ghc-9.0.2.ebuild')
-rw-r--r-- | dev-lang/ghc/ghc-9.0.2.ebuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/dev-lang/ghc/ghc-9.0.2.ebuild b/dev-lang/ghc/ghc-9.0.2.ebuild index dc0d530b0785..47d7344fd4de 100644 --- a/dev-lang/ghc/ghc-9.0.2.ebuild +++ b/dev-lang/ghc/ghc-9.0.2.ebuild @@ -36,6 +36,7 @@ arch_binaries="$arch_binaries ppc64? ( big-endian? ( https://github.com/matoro/ghc/releases/download/${PV}/ghc-bin-${PV}-powerpc64-unknown-linux-gnu.tar.gz ) !big-endian? ( https://github.com/matoro/ghc/releases/download/${PV}/ghc-bin-${PV}-powerpc64le-unknown-linux-gnu.tar.gz ) )" +arch_binaries="$arch_binaries riscv? ( https://github.com/matoro/ghc/releases/download/${PV}/ghc-bin-${PV}-riscv64-unknown-linux-gnu.tar.gz )" #arch_binaries="$arch_binaries sparc? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-sparc.tbz2 )" arch_binaries="$arch_binaries x86? ( https://eidetic.codes/ghc-bin-${PV}-i686-pc-linux-gnu.tbz2 )" @@ -52,6 +53,7 @@ yet_binary() { #ia64) return 0 ;; #ppc) return 0 ;; ppc64) return 0 ;; + riscv) return 0 ;; #sparc) return 0 ;; x86) return 0 ;; *) return 1 ;; @@ -76,8 +78,8 @@ BUMP_LIBRARIES=( LICENSE="BSD" SLOT="0/${PV}" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" -IUSE="big-endian +doc elfutils ghcbootstrap ghcmakebinary +gmp llvm numa profile test" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="big-endian +doc elfutils ghcbootstrap ghcmakebinary +gmp llvm numa profile test unregisterised" IUSE+=" binary" RESTRICT="!test? ( test )" @@ -135,6 +137,7 @@ needs_python() { REQUIRED_USE=" ?? ( ghcbootstrap binary ) ?? ( profile binary ) + ?? ( llvm unregisterised ) " # haskell libraries built with cabal in configure mode, #515354 @@ -438,7 +441,7 @@ src_prepare() { pax-mark -m "${WORKDIR}/usr/$(get_libdir)/${PN}-${BIN_PV}/bin/ghc" fi - use llvm && llvmize "${WORKDIR}/usr/bin" + use llvm && ! use ghcbootstrap && llvmize "${WORKDIR}/usr/bin" # binpkg may have been built with FEATURES=splitdebug if [[ -d "${WORKDIR}/usr/lib/debug" ]] ; then @@ -535,6 +538,8 @@ src_prepare() { eapply "${FILESDIR}"/${PN}-8.10.1-allow-cross-bootstrap.patch eapply "${FILESDIR}"/${PN}-9.0.2-disable-unboxed-arrays.patch eapply "${FILESDIR}"/${PN}-9.0.2-llvm-13.patch + eapply "${FILESDIR}"/latomic-subword + eapply "${FILESDIR}"/${PN}-9.0.2-riscv64-llvm.patch # mingw32 target pushd "${S}/libraries/Win32" @@ -683,7 +688,7 @@ src_configure() { --enable-bootstrap-with-devel-snapshot \ $(use_enable elfutils dwarf-unwind) \ $(use_enable numa) \ - --disable-unregisterised # all targets are registerised for now + $(use_enable unregisterised) if [[ ${PV} == *9999* ]]; then GHC_PV="$(grep 'S\[\"PACKAGE_VERSION\"\]' config.status | sed -e 's@^.*=\"\(.*\)\"@\1@')" |