community/cabal: build without profiling enabled

Saves on build time for things we won't ever use building profiled
library support for libraries and the executable, also saves
a skosh on size.

Ref difference betwen r0->r1:
$ apk info cabal
cabal-1.24.0.2-r1 description:
The Haskell Cabal

cabal-1.24.0.2-r1 webpage:
http://haskell.org

cabal-1.24.0.2-r1 installed size:
18051072

cabal-1.24.0.2-r0 description:
The Haskell Cabal

cabal-1.24.0.2-r0 webpage:
http://haskell.org

cabal-1.24.0.2-r0 installed size:
18993152
This commit is contained in:
Mitch Tishmack 2017-05-28 15:09:51 -05:00 committed by Shiz
parent 244a27917c
commit f9bf9190e4

View File

@ -8,7 +8,7 @@ url="http://haskell.org"
arch="armhf x86_64"
license="BSD3"
depends="gmp zlib"
makedepends="ghc ghc-dev gmp-dev libffi-dev zlib-dev binutils-gold chrpath"
makedepends="ghc gmp-dev libffi-dev zlib-dev binutils-gold chrpath"
subpackages="$pkgname-doc"
source="
cabal-0001-force-ld.gold.patch
@ -69,12 +69,7 @@ prepare() {
build() {
cd "$builddir"
(
export HOME="$builddir"
export NO_DOCUMENTATION=1
export EXTRA_BUILD_OPTS="--ghc-option=-fllvm"
./bootstrap.sh
)
env HOME="$builddir" NO_DOCUMENTATION=1 EXTRA_CONFIGURE_OPTS="" ./bootstrap.sh
}
package() {