commit:     531f6c680dca3c3248b4e6ef985a270f5f268c45
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 16 19:36:37 2016 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Jan 16 19:42:39 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=531f6c68

dev-util/bnfc: tweak for alex-3.1.6

Package-Manager: portage-2.2.26

 dev-util/bnfc/bnfc-2.8.ebuild                 | 4 ++++
 dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch | 8 ++++++++
 2 files changed, 12 insertions(+)

diff --git a/dev-util/bnfc/bnfc-2.8.ebuild b/dev-util/bnfc/bnfc-2.8.ebuild
index 16e4487..08c4ba5 100644
--- a/dev-util/bnfc/bnfc-2.8.ebuild
+++ b/dev-util/bnfc/bnfc-2.8.ebuild
@@ -38,3 +38,7 @@ DEPEND="${RDEPEND}
 "
 
 S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-alex-3.1.6.patch
+}

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
new file mode 100644
index 0000000..e983483
--- /dev/null
+++ b/dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch
@@ -0,0 +1,8 @@
+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)
+ }

Reply via email to