1
0
forked from ports/contrib

ghc: romster -> contrib

This commit is contained in:
Danny Rawlins 2014-01-25 00:29:01 +11:00
parent 99bce599d9
commit d600d98e97
3 changed files with 3222 additions and 0 deletions

3169
ghc/.footprint Normal file

File diff suppressed because it is too large Load Diff

1
ghc/.md5sum Normal file
View File

@ -0,0 +1 @@
986d1f90ca30d60f7b2820d75c6b8ea7 ghc-7.6.3-src.tar.bz2

52
ghc/Pkgfile Normal file
View File

@ -0,0 +1,52 @@
# Description: Glasgow Haskell compiler.
# URL: http://www.haskell.org/haskellwiki/Glasgow_Haskell_Compiler
# Maintainer: Danny Rawlins, monster dot romster at gmail dot co
# Packager: Moritz Wilhelmy, moritz plus crux at wzff dot de
# Depends on: libedit libffi libgmp ncurses readline
name=ghc
version=7.6.3
release=1
source=(http://www.haskell.org/ghc/dist/$version/$name-$version-src.tar.bz2)
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
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"
fi
install -d tmp
cd tmp
bsdtar -xf "$PKGMK_SOURCE_DIR/$name-$version-x86_64-unknown-linux.tar.bz2"
mv $name-$version ../$name-$version-binary
cd -
rmdir tmp
cd $name-$version-binary
# hack for gmp 5
ln -s /usr/lib/libgmp.so.10 libgmp.so.3
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 \
--mandir=/usr/man
make
make -j1 DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
}