ghc: dropped
This commit is contained in:
parent
e427ceb4cc
commit
80461206af
4860
ghc/.footprint
4860
ghc/.footprint
File diff suppressed because it is too large
Load Diff
@ -1,5 +0,0 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF33QkLHx5ez3Q1+b/joG382VvG0TC65GQ2I8xiiEA+nPukoEOHTJZzpMK11Wimt68Z/QvFaq53F7n+85sUolWsAw=
|
||||
SHA256 (Pkgfile) = f78d96412fbdea093c1c1bc0a27753d40c2f6fcd6fcefb13a81d524b94ecbd2a
|
||||
SHA256 (.footprint) = 550e7ef2886923a8e5cf1f7d65d096bb4e32419277e7d13c572851c068b71054
|
||||
SHA256 (ghc-8.10.4-src.tar.xz) = 52af871b4e08550257d720c2944ac85727d0b948407cef1bebfe7508c224910e
|
64
ghc/Pkgfile
64
ghc/Pkgfile
@ -1,64 +0,0 @@
|
||||
# Description: Glasgow Haskell compiler.
|
||||
# URL: https://www.haskell.org/haskellwiki/Glasgow_Haskell_Compiler
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Depends on: docbook-xsl libedit libffi libgmp readline
|
||||
|
||||
name=ghc
|
||||
version=8.10.4
|
||||
_bversion=8.10.4
|
||||
release=1
|
||||
_bootstrapsum=fb8a91f0cf06594172aff46c2f6f7486179e1c3760855c79fbdd3012598cc2cd
|
||||
#curl -s http://downloads.haskell.org/~ghc/$version/SHA256SUMS | grep ./ghc-$version-x86_64-centos7-linux.tar.xz | cut -d' ' -f1
|
||||
source=(https://downloads.haskell.org/~ghc/$version/$name-$version-src.tar.xz)
|
||||
|
||||
build() {
|
||||
# if ghc is not previously installed bootstrap it
|
||||
if [ ! -e '/usr/bin/ghc' ]; then
|
||||
|
||||
# download binary bootstrap file if it does not exist
|
||||
if [ ! -f "$PKGMK_SOURCE_DIR/$name-$_bversion-x86_64-centos7-linux.tar.xz" ]; then
|
||||
|
||||
wget "http://downloads.haskell.org/~ghc/$_bversion/$name-$_bversion-x86_64-centos7-linux.tar.xz" \
|
||||
--output-document="$PKGMK_SOURCE_DIR/$name-$_bversion-x86_64-centos7-linux.tar.xz"
|
||||
|
||||
fi
|
||||
|
||||
if [ $_bootstrapsum != $(sha256sum "$PKGMK_SOURCE_DIR/$name-$_bversion-x86_64-centos7-linux.tar.xz" | cut -d' ' -f1) ]; then
|
||||
echo "Error Bootstrap file $PKGMK_SOURCE_DIR/$name-$_bversion-x86_64-centos7-linux.tar.xz failed sha256sum"
|
||||
exit $E_GENERAL
|
||||
fi
|
||||
|
||||
mkdir tmp
|
||||
cd tmp
|
||||
bsdtar -xf "$PKGMK_SOURCE_DIR/$name-$_bversion-x86_64-centos7-linux.tar.xz"
|
||||
mv $name-$_bversion ../$name-$_bversion-binary
|
||||
cd -
|
||||
rmdir tmp
|
||||
|
||||
cd $name-$_bversion-binary
|
||||
|
||||
# hack for gmp and ncurses for bootstrap binary ghc
|
||||
ln -s /usr/lib/libgmp.so.10 libgmp.so.3
|
||||
ln -s /lib/libncurses.so.6 libtinfo.so.5
|
||||
export LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH"
|
||||
|
||||
./configure --prefix=$SRC/binary
|
||||
make install
|
||||
cd $SRC
|
||||
|
||||
export PATH="$SRC/binary/bin:$PATH"
|
||||
fi
|
||||
|
||||
cd $name-$version
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--docdir=/usr/share/doc/ghc \
|
||||
--with-system-libffi \
|
||||
--with-ffi-includes=$(pkg-config --variable=includedir libffi)
|
||||
|
||||
make
|
||||
make -j1 DESTDIR=$PKG install
|
||||
|
||||
rm -r $PKG/usr/share/doc
|
||||
}
|
Loading…
Reference in New Issue
Block a user