patched for gcc-3.4
authorAndres Loeh <kosmikus@gentoo.org>
Thu, 21 Oct 2004 15:15:43 +0000 (15:15 +0000)
committerAndres Loeh <kosmikus@gentoo.org>
Thu, 21 Oct 2004 15:15:43 +0000 (15:15 +0000)
dev-haskell/happy/ChangeLog
dev-haskell/happy/Manifest
dev-haskell/happy/files/digest-happy-1.13 [deleted file]
dev-haskell/happy/files/happy-1.13-pragma.patch.bz2 [deleted file]
dev-haskell/happy/files/happy-1.14-gcc3.4.patch [new file with mode: 0644]
dev-haskell/happy/happy-1.13.ebuild [deleted file]
dev-haskell/happy/happy-1.14.ebuild

index 7c715d3d8d1179ff84c8c866609710673beaad29..747a7fb005cc57cbda1985733330bd18f1f427dd 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for dev-haskell/happy
 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/happy/ChangeLog,v 1.4 2004/06/24 22:15:05 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/happy/ChangeLog,v 1.5 2004/10/21 15:15:43 kosmikus Exp $
+
+  21 Oct 2004; Andres Loeh <kosmikus@gentoo.org> happy-1.13.ebuild,
+  happy-1.14.ebuild, files/happy-1.13-pragma.patch.bz2,
+  files/happy-1.14-gcc3.4.patch:
+  Patched for gcc-3.4.
 
 *happy-1.14 (14 Apr 2004)
 
index f14b8e0db035df9b90984b6085afd4eb2b065c9c..d5e011d22df9a0b6a8304791435ce15af0572ea1 100644 (file)
@@ -1,7 +1,5 @@
-MD5 c87b06cb1edcb2690ed895b89f8a0b03 happy-1.14.ebuild 691
-MD5 6971d08e9fbef398d2dc31d9a2a6bc00 ChangeLog 740
+MD5 6668c8337b3192ae87106512eddae70b happy-1.14.ebuild 699
+MD5 9ffcc8ee5c6ad4c0c8453c68c0a6d031 ChangeLog 921
 MD5 a769ecfcd1cdd2d40986627df7dfb249 metadata.xml 224
-MD5 84703cfbe58a330964454b59007ab728 happy-1.13.ebuild 754
-MD5 95a35d94c76b8652438bef694f5041ea files/digest-happy-1.13 66
+MD5 ccdd754a8212bb8a0ad2fa759a297250 files/happy-1.14-gcc3.4.patch 1849
 MD5 e4734e57e0ebad5144da11376e6aed02 files/digest-happy-1.14 66
-MD5 867164cb216f479dbf37c872b3babd0e files/happy-1.13-pragma.patch.bz2 498
diff --git a/dev-haskell/happy/files/digest-happy-1.13 b/dev-haskell/happy/files/digest-happy-1.13
deleted file mode 100644 (file)
index 60877ae..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 d17619ae6e2caf883651d88be38dfd8a happy-1.13-src.tar.gz 329764
diff --git a/dev-haskell/happy/files/happy-1.13-pragma.patch.bz2 b/dev-haskell/happy/files/happy-1.13-pragma.patch.bz2
deleted file mode 100644 (file)
index bdf01f9..0000000
Binary files a/dev-haskell/happy/files/happy-1.13-pragma.patch.bz2 and /dev/null differ
diff --git a/dev-haskell/happy/files/happy-1.14-gcc3.4.patch b/dev-haskell/happy/files/happy-1.14-gcc3.4.patch
new file mode 100644 (file)
index 0000000..0dd915c
--- /dev/null
@@ -0,0 +1,49 @@
+diff -Naur happy-1.14.orig/happy/src/Main.lhs happy-1.14/happy/src/Main.lhs
+--- happy-1.14.orig/happy/src/Main.lhs 2004-10-21 17:03:27.923088968 +0200
++++ happy-1.14/happy/src/Main.lhs      2004-10-21 17:03:55.192943320 +0200
+@@ -417,20 +417,11 @@
+ 
+ CPP is turned on for -fglasogw-exts, so we can use conditional compilation:
+ 
+-> import_glaexts = "#if __GLASGOW_HASKELL__ >= 503\n\ 
+->                \import GHC.Exts\n\ 
+->                \#else\n\ 
+->                \import GlaExts\n\ 
+->                \#endif\n"
+-
+-> import_debug = "#if __GLASGOW_HASKELL__ >= 503\n\ 
+->                \import System.IO\n\ 
+->                \import System.IO.Unsafe\n\ 
+->                \import Debug.Trace\n\ 
+->                \#else\n\ 
+->                \import IO\n\ 
+->                \import IOExts\n\ 
+->                \#endif\n"
++> import_glaexts = 
++>   "#if __GLASGOW_HASKELL__ >= 503\nimport GHC.Exts\n#else\nimport GlaExts\n#endif\n"
++
++> import_debug = 
++>   "#if __GLASGOW_HASKELL__ >= 503\nimport System.IO\nimport System.IO.Unsafe\nimport Debug.Trace\n#else\nimport IO\nimport IOExts\n#endif\n"
+ 
+ ------------------------------------------------------------------------------
+ Extract various command-line options.
+@@ -468,8 +459,8 @@
+ >     = if OptUseCoercions `elem` cli 
+ >          then if OptGhcTarget `elem` cli
+ >                     then return True
+->                     else dieHappy "-c/--coerce may only be used \ 
+->                                   \in conjunction with -g/--ghc\n"
++>                     else dieHappy 
++>                              "-c/--coerce may only be used in conjunction with -g/--ghc\n"
+ >          else return False
+ 
+ > getGhc cli = return (OptGhcTarget `elem` cli)
+diff -Naur happy-1.14.orig/happy/src/Version.hs happy-1.14/happy/src/Version.hs
+--- happy-1.14.orig/happy/src/Version.hs       2004-10-21 17:03:27.929088056 +0200
++++ happy-1.14/happy/src/Version.hs    2004-10-21 17:03:44.131624896 +0200
+@@ -1,4 +1,3 @@
+ module Version (version) where
+ 
+-version = tail "\ 
+-  \ HAPPY_VERSION"
++version = "1.14"
diff --git a/dev-haskell/happy/happy-1.13.ebuild b/dev-haskell/happy/happy-1.13.ebuild
deleted file mode 100644 (file)
index cfc1e01..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/happy/happy-1.13.ebuild,v 1.4 2004/06/24 22:15:05 agriffis Exp $
-
-DESCRIPTION="A yacc-like parser generator for Haskell"
-HOMEPAGE="http://haskell.org/happy/"
-SRC_URI="http://haskell.cs.yale.edu/happy/dist/1.13/happy-1.13-src.tar.gz"
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="x86"
-IUSE=""
-
-DEPEND="virtual/ghc"
-RDEPEND=""
-
-src_unpack() {
-       unpack ${A}
-       bzcat ${FILESDIR}/happy-1.13-pragma.patch.bz2 | patch -p0
-}
-
-src_compile() {
-       econf || die
-
-       # "emake" does not work reliably. Probably due to the classic
-       # dependency problem in make with parallel builds.
-       make || die
-}
-
-src_install() {
-       einstall || die
-}
index c66f481245078c6048ddcee16497bfe006afa484..6001bd76064728012a986905651ff38951d59a1a 100644 (file)
@@ -1,30 +1,30 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/happy/happy-1.14.ebuild,v 1.3 2004/06/24 22:15:05 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/happy/happy-1.14.ebuild,v 1.4 2004/10/21 15:15:43 kosmikus Exp $
 
 DESCRIPTION="A yacc-like parser generator for Haskell"
 HOMEPAGE="http://haskell.org/happy/"
 SRC_URI="http://haskell.cs.yale.edu/happy/dist/${PV}/${P}-src.tar.gz"
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~x86"
+KEYWORDS="x86"
 IUSE=""
 
 DEPEND="virtual/ghc"
 RDEPEND=""
 
+inherit base eutils
+
 src_unpack() {
-       unpack ${A}
+       base_src_unpack
+       epatch "${FILESDIR}/${P}-gcc3.4.patch"
 }
 
 src_compile() {
-       econf || die
-
-       # "emake" does not work reliably. Probably due to the classic
-       # dependency problem in make with parallel builds.
-       make || die
+       econf || die "configure failed"
+       emake -j1 || die "make failed"
 }
 
 src_install() {
-       einstall || die
+       einstall || die "installation failed"
 }