ghc-bin: update to 7.10.1.

This commit is contained in:
Christian Neukirchen 2015-03-27 15:20:37 +01:00
parent 05789053eb
commit 9db286e8f8

View file

@ -1,39 +1,40 @@
# Template file for 'ghc-bin' # Template file for 'ghc-bin'
pkgname=ghc-bin pkgname=ghc-bin
version=7.8.4 version=7.10.1
revision=1 revision=1
depends="perl gcc libffi-devel gmp-devel" wrksrc="ghc-${version}"
hostmakedepends="ncurses perl"
depends="ncurses perl gcc libffi-devel gmp-devel"
short_desc="Glorious Haskell Compiler - precompiled binaries" short_desc="Glorious Haskell Compiler - precompiled binaries"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>" maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom" license="BSD"
homepage="http://www.haskell.org/ghc/" homepage="http://www.haskell.org/ghc/"
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
nostrip=yes
conflicts="ghc>=0"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
x86_64*) x86_64*)
distfiles="http://code.haskell.org/~slyfox/ghc-amd64/$pkgname-$version-amd64.tbz2" distfiles="https://www.haskell.org/ghc/dist/${version}/ghc-${version}-x86_64-unknown-linux-deb7.tar.xz"
skip_extraction="$pkgname-$version-amd64.tbz2" checksum=421f65745edb225d8697bc19ec7a10171de0eab2b88dc069f420d4f57c7bb6e2
checksum=bd9d144c08caa0ff345ada8d7eed7592531b8f8b9ef2f94d0b9a42fd747440aa
;; ;;
i686*) i686*)
distfiles="http://code.haskell.org/~slyfox/ghc-x86/$pkgname-$version-x86.tbz2" distfiles="https://www.haskell.org/ghc/dist/${version}/ghc-${version}-i386-unknown-linux-deb7.tar.xz"
skip_extraction="$pkgname-$version-x86.tbz2" checksum=3a0d261a49b4cc7b48d82e9d08a65be6267faf2e803b0d0a8a8ef4a29e70752b
checksum=4c53148836e5a1ba55b8db5bb7c3eb915103e0955fb503b2facdc5a72f12a974
;; ;;
esac esac
create_wrksrc=yes
provides="ghc-${version}_${revision}" do_configure() {
replaces="ghc>=0" ./configure --prefix=/usr
}
do_install() { do_install() {
vmkdir ${DESTDIR} ln -sf /usr/lib/libncursesw.so.6 libtinfo.so.5
tar xjpvf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${skip_extraction} -C ${DESTDIR} export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
if [ -d ${DESTDIR}/usr/lib32 ]; then
mv ${DESTDIR}/usr/lib32 ${DESTDIR}/usr/lib make install DESTDIR="$DESTDIR"
fi
if [ -d ${DESTDIR}/usr/lib64 ]; then # Fake libtinfo into rpath of ghc:
mv ${DESTDIR}/usr/lib64 ${DESTDIR}/usr/lib ln -sf /usr/lib/libncursesw.so.6 \
fi $DESTDIR/usr/lib/ghc-${version}/rts/libtinfo.so.5
sed -i 's#x86_64-pc-linux-gnu-##g' ${DESTDIR}/usr/lib/ghc-${version}/settings vlicense LICENSE
sed -i 's#i686-pc-linux-gnu-##g' ${DESTDIR}/usr/lib/ghc-${version}/settings
vlicense ${DESTDIR}/usr/share/doc/ghc-${version}/html/libraries/ghc-${version}/LICENSE
} }