void-packages/srcpkgs/ghc/template

44 lines
1.3 KiB
Bash
Raw Normal View History

2014-07-09 20:02:07 +02:00
# Template file for 'ghc'
pkgname=ghc
2015-03-30 11:29:03 +02:00
version=7.10.1
2014-07-11 18:10:16 +02:00
revision=1
2015-03-30 11:29:03 +02:00
patch_args="-Np1"
2014-07-09 20:02:07 +02:00
build_style=gnu-configure
configure_args="--with-system-libffi"
2015-03-30 11:29:03 +02:00
hostmakedepends="ghc-bin docbook-xsl libxslt llvm"
makedepends="libffi-devel gmp-devel ncurses-devel llvm"
2014-07-11 18:10:16 +02:00
depends="perl gcc libffi-devel gmp-devel"
2014-07-09 20:02:07 +02:00
short_desc="Glorious Haskell Compiler"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://www.haskell.org/ghc/"
distfiles="http://www.haskell.org/ghc/dist/$version/$pkgname-$version-src.tar.xz"
2015-03-30 11:29:03 +02:00
checksum=92f3e3d67a637c587c49b61c704a670953509eb4b17a93c0c2ac153da4cd3aa0
nocross=yes # ask chris2 before wasting time trying to do that
pre_configure() {
export CONF_CC_OPTS_STAGE0=$CFLAGS_FOR_BUILD
export CONF_CC_OPTS_STAGE1=$CFLAGS
export CONF_CC_OPTS_STAGE2=$CFLAGS
export CONF_GCC_LINKER_OPTS_STAGE0=$LDFLAGS_FOR_BUILD
export CONF_GCC_LINKER_OPTS_STAGE1=$LDFLAGS
export CONF_GCC_LINKER_OPTS_STAGE2=$LDFLAGS
export CONF_CPP_OPTS_STAGE0=$CPPFLAGS_FOR_BUILD
export CONF_CPP_OPTS_STAGE1=$CPPFLAGS
export CONF_CPP_OPTS_STAGE2=$CPPFLAGS
}
2014-07-09 20:02:07 +02:00
post_install() {
2014-07-10 22:05:29 +02:00
sed -i 's#/usr/lib/ccache/bin/##g' ${DESTDIR}/usr/lib/ghc-${version}/settings
vlicense LICENSE
2014-07-09 20:02:07 +02:00
}
2015-03-30 11:29:03 +02:00
ghc-doc_package() {
noarch=yes
short_desc+=" -- documentation"
pkg_install() {
vmove usr/share/doc
}
}