* [gentoo-commits] gentoo-x86 commit in dev-util/bnfc: bnfc-2.4.2.0.ebuild ChangeLog
@ 2012-05-05 17:43 Sergei Trofimovich (slyfox)
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Trofimovich (slyfox) @ 2012-05-05 17:43 UTC (permalink / raw
To: gentoo-commits
slyfox 12/05/05 17:43:19
Modified: bnfc-2.4.2.0.ebuild ChangeLog
Log:
Fix build failure against ghc-7.4
(Portage version: 2.2.0_alpha101_p6/cvs/Linux x86_64)
Revision Changes Path
1.2 dev-util/bnfc/bnfc-2.4.2.0.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild?r1=1.1&r2=1.2
Index: bnfc-2.4.2.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- bnfc-2.4.2.0.ebuild 1 Mar 2011 20:01:06 -0000 1.1
+++ bnfc-2.4.2.0.ebuild 5 May 2012 17:43:19 -0000 1.2
@@ -1,13 +1,13 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild,v 1.1 2011/03/01 20:01:06 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild,v 1.2 2012/05/05 17:43:19 slyfox Exp $
# ebuild generated by hackport 0.2.11
-EAPI="2"
+EAPI=4
CABAL_FEATURES="bin"
-inherit haskell-cabal
+inherit eutils haskell-cabal
MY_PN="BNFC"
MY_P="${MY_PN}-${PV}"
@@ -28,3 +28,23 @@
>=dev-lang/ghc-6.10.1"
S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # get rid of haskell98 to be ghc-7.4 compatible
+ sed -i ${MY_PN}.cabal -e 's/haskell98,//' || die
+ local hs
+ find . -type f -name '*.hs' | while read hs; do
+ einfo "Mangling $hs"
+ sed -i "$hs"\
+ -e 's/^import \<Array\>/import Data.Array/g' \
+ -e 's/^import \<Directory\>/import System.Directory/g' \
+ -e 's/^import \<IO\>/import System.IO/g' \
+ -e 's/^import \<Maybe\>/import Data.Maybe/g' \
+ -e 's/^import \<Monad\>/import Control.Monad/g' \
+ -e 's/^import \<List\>/import Data.List/g' \
+ -e 's/^import \<Char\>/import Data.Char/g' \
+ -e 's/^import \<System\>\s*$/import System.Exit\nimport System.Environment\n/g' \
+ || die
+ done
+ epatch "${FILESDIR}"/${P}-mangle-errors.patch # yes, built on top of mangled sources above
+}
1.16 dev-util/bnfc/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/ChangeLog?rev=1.16&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/ChangeLog?rev=1.16&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/ChangeLog?r1=1.15&r2=1.16
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/bnfc/ChangeLog,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ChangeLog 1 Mar 2011 20:02:18 -0000 1.15
+++ ChangeLog 5 May 2012 17:43:19 -0000 1.16
@@ -1,6 +1,10 @@
# ChangeLog for dev-util/bnfc
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/ChangeLog,v 1.15 2011/03/01 20:02:18 slyfox Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/ChangeLog,v 1.16 2012/05/05 17:43:19 slyfox Exp $
+
+ 05 May 2012; Sergei Trofimovich <slyfox@gentoo.org>
+ +files/bnfc-2.4.2.0-mangle-errors.patch, bnfc-2.4.2.0.ebuild:
+ Fix build failure against ghc-7.4
01 Mar 2011; Sergei Trofimovich <slyfox@gentoo.org> -bnfc-2.1.2.ebuild,
-bnfc-2.2.ebuild, -files/bnfc-2.2-ghc66-utf8.patch, -bnfc-2.4_beta.ebuild:
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in dev-util/bnfc: bnfc-2.4.2.0.ebuild ChangeLog
@ 2012-09-12 16:08 Alexander Vershilov (qnikst)
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Vershilov (qnikst) @ 2012-09-12 16:08 UTC (permalink / raw
To: gentoo-commits
qnikst 12/09/12 16:08:05
Modified: bnfc-2.4.2.0.ebuild ChangeLog
Log:
move dev-util/bnfc/bnfc-2.4.2.0.ebuild ebuild to mirror://hackage
(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)
Revision Changes Path
1.3 dev-util/bnfc/bnfc-2.4.2.0.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild?r1=1.2&r2=1.3
Index: bnfc-2.4.2.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- bnfc-2.4.2.0.ebuild 5 May 2012 17:43:19 -0000 1.2
+++ bnfc-2.4.2.0.ebuild 12 Sep 2012 16:08:04 -0000 1.3
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild,v 1.2 2012/05/05 17:43:19 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/bnfc-2.4.2.0.ebuild,v 1.3 2012/09/12 16:08:04 qnikst Exp $
# ebuild generated by hackport 0.2.11
@@ -14,7 +14,7 @@
DESCRIPTION="A compiler front-end generator."
HOMEPAGE="http://www.cse.chalmers.se/research/group/Language-technology/BNFC/"
-SRC_URI="http://hackage.haskell.org/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
1.17 dev-util/bnfc/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/ChangeLog?rev=1.17&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/ChangeLog?rev=1.17&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/bnfc/ChangeLog?r1=1.16&r2=1.17
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/bnfc/ChangeLog,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- ChangeLog 5 May 2012 17:43:19 -0000 1.16
+++ ChangeLog 12 Sep 2012 16:08:04 -0000 1.17
@@ -1,6 +1,9 @@
# ChangeLog for dev-util/bnfc
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/ChangeLog,v 1.16 2012/05/05 17:43:19 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/ChangeLog,v 1.17 2012/09/12 16:08:04 qnikst Exp $
+
+ 12 Sep 2012; Alexander Vershilov <qnikst@gentoo.org> bnfc-2.4.2.0.ebuild:
+ move dev-util/bnfc/bnfc-2.4.2.0.ebuild ebuild to mirror://hackage
05 May 2012; Sergei Trofimovich <slyfox@gentoo.org>
+files/bnfc-2.4.2.0-mangle-errors.patch, bnfc-2.4.2.0.ebuild:
@@ -69,4 +72,3 @@
26 Oct 2004; Andres Loeh <kosmikus@gentoo.org> bnfc-2.1.2.ebuild,
metadata.xml:
Initial import, as suggested in bug #54750.
-
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-12 16:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-05 17:43 [gentoo-commits] gentoo-x86 commit in dev-util/bnfc: bnfc-2.4.2.0.ebuild ChangeLog Sergei Trofimovich (slyfox)
-- strict thread matches above, loose matches on Subject: below --
2012-09-12 16:08 Alexander Vershilov (qnikst)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox