Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/languages In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv11727
Added Files: ghc-6.8.patch ghc-i386-10.5.info Log Message: Finally got this behemoth to build! --- NEW FILE: ghc-i386-10.5.info --- 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 <<BUILDMK 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 <[EMAIL PROTECTED]> --- NEW FILE: ghc-6.8.patch --- configure: Replace hardcoded /sw with @FINKPREFIX@ libraries/base/base.cabal, libraries/hpc/hpc.cabal: Add @FINKPREFIX@/include to include-dirs compiler/nativeGen/PprMach.hs: work around leopard linker bug in PPC ghc.1, hp2ps.1: man pages borrowed from the Debian package diff --git a/compiler/nativeGen/PprMach.hs b/compiler/nativeGen/PprMach.hs --- a/compiler/nativeGen/PprMach.hs +++ b/compiler/nativeGen/PprMach.hs @@ -657,7 +657,7 @@ pprSectionHeader RelocatableReadOnlyData SLIT(".section .data\n\t.align 4")) ,IF_ARCH_x86_64(IF_OS_darwin(SLIT(".const_data\n.align 3"), SLIT(".section .data\n\t.align 8")) - ,IF_ARCH_powerpc(IF_OS_darwin(SLIT(".const_data\n.align 2"), + ,IF_ARCH_powerpc(IF_OS_darwin(SLIT(".text\n.align 2"), SLIT(".data\n\t.align 2")) ,))))) pprSectionHeader UninitialisedData diff --git a/configure b/configure [...1716 lines suppressed...] @@ -8,6 +8,7 @@ synopsis: Code Coverage Library for synopsis: Code Coverage Library for Haskell build-type: Simple ghc-options: -Wall +include-dirs: @FINKPREFIX@/include exposed-modules: Trace.Hpc.Util, Trace.Hpc.Mix, diff --git a/libraries/readline/readline.cabal b/libraries/readline/readline.cabal --- a/libraries/readline/readline.cabal +++ b/libraries/readline/readline.cabal @@ -28,7 +28,7 @@ library else build-depends: base < 3 extensions: CPP - include-dirs: include + include-dirs: include @FINKPREFIX@/include includes: HsReadline.h install-includes: HsReadline.h HsReadlineConfig.h c-sources: HsReadline_cbits.c ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs