# ChangeLog for dev-lang/ghc-bin
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc-bin/ChangeLog,v 1.17 2004/10/17 09:05:32 absinthe Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc-bin/ChangeLog,v 1.18 2004/10/18 17:03:04 kosmikus Exp $
+
+*ghc-bin-6.2.2 (18 Oct 2004)
+
+ 18 Oct 2004; Andres Loeh <kosmikus@gentoo.org> ghc-bin-6.2.2.ebuild:
+ Version bump for x86.
*ghc-bin-6.2.1 (17 Oct 2004)
-MD5 bb6ec76f196efe4e9daa0c923edc97e7 ChangeLog 3096
+MD5 6bcb39e43042ae34b089d7ed5aff38b0 ghc-bin-6.2.2.ebuild 1375
+MD5 3f291f6738dd4cf28df0bee0575d7732 ghc-bin-6.2.1.ebuild 1341
MD5 08266b96fed68394570f9610a3e4e90b ghc-bin-5.04.3.ebuild 1504
MD5 4e3dbc12aff326b145ce1d8a4ee4f9a0 ghc-bin-6.0.ebuild 1502
+MD5 3e94ee731839f7bd14cc6c217e2e585a ChangeLog 3222
MD5 a769ecfcd1cdd2d40986627df7dfb249 metadata.xml 224
MD5 dc2076294cb2b94c5cfe811acf61ad68 ghc-bin-6.2.ebuild 1374
-MD5 3f291f6738dd4cf28df0bee0575d7732 ghc-bin-6.2.1.ebuild 1341
MD5 a82ba08a8abb4ae38bcc8d467c665e7b files/10ghc 40
+MD5 42a1da9d86ec405ba28644ee8036a40c files/digest-ghc-bin-6.2.1 69
+MD5 f64b7d061f8c67720e33afb647de7486 files/digest-ghc-bin-6.2.2 83
MD5 2b726390b70f784de758ee02184ef450 files/digest-ghc-bin-5.04.3 171
MD5 981523171b835c239b68613e6080246d files/digest-ghc-bin-6.0 162
MD5 7131d05db80999f47946fedb5083ad01 files/digest-ghc-bin-6.2 81
-MD5 42a1da9d86ec405ba28644ee8036a40c files/digest-ghc-bin-6.2.1 69
--- /dev/null
+MD5 ee3c9d20763ff5b23291e0be2c307ccc ghc-6.2.2-i386-unknown-linux.tar.bz2 14136384
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc-bin/ghc-bin-6.2.2.ebuild,v 1.1 2004/10/18 17:03:04 kosmikus Exp $
+
+IUSE="" # opengl not included in binary
+
+S="${WORKDIR}/ghc-${PV}"
+DESCRIPTION="Glasgow Haskell Compiler"
+SRC_URI="http://www.haskell.org/ghc/dist/${PV}/ghc-${PV}-i386-unknown-linux.tar.bz2"
+HOMEPAGE="http://www.haskell.org"
+
+LICENSE="as-is"
+KEYWORDS="~x86 -ppc -sparc -alpha"
+SLOT="0"
+
+LOC="/opt/ghc"
+
+DEPEND="virtual/libc"
+RDEPEND=">=dev-lang/perl-5.6.1
+ >=sys-devel/gcc-2.95.3
+ >=dev-libs/gmp-4.1"
+
+PROVIDE="virtual/ghc"
+
+src_compile() {
+ econf || die "./configure failed"
+}
+
+src_install () {
+ make \
+ prefix=${D}${LOC} \
+ datadir=${D}${LOC}/share \
+ mandir=${D}${LOC}/share/man \
+ infodir=${D}${LOC}/share/info \
+ install || die
+
+ # Install documentation.
+ dodoc ANNOUNCE INSTALL LICENSE README VERSION
+
+ cd ${D}${LOC}/share
+ mv hslibs.ps users_guide.ps html ${D}/usr/share/doc/${PF}
+
+ #ghc seems to set locations in wrapper scripts from make install
+ #need to strip the ${D} part out
+ cd ${D}${LOC}/bin
+ clean_wrappers ghc-${PV} ghci-${PV} ghc-pkg-${PV} hsc2hs
+
+ insinto /etc/env.d
+ doins ${FILESDIR}/10ghc
+}
+
+clean_wrappers () {
+ for i in $*; do
+ mv ${i} ${i}-orig
+ sed -e "s:${D}::" ${i}-orig > ${i}
+ chmod a+x ${i}
+ rm ${i}-orig
+ done
+}