summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-05-05 09:02:50 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2021-05-05 09:04:58 +0100
commit294d3baca2c4c837a45324b2dcedcc4ca654ecc1 (patch)
treee60be9dd32b02f7e181ba152f428fca7d995c734 /dev-haskell/language-c/language-c-0.8.3-r1.ebuild
parentdev-java/{slf4j-ext,cal10n}: removed (diff)
downloadgentoo-294d3baca2c4c837a45324b2dcedcc4ca654ecc1.tar.gz
gentoo-294d3baca2c4c837a45324b2dcedcc4ca654ecc1.tar.bz2
gentoo-294d3baca2c4c837a45324b2dcedcc4ca654ecc1.zip
dev-haskell/language-c: handle gcc-11's #line 0 macros
Reported-by: Agostino Sarubbo Closes: https://bugs.gentoo.org/788298 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/language-c/language-c-0.8.3-r1.ebuild')
-rw-r--r--dev-haskell/language-c/language-c-0.8.3-r1.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-haskell/language-c/language-c-0.8.3-r1.ebuild b/dev-haskell/language-c/language-c-0.8.3-r1.ebuild
new file mode 100644
index 000000000000..795d688b3cde
--- /dev/null
+++ b/dev-haskell/language-c/language-c-0.8.3-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# ebuild generated by hackport 0.6.9999
+#hackport: flags: -allwarnings,+separatesyb,+usebytestrings,+splitbase,+iecfpextension
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Analysis and generation of C code"
+HOMEPAGE="http://visq.github.io/language-c/"
+SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-haskell/syb:=[profile?]
+ >=dev-lang/ghc-7.10.1:=
+"
+DEPEND="${RDEPEND}
+ dev-haskell/alex
+ >=dev-haskell/cabal-1.22.2.0
+ dev-haskell/happy
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.8.3-gcc-11.patch
+)
+
+src_configure() {
+ haskell-cabal_src_configure \
+ --flag=-allwarnings \
+ --flag=iecfpextension \
+ --flag=separatesyb \
+ --flag=splitbase \
+ --flag=usebytestrings
+}