ghc: 7.6.3 -> 8.0.1
This commit is contained in:
parent
e5dff64bff
commit
09ace1e118
6672
ghc/.footprint
6672
ghc/.footprint
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
986d1f90ca30d60f7b2820d75c6b8ea7 ghc-7.6.3-src.tar.bz2
|
||||
c185b8a1f3e67e43533ec590b751c2ff ghc-8.0.1-src.tar.xz
|
||||
|
25
ghc/Pkgfile
25
ghc/Pkgfile
@ -5,32 +5,34 @@
|
||||
# Depends on: docbook-xsl libedit libffi libgmp readline
|
||||
|
||||
name=ghc
|
||||
version=7.6.3
|
||||
version=8.0.1
|
||||
release=1
|
||||
source=(http://www.haskell.org/ghc/dist/$version/$name-$version-src.tar.bz2)
|
||||
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-$version-x86_64-unknown-linux.tar.bz2" ]; then
|
||||
if [ ! -f "$PKGMK_SOURCE_DIR/$name-$version-x86_64-centos67-linux.tar.xz" ]; then
|
||||
|
||||
wget http://www.haskell.org/ghc/dist/$version/$name-$version-x86_64-unknown-linux.tar.bz2 \
|
||||
--output-document="$PKGMK_SOURCE_DIR/$name-$version-x86_64-unknown-linux.tar.bz2"
|
||||
wget http://downloads.haskell.org/~ghc/$version/$name-$version-x86_64-centos67-linux.tar.xz \
|
||||
--output-document="$PKGMK_SOURCE_DIR/$name-$version-x86_64-centos67-linux.tar.xz"
|
||||
fi
|
||||
|
||||
install -d tmp
|
||||
cd tmp
|
||||
bsdtar -xf "$PKGMK_SOURCE_DIR/$name-$version-x86_64-unknown-linux.tar.bz2"
|
||||
|
||||
bsdtar -xf "$PKGMK_SOURCE_DIR/$name-$version-x86_64-centos67-linux.tar.xz"
|
||||
mv $name-$version ../$name-$version-binary
|
||||
cd -
|
||||
rmdir tmp
|
||||
|
||||
cd $name-$version-binary
|
||||
|
||||
# hack for gmp 5
|
||||
# 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
|
||||
@ -42,11 +44,14 @@ build() {
|
||||
|
||||
cd $name-$version
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/man
|
||||
./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…
x
Reference in New Issue
Block a user