Annotation of /trunk/extras/ghc/ghc-6.12.2-r1.smage2
Parent Directory | Revision Log
Revision 5348 -
(hide annotations)
(download)
Wed May 5 15:15:28 2010 UTC (14 years, 4 months ago) by niro
File size: 2508 byte(s)
Wed May 5 15:15:28 2010 UTC (14 years, 4 months ago) by niro
File size: 2508 byte(s)
auto added: ver bump to 6.12.2-r1
1 | niro | 5348 | # $Id$ |
2 | |||
3 | PNAME="ghc" | ||
4 | PVER="6.12.2" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="dev-lang" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Glasgow Haskell Compiler." | ||
11 | HOMEPAGE="http://www.haskell.org/ghc/" | ||
12 | |||
13 | DEPEND=">= dev-lang/perl-5.10 | ||
14 | >= sys-dev/gcc-4.3 | ||
15 | >= dev-libs/gmp-4.3 | ||
16 | >= sys-libs/readline-6" | ||
17 | |||
18 | SRCFILE="${PNAME}-${PVER}-src.tar.bz2" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
20 | |||
21 | # binary sources | ||
22 | SRCFILE_BIN_x86="${PNAME}-${PVER}-i386-unknown-linux-n.tar.bz2" | ||
23 | SRCFILE_BIN_x86_64="${PNAME}-${PVER}-x86_64-unknown-linux-n.tar.bz2" | ||
24 | SRCFILE_BIN="$(eval echo \$SRCFILE_BIN_${ARCH/i*86/x86})" | ||
25 | SRCDIR_BIN="${BUILDDIR}/binary/${PNAME}-${PVER}" | ||
26 | |||
27 | SRC_URI=( | ||
28 | http://www.haskell.org/ghc/dist/${PVER}/${SRCFILE} | ||
29 | http://www.haskell.org/ghc/dist/${PVER}/${SRCFILE_BIN_x86} | ||
30 | http://www.haskell.org/ghc/dist/${PVER}/${SRCFILE_BIN_x86_64} | ||
31 | mirror://${PNAME}/${SRCFILE} | ||
32 | mirror://${PNAME}/${SRCFILE_BIN_x86} | ||
33 | mirror://${PNAME}/${SRCFILE_BIN_x86_64} | ||
34 | ) | ||
35 | |||
36 | UP2DATE="updatecmd ${HOMEPAGE}download.html | grep 'Current Stable' | sed 's:.*(\(.*\)):\1:'" | ||
37 | |||
38 | src_prepare() | ||
39 | { | ||
40 | munpack ${SRCFILE} || die | ||
41 | |||
42 | install -d ${BUILDDIR}/binary || die | ||
43 | munpack ${SRCFILE_BIN} ${BUILDDIR}/binary || die | ||
44 | } | ||
45 | |||
46 | src_compile() | ||
47 | { | ||
48 | # first setup the binary compiler to bootstrap ghc | ||
49 | cd ${SRCDIR_BIN} | ||
50 | mconfigure || die | ||
51 | make in-place || die | ||
52 | |||
53 | # setup the path to ghc | ||
54 | local myarch="${ARCH}" | ||
55 | [[ ${ARCH} = i*86 ]] && myarch="i386" | ||
56 | export PATH="${PATH}:${SRCDIR_BIN}/bin/${myarch}-unknown-linux" | ||
57 | |||
58 | # now bootstrap ghc | ||
59 | cd ${SRCDIR} | ||
60 | |||
61 | # disable the build of docs | ||
62 | echo NO_HADDOCK_DOCS=YES > mk/build.mk || die | ||
63 | echo XMLDocWays="" >> mk/build.mk || die | ||
64 | |||
65 | # from gentoo: | ||
66 | # force the config variable ArSupportsInput to be unset; | ||
67 | # ar in binutils >= 2.14.90.0.8-r1 seems to be classified | ||
68 | # incorrectly by the configure script | ||
69 | echo "ArSupportsInput:=" >> mk/build.mk || die | ||
70 | |||
71 | # no x11 and co needed | ||
72 | mconfigure \ | ||
73 | --disable-x11 \ | ||
74 | --disable-hgl \ | ||
75 | --disable-opengl \ | ||
76 | --disable-glut \ | ||
77 | --disable-openal \ | ||
78 | || die | ||
79 | |||
80 | # the explicit datadir is required to make the haddock entries | ||
81 | # in the package.conf file point to the right place ... | ||
82 | mmake -j1 all datadir="/usr/share/doc/${PNAME}-${PVER}" || die | ||
83 | } | ||
84 | |||
85 | src_install() | ||
86 | { | ||
87 | cd ${SRCDIR} | ||
88 | |||
89 | mmake prefix="${BINDIR}/usr" \ | ||
90 | datadir="${BINDIR}/usr/share/doc/${PNAME}-${PVER}" \ | ||
91 | infodir="${BINDIR}/usr/share/info" \ | ||
92 | mandir="${BINDIR}/usr/share/man" \ | ||
93 | install || die | ||
94 | |||
95 | # remove ${BINDIR} from ghcprof | ||
96 | sed -i 's:$FPTOOLS_TOP_ABS:#$FPTOOLS_TOP_ABS:' ${BINDIR}/usr/bin/ghcprof || die | ||
97 | |||
98 | minstalldocs ANNOUNCE HACKING LICENSE README VERSION || die | ||
99 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |