diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-01-11 18:55:06 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-01-11 18:58:09 +0000 |
commit | ae822c6a643103428de23fa18fa0be867983cbcd (patch) | |
tree | c3d5edac7efb2afe00f2e08db3441fa33e005d1a /dev-lang | |
parent | package.mask: mask >net-libs/mbedtls-2.18, bug #705038 (diff) | |
download | gentoo-ae822c6a643103428de23fa18fa0be867983cbcd.tar.gz gentoo-ae822c6a643103428de23fa18fa0be867983cbcd.tar.bz2 gentoo-ae822c6a643103428de23fa18fa0be867983cbcd.zip |
dev-lang/ghc: add powerpc64le binary for ghc-8.6.5
Bug: https://bugs.gentoo.org/654034
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/ghc/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/ghc/ghc-8.6.5.ebuild | 19 |
2 files changed, 15 insertions, 5 deletions
diff --git a/dev-lang/ghc/Manifest b/dev-lang/ghc/Manifest index c599d04a5927..f3999afb3a1a 100644 --- a/dev-lang/ghc/Manifest +++ b/dev-lang/ghc/Manifest @@ -48,6 +48,7 @@ DIST ghc-bin-8.4.3-x86_64-pc-linux-gnu.tbz2 117537996 BLAKE2B 2be0102fcc0f1fef5a DIST ghc-bin-8.6.4-i686-pc-linux-gnu.tbz2 121639881 BLAKE2B 51d223b654ff23bbdd594801f4ec92b016a58b952ba98007abb56c1c4b184a672e51eb9847b42160febcc4ada0f28f18325cc27f8a025dd9fcf656e3bab73918 SHA512 6b58b080c5fb18ea7b76632b4b48726af61b52d8829f57a2ddd55e6bc109c1fe1a133d2a0ca974a168ffee0013a6dfdc4922577bad01c50a42dad8b9db70e061 DIST ghc-bin-8.6.4-x86_64-pc-linux-gnu.tbz2 121695747 BLAKE2B 39c745f5f9946bbae622e09bbdabdde4d62eec472fe14e693f37cba6b93ff66e4e56f66df8f0f073686339d252dce71f79f4c2aaef620c3dffbc26a67b1119c3 SHA512 c60bac50e7879bda1d6dcc7c1f12fdac915b18c3ebbfcfad575b2b01fcb57a487496ce7935f7ee4ae934162209ab66370fbcc8a4f021628e5f9a2aa7ef95e119 DIST ghc-bin-8.6.5-i686-pc-linux-gnu.tbz2 121938050 BLAKE2B 17b6d15af21390e28a025505da76d39a2f8656f74c88a81fc75e7c8e799e54171c0d964d8a977c01576603a781c139b5363ea79eeaa2252622913d2a08a79f0e SHA512 9eb33b4670ee15f53c988885a119f3ef7be896ddcb318019628cdd04e21ec0c61876e08466d9d10d6cb1e16d89cd318e0ba42f0f0ae512f48590fe87483739cd +DIST ghc-bin-8.6.5-powerpc64le-unknown-linux-gnu.tbz2 173549697 BLAKE2B 296bf4e0745f56dfefc3ffc96b4e492ddbfd8bcbbc28a8bc9b3172c616d0e7da1081834384ab69e387808331b607104f015632d59963a87f4e257f290ff286c3 SHA512 81261614a7939adb0ffad3657cd33588ff729bb1e3a7dd228cf869afc1f21b74cb4dce6369a4c4cdc9f45f8d8ae64f25d71cd0f2dc34f36d3022afc149538a78 DIST ghc-bin-8.6.5-x86_64-pc-linux-gnu.tbz2 121728723 BLAKE2B 6620b2a116b5696dd2d776350a43251c093e117338a4407ae8c41ae27763a4614d7e761b2684b90aa9317dafe7cb67481a6bc141c812d335d5231724ae3db2a7 SHA512 69681eab137f6713339f8912d0d92f6af865630053bcd7a32cb8a31e01628e969951db976533196794fe39e0e57f0fcd8778d9fc9fed4f4231e965b9a603dd8e DIST ghc-bin-8.8.1-i686-pc-linux-gnu.tbz2 120789855 BLAKE2B 386f37696d956078fad5cad50cbf5b9d9d7765615a1d9cc91a376fb5394648afe8ca956e24ef210f2ff0e51f339b63b16a50f6dc35f30babf019aa57de50b27b SHA512 193c29889693befba863d3c5a26d38d8182bb7e1932b61115dc0a21b6582f818b05db144a9fae5aee06af2044ea59f884825cf1081b62a1c67feb3041d184d3a DIST ghc-bin-8.8.1-powerpc64le-unknown-linux-gnu.tbz2 173653088 BLAKE2B 6c29777b596b35fee8e3a17f965e6a21dc40dc2387988f55d4ca5fef0ea9677b558ed210054216a6578b93fbf844df9e407770df184f707f8203f846f4929d2d SHA512 d338b8912c1632410c43a0df75ce69f961924a7c51049a3ac27c22f7c6cfc07388815813713d594fc38b721127df80b65f72b1b0cc6fbf0e10fa15970b8b6f46 diff --git a/dev-lang/ghc/ghc-8.6.5.ebuild b/dev-lang/ghc/ghc-8.6.5.ebuild index 63cc1241c218..01a7fa8dbb3a 100644 --- a/dev-lang/ghc/ghc-8.6.5.ebuild +++ b/dev-lang/ghc/ghc-8.6.5.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=6 @@ -30,7 +30,7 @@ BIN_PV=${PV} arch_binaries="$arch_binaries amd64? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-x86_64-pc-linux-gnu.tbz2 )" #arch_binaries="$arch_binaries ia64? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-ia64-fixed-fiw.tbz2 )" #arch_binaries="$arch_binaries ppc? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-ppc.tbz2 )" -#arch_binaries="$arch_binaries ppc64? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-ppc64.tbz2 )" +arch_binaries="$arch_binaries ppc64? ( !big-endian? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-powerpc64le-unknown-linux-gnu.tbz2 ) )" #arch_binaries="$arch_binaries sparc? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-sparc.tbz2 )" arch_binaries="$arch_binaries x86? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-i686-pc-linux-gnu.tbz2 )" @@ -46,7 +46,10 @@ yet_binary() { amd64) return 0 ;; #ia64) return 0 ;; #ppc) return 0 ;; - #ppc64) return 0 ;; + ppc64) + use big-endian && return 1 + return 0 + ;; #sparc) return 0 ;; x86) return 0 ;; *) return 1 ;; @@ -73,7 +76,7 @@ LICENSE="BSD" SLOT="0/${PV}" # to be rekeyworded when most of revdeps are updated #KEYWORDS="~amd64 ~x86" -IUSE="doc ghcbootstrap ghcmakebinary +gmp profile test" +IUSE="big-endian doc elfutils ghcbootstrap ghcmakebinary +gmp numa profile test" RESTRICT="!test? ( test )" IUSE+=" binary" @@ -81,7 +84,9 @@ RDEPEND=" >=dev-lang/perl-5.6.1 dev-libs/gmp:0= sys-libs/ncurses:0=[unicode] + elfutils? ( dev-libs/elfutils ) !ghcmakebinary? ( virtual/libffi:= ) + numa? ( sys-process/numactl ) " # This set of dependencies is needed to run @@ -484,6 +489,7 @@ src_prepare() { eapply "${FILESDIR}"/${PN}-7.8.3-prim-lm.patch eapply "${FILESDIR}"/${PN}-8.0.2-no-relax-everywhere.patch eapply "${FILESDIR}"/${PN}-8.4.2-allow-cross-bootstrap.patch + eapply "${FILESDIR}"/${PN}-8.6.5-numa.patch # a bunch of crosscompiler patches # needs newer version: @@ -632,7 +638,10 @@ src_configure() { einfo "Final mk/build.mk:" cat mk/build.mk || die - econf ${econf_args[@]} --enable-bootstrap-with-devel-snapshot + econf ${econf_args[@]} \ + --enable-bootstrap-with-devel-snapshot \ + $(use elfutils && echo --enable-dwarf-unwind) \ + $(use_enable numa) if [[ ${PV} == *9999* ]]; then GHC_PV="$(grep 'S\[\"PACKAGE_VERSION\"\]' config.status | sed -e 's@^.*=\"\(.*\)\"@\1@')" |