ghc-i386-10.5 stable port information

Package: ghc
Version: 6.8.3
Revision: 1
Depends: readline5-shlibs (>= 5.0-1004), gmp-shlibs (>= 4.2.1-1), libmpfr1-shlibs
BuildDepends: <<
readline5 (>= 5.0-1004), gmp (>= 4.2.1-1), libmpfr1, docbook-xsl,
fink (>= 0.24.12)
<<
Architecture: i386
Distribution: 10.5
Source: http://www.haskell.org/ghc/dist/%v/%n-%v-src.tar.bz2
Source-MD5: dfa31028b4d06d1d226f55fe3a2ab7b3
SourceDirectory: %n-%v
Source2: http://www.haskell.org/ghc/dist/%v/%n-%v-src-extralibs.tar.bz2
Source2-MD5: 5ac72f5d5433151cf6b718dc6601dc41
Source3: http://www.haskell.org/%n/dist/6.8.2/%n-6.8.2-darwin-i386-leopard-bootstrap.tar.bz2
Source3-MD5: f263cedef8bcbaa7e9014b3e06923583
PatchFile: %n-6.8.patch
PatchFile-MD5: a9591b3906277224569350ce53f63425
PatchScript: <<
#!/bin/sh -ev
BS=../%n-bootstrap
BSVER=6.8.2
BSLIB=$BS/lib/%n-$BSVER
OLDROOT=/opt/local

sed -i.bak -e "2,3s,$OLDROOT,%b/$BS," -e "s,$OLDROOT,%p,g" $BS/bin/%n-$BSVER
sed -i.bak -e "s,$OLDROOT/bin/,/usr/bin/env ," $BSLIB/%n-asm
sed -i.bak -e "s,$OLDROOT/bin/,/usr/bin/env ," $BSLIB/%n-split

install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/%n-$BSVER
install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/%n-pkg.bin
install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/hsc2hs-bin
sed -i.bak -e "s,$OLDROOT,%b/$BS,g" $BSLIB/package.conf

cat > mk/build.mk < ReadlineIncludePath=%p/include
SRC_CC_OPTS += -I%p/include
SRC_HC_OPTS += -I%p/include -L%p/lib
EXTRA_HSC2HS_OPTS += -I%p/include
EXTRA_LD_OPTS += -L%p/lib
BUILDMK

sed -e 's|@FINKPREFIX@|%p|g' %{PatchFile} | patch -p1

# Kludge around stage2 compiler link failure
ln -s %p/lib/libgmp.dylib gmp
<<

ConfigureParams: --mandir=%d/share/man/ --with-ghc='%b/../%n-bootstrap/bin/ghc'
CompileScript: <<
./configure %c
make
cd docs/users_guide && make html
<<
InstallScript: <<
#!/bin/sh -ev
make install prefix=%i

# what a mess
sed -i.bak -e 's,},} -I%p/include -L%p/lib,' %i/bin/ghc-%v
for f in ghc-%v ghc-pkg-%v ghci-%v hsc2hs hsc2hs-ghc-%v
do
sed -i.bak -e 's|%i|%p|g' %i/bin/$f
rm %i/bin/$f.bak
done
sed -i.bak -e 's|%i|%p|g' %i/lib/ghc-%v/package.conf
rm %i/lib/ghc-%v/package.conf.bak

mkdir -p %i/share/doc/%n
cp -r docs/users_guide/users_guide %i/share/doc/%n
mkdir -p %i/share/man/man1
cp ghc.1 hp2ps.1 %i/share/man/man1
<<
SplitOff: <<
Package: %N-prof
Depends: %N (= %v-%r)
Files: <<
lib/%N-%v/*_p.a
<<
Description: Glasgow Haskell Compiler (profiling libraries)
DescDetail: <<
This package contains additional profiling libraries. They are not
needed for normal use.
<<
DocFiles: LICENSE
<<
SplitOff2: <<
Package: %N-dev
Depends: %N (= %v-%r)
Files: <<
lib/%N-%v/*.a
lib/%N-%v/include
<<
Description: Glasgow Haskell Compiler
DescDetail: <<
This package installs the includes and libraries needed to
compile Haskell into native code rather than interpret it.
<<
DocFiles: LICENSE
<<
DocFiles: ANNOUNCE LICENSE README
Description: Glasgow Haskell Interpreter
DescDetail: <<
The Glasgow Haskell Compiler/Interpreter is a robust, fully-featured,
optimising compiler and interactive environment for Haskell 98, GHC
compiles Haskell to either native code or C. It implements numerous
experimental language extensions to Haskell 98, for example: concurrency,
a foreign language interface, multi-parameter type classes, scoped type
variables, existential and universal quantification, unboxed types,
exceptions, weak pointers, and so on. GHC comes with a generational
garbage collector, and a space and time profiler.
<<
DescPort: <<
This port borrows heavily from Gregory Wright's DarwinPorts package.
<<
Homepage: http://www.haskell.org/ghc/
License: BSD
Maintainer: Brendan Cully

ghc-i386-10.5 _unstable_ port information

Package: ghc
Version: 6.8.3
Revision: 1
Depends: readline5-shlibs (>= 5.0-1004), gmp-shlibs (>= 4.2.1-1), libmpfr1-shlibs
BuildDepends: <<
readline5 (>= 5.0-1004), gmp (>= 4.2.1-1), libmpfr1, docbook-xsl,
fink (>= 0.24.12)
<<
Architecture: i386
Distribution: 10.5
Source: http://www.haskell.org/ghc/dist/%v/%n-%v-src.tar.bz2
Source-MD5: dfa31028b4d06d1d226f55fe3a2ab7b3
SourceDirectory: %n-%v
Source2: http://www.haskell.org/ghc/dist/%v/%n-%v-src-extralibs.tar.bz2
Source2-MD5: 5ac72f5d5433151cf6b718dc6601dc41
Source3: http://www.haskell.org/%n/dist/6.8.2/%n-6.8.2-darwin-i386-leopard-bootstrap.tar.bz2
Source3-MD5: f263cedef8bcbaa7e9014b3e06923583
PatchFile: %n-6.8.patch
PatchFile-MD5: a9591b3906277224569350ce53f63425
PatchScript: <<
#!/bin/sh -ev
BS=../%n-bootstrap
BSVER=6.8.2
BSLIB=$BS/lib/%n-$BSVER
OLDROOT=/opt/local

sed -i.bak -e "2,3s,$OLDROOT,%b/$BS," -e "s,$OLDROOT,%p,g" $BS/bin/%n-$BSVER
sed -i.bak -e "s,$OLDROOT/bin/,/usr/bin/env ," $BSLIB/%n-asm
sed -i.bak -e "s,$OLDROOT/bin/,/usr/bin/env ," $BSLIB/%n-split

install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/%n-$BSVER
install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/%n-pkg.bin
install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/hsc2hs-bin
sed -i.bak -e "s,$OLDROOT,%b/$BS,g" $BSLIB/package.conf

cat > mk/build.mk < ReadlineIncludePath=%p/include
SRC_CC_OPTS += -I%p/include
SRC_HC_OPTS += -I%p/include -L%p/lib
EXTRA_HSC2HS_OPTS += -I%p/include
EXTRA_LD_OPTS += -L%p/lib
BUILDMK

sed -e 's|@FINKPREFIX@|%p|g' %{PatchFile} | patch -p1

# Kludge around stage2 compiler link failure
ln -s %p/lib/libgmp.dylib gmp
<<

ConfigureParams: --mandir=%d/share/man/ --with-ghc='%b/../%n-bootstrap/bin/ghc'
CompileScript: <<
./configure %c
make
cd docs/users_guide && make html
<<
InstallScript: <<
#!/bin/sh -ev
make install prefix=%i

# what a mess
sed -i.bak -e 's,},} -I%p/include -L%p/lib,' %i/bin/ghc-%v
for f in ghc-%v ghc-pkg-%v ghci-%v hsc2hs hsc2hs-ghc-%v
do
sed -i.bak -e 's|%i|%p|g' %i/bin/$f
rm %i/bin/$f.bak
done
sed -i.bak -e 's|%i|%p|g' %i/lib/ghc-%v/package.conf
rm %i/lib/ghc-%v/package.conf.bak

mkdir -p %i/share/doc/%n
cp -r docs/users_guide/users_guide %i/share/doc/%n
mkdir -p %i/share/man/man1
cp ghc.1 hp2ps.1 %i/share/man/man1
<<
SplitOff: <<
Package: %N-prof
Depends: %N (= %v-%r)
Files: <<
lib/%N-%v/*_p.a
<<
Description: Glasgow Haskell Compiler (profiling libraries)
DescDetail: <<
This package contains additional profiling libraries. They are not
needed for normal use.
<<
DocFiles: LICENSE
<<
SplitOff2: <<
Package: %N-dev
Depends: %N (= %v-%r)
Files: <<
lib/%N-%v/*.a
lib/%N-%v/include
<<
Description: Glasgow Haskell Compiler
DescDetail: <<
This package installs the includes and libraries needed to
compile Haskell into native code rather than interpret it.
<<
DocFiles: LICENSE
<<
DocFiles: ANNOUNCE LICENSE README
Description: Glasgow Haskell Interpreter
DescDetail: <<
The Glasgow Haskell Compiler/Interpreter is a robust, fully-featured,
optimising compiler and interactive environment for Haskell 98, GHC
compiles Haskell to either native code or C. It implements numerous
experimental language extensions to Haskell 98, for example: concurrency,
a foreign language interface, multi-parameter type classes, scoped type
variables, existential and universal quantification, unboxed types,
exceptions, weak pointers, and so on. GHC comes with a generational
garbage collector, and a space and time profiler.
<<
DescPort: <<
This port borrows heavily from Gregory Wright's DarwinPorts package.
<<
Homepage: http://www.haskell.org/ghc/
License: BSD
Maintainer: Brendan Cully