community/ghc: add ghc-bootstrap to provides and makedepends

This is a hack to allow ghc depend on itself (read comment inside the
abuild).
This commit is contained in:
Jakub Jirutka 2018-05-24 14:51:47 +02:00
parent 31aecc3f19
commit 061af43096

View File

@ -1,7 +1,7 @@
# Maintainer: Mitch Tishmack <mitch.tishmack@gmail.com>
pkgname=ghc
pkgver=8.0.2
pkgrel=6
pkgrel=7
pkgdesc="The Glasgow Haskell Compiler"
url="http://haskell.org"
arch="x86_64 armhf"
@ -15,11 +15,18 @@ license="BSD-3-Clause"
# Ref: https://ghc.haskell.org/trac/ghc/wiki/Status/GHC-8.0.1
# https://ghc.haskell.org/trac/ghc/wiki/ImprovedLLVMBackend
depends="gmp-dev perl gcc>=6.2.1 llvm3.7 libffi-dev"
makedepends_build="$pkgname autoconf cpio binutils-gold paxmark libffi-dev ncurses-dev"
# ghc is self-hosted, so we need ghc to build ghc. ghc-bootstrap is provided by
# this aport (see below).
makedepends_build="$pkgname-bootstrap
autoconf cpio binutils-gold paxmark libffi-dev ncurses-dev"
makedepends_host="linux-headers musl-dev zlib-dev gmp-dev binutils-dev libffi-dev ncurses-dev"
makedepends="$makedepends_build $makedepends_host"
checkdepends="python2"
# XXX: ghc-bootstrap is a hack to allow this abuild to depend on itself.
# Adding "ghc" to makedepends would not work, because abuild implicitly removes
# $pkgname and $subpackages from the abuild's dependencies.
provides="
$pkgname-bootstrap=$pkgver-r$pkgrel
haskell-cabal=1.24.2.0
haskell-bytestring=0.10.8.1
haskell-containers=0.5.7.1