summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2016-01-16 19:36:37 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2016-01-16 19:42:39 +0000
commit531f6c680dca3c3248b4e6ef985a270f5f268c45 (patch)
tree52b22e71c2be72128ac8aff2b85361442c7feefc /dev-util
parentdev-haskell/yesod-test: bump up to 1.5.0.1 (diff)
downloadgentoo-531f6c680dca3c3248b4e6ef985a270f5f268c45.tar.gz
gentoo-531f6c680dca3c3248b4e6ef985a270f5f268c45.tar.bz2
gentoo-531f6c680dca3c3248b4e6ef985a270f5f268c45.zip
dev-util/bnfc: tweak for alex-3.1.6
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/bnfc/bnfc-2.8.ebuild4
-rw-r--r--dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch8
2 files changed, 12 insertions, 0 deletions
diff --git a/dev-util/bnfc/bnfc-2.8.ebuild b/dev-util/bnfc/bnfc-2.8.ebuild
index 16e448789a28..08c4ba52a9bb 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 000000000000..e9834830e257
--- /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)
+ }