60 lines
1.8 KiB
Bash
60 lines
1.8 KiB
Bash
# Template file for 'ghc'
|
|
pkgname=ghc
|
|
# Keep this synchronized with http://www.stackage.org/lts
|
|
version=8.2.2
|
|
revision=1
|
|
wrksrc="ghc-${version%[!0-9]}"
|
|
patch_args="-Np1"
|
|
build_style=gnu-configure
|
|
configure_args="--with-system-libffi"
|
|
hostmakedepends="automake docbook-xsl ghc-bin libxslt python-Sphinx"
|
|
makedepends="libffi-devel gmp-devel ncurses-devel"
|
|
depends="perl gcc libffi-devel gmp-devel"
|
|
short_desc="Glorious Haskell Compiler"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD"
|
|
homepage="http://www.haskell.org/ghc/"
|
|
distfiles="http://www.haskell.org/ghc/dist/${version%[!0-9]}/${pkgname}-${version%[!0-9]}-src.tar.xz"
|
|
checksum="bb8ec3634aa132d09faa270bbd604b82dfa61f04855655af6f9d14a9eedc05fc"
|
|
nocross=yes # ask leah2 before wasting time trying to do that
|
|
_bindir="/usr/lib/${pkgname}-${version}/bin"
|
|
nopie_files="${_bindir}/ghc"
|
|
nopie_files+=" ${_bindir}/ghc-iserv"
|
|
nopie_files+=" ${_bindir}/ghc-iserv-dyn"
|
|
nopie_files+=" ${_bindir}/ghc-iserv-prof"
|
|
nopie_files+=" ${_bindir}/ghc-pkg"
|
|
nopie_files+=" ${_bindir}/haddock"
|
|
nopie_files+=" ${_bindir}/hp2ps"
|
|
nopie_files+=" ${_bindir}/hpc"
|
|
nopie_files+=" ${_bindir}/hsc2hs"
|
|
nopie_files+=" ${_bindir}/runghc"
|
|
nopie_files+=" ${_bindir}/unlit"
|
|
|
|
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
|
|
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
sed -i 's#/usr/lib/ccache/bin/##g' ${DESTDIR}/usr/lib/ghc-${version%[!0-9]}/settings
|
|
vlicense LICENSE
|
|
}
|
|
|
|
ghc-doc_package() {
|
|
noarch=yes
|
|
short_desc+=" -- documentation"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|
|
|