[gentoo-commits] repo/gentoo:master commit in: dev-util/bnfc/files/

2020-07-01 Thread Aaron Bauman
commit: 4da6b8fa49134c4c05b3e7d89c6075e52b9ba773
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Tue Jun 30 18:20:13 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Wed Jul  1 19:58:56 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4da6b8fa

dev-util/bnfc: remove unused patch

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/16508
Signed-off-by: Aaron Bauman  gentoo.org>

 dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch | 8 
 1 file changed, 8 deletions(-)

diff --git a/dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch 
b/dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch
deleted file mode 100644
index e9834830e25..000
--- a/dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch
+++ /dev/null
@@ -1,8 +0,0 @@
-diff --git a/src/LexBNF.x b/src/LexBNF.x
-index 927e15d..aea3386 100644
 a/src/LexBNF.x
-+++ b/src/LexBNF.x
-@@ -11,2 +11,3 @@ import qualified Data.Bits
- import Data.Word (Word8)
-+import Data.Char (ord)
- }



[gentoo-commits] repo/gentoo:master commit in: dev-util/bnfc/files/, dev-util/bnfc/

2019-12-14 Thread Sergei Trofimovich
commit: 1faf6a0705f853a2929c2d7c12d1df5fdbc7de41
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Dec 14 11:11:11 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Dec 14 11:11:11 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1faf6a07

dev-util/bnfc: tweak for ghc-8.4

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/bnfc/bnfc-2.8.1.ebuild   |  14 +--
 dev-util/bnfc/files/bnfc-2.8.1-ghc84-p2.patch | 130 ++
 dev-util/bnfc/files/bnfc-2.8.1-ghc84.patch|  31 ++
 3 files changed, 168 insertions(+), 7 deletions(-)

diff --git a/dev-util/bnfc/bnfc-2.8.1.ebuild b/dev-util/bnfc/bnfc-2.8.1.ebuild
index 087c5aa0327..0d11aa19de2 100644
--- a/dev-util/bnfc/bnfc-2.8.1.ebuild
+++ b/dev-util/bnfc/bnfc-2.8.1.ebuild
@@ -1,11 +1,11 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
 # ebuild generated by hackport 0.4.6.
 
-CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour" # Broken test-suite: 
missing files
 inherit haskell-cabal
 
 MY_PN="BNFC"
@@ -29,11 +29,11 @@ DEPEND="${RDEPEND}
dev-haskell/alex
>=dev-haskell/cabal-1.8
dev-haskell/happy
-   test? ( >=dev-haskell/doctest-0.8
-   dev-haskell/hspec
-   dev-haskell/hunit
-   >=dev-haskell/quickcheck-2.5
-   dev-haskell/temporary )
 "
 
 S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-ghc84.patch
+   "${FILESDIR}"/${P}-ghc84-p2.patch
+)

diff --git a/dev-util/bnfc/files/bnfc-2.8.1-ghc84-p2.patch 
b/dev-util/bnfc/files/bnfc-2.8.1-ghc84-p2.patch
new file mode 100644
index 000..a1e944c2d15
--- /dev/null
+++ b/dev-util/bnfc/files/bnfc-2.8.1-ghc84-p2.patch
@@ -0,0 +1,130 @@
+--- a/src/BNFC/Backend/C/CFtoCAbs.hs
 b/src/BNFC/Backend/C/CFtoCAbs.hs
+@@ -50,3 +50,3 @@ import Data.List
+ import Data.Char(toLower)
+-
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/C/CFtoCPrinter.hs
 b/src/BNFC/Backend/C/CFtoCPrinter.hs
+@@ -53,2 +53,3 @@ import Data.Either (lefts)
+ import BNFC.PrettyPrint
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/C/CFtoCSkel.hs
 b/src/BNFC/Backend/C/CFtoCSkel.hs
+@@ -49,2 +49,3 @@ import Data.Either (lefts)
+ import Text.PrettyPrint
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/CPP/NoSTL/CFtoCPPAbs.hs
 b/src/BNFC/Backend/CPP/NoSTL/CFtoCPPAbs.hs
+@@ -50,3 +50,3 @@ import Data.Char(toLower)
+ import Text.PrettyPrint
+-
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/CPP/NoSTL/CFtoCVisitSkel.hs
 b/src/BNFC/Backend/CPP/NoSTL/CFtoCVisitSkel.hs
+@@ -49,2 +49,3 @@ import Data.Either (lefts)
+ import BNFC.PrettyPrint
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/CPP/PrettyPrinter.hs
 b/src/BNFC/Backend/CPP/PrettyPrinter.hs
+@@ -32,2 +32,3 @@ import BNFC.Backend.CPP.STL.STLUtils
+ import BNFC.PrettyPrint
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/CPP/STL/CFtoBisonSTL.hs
 b/src/BNFC/Backend/CPP/STL/CFtoBisonSTL.hs
+@@ -56,2 +56,3 @@ import BNFC.Backend.C.CFtoBisonC (startSymbol)
+ import BNFC.PrettyPrint
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/Common.hs
 b/src/BNFC/Backend/Common.hs
+@@ -4,2 +4,3 @@ module BNFC.Backend.Common (renderListSepByPrecedence) where
+ import BNFC.PrettyPrint
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/Common/NamedVariables.hs
 b/src/BNFC/Backend/Common/NamedVariables.hs
+@@ -75,2 +75,3 @@ import Control.Arrow (left, (&&&))
+ import Data.Either (lefts)
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/Java.hs
 b/src/BNFC/Backend/Java.hs
+@@ -56,2 +56,3 @@ import qualified BNFC.Backend.Common.Makefile as Makefile
+ import BNFC.PrettyPrint
++import Prelude hiding ((<>))
+ ---
+--- a/src/BNFC/Backend/Java/CFtoComposVisitor.hs
 b/src/BNFC/Backend/Java/CFtoComposVisitor.hs
+@@ -29,2 +29,3 @@ import Data.Either (lefts)
+ import BNFC.PrettyPrint
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/Java/CFtoFoldVisitor.hs
 b/src/BNFC/Backend/Java/CFtoFoldVisitor.hs
+@@ -28,2 +28,3 @@ import Data.Either (lefts)
+ import BNFC.PrettyPrint
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/Java/CFtoJLex15.hs
 b/src/BNFC/Backend/Java/CFtoJLex15.hs
+@@ -46,2 +46,3 @@ import BNFC.Backend.Common.NamedVariables
+ import Text.PrettyPrint
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/Java/CFtoJavaAbs15.hs
 b/src/BNFC/Backend/Java/CFtoJavaAbs15.hs
+@@ -56,2 +56,3 @@ import Data.Maybe (mapMaybe)
+ import Text.PrettyPrint
++import Prelude hiding ((<>))
+ 
+--- a/src/BNFC/Backend/Java/CFtoJavaPrinter15.hs
 b/src/BNFC/Backend/Java/CFtoJavaPrinter15.hs
+@@ -58,2 +58,3 @@ import Data.Either (lefts)