summaryrefslogtreecommitdiff
path: root/dev-haskell/c2hs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-haskell/c2hs
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-haskell/c2hs')
-rw-r--r--dev-haskell/c2hs/Manifest17
-rw-r--r--dev-haskell/c2hs/c2hs-0.16.4.ebuild48
-rw-r--r--dev-haskell/c2hs/c2hs-0.16.5.ebuild45
-rw-r--r--dev-haskell/c2hs/c2hs-0.17.2.ebuild32
-rw-r--r--dev-haskell/c2hs/c2hs-0.20.1.ebuild33
-rw-r--r--dev-haskell/c2hs/c2hs-0.25.2.ebuild40
-rw-r--r--dev-haskell/c2hs/c2hs-0.27.1.ebuild40
-rw-r--r--dev-haskell/c2hs/c2hs-0.28.3.ebuild40
-rw-r--r--dev-haskell/c2hs/files/c2hs-0.16.3-language-c-0.4.patch25
-rw-r--r--dev-haskell/c2hs/files/c2hs-0.16.4-ghc-7.6.patch34
-rw-r--r--dev-haskell/c2hs/metadata.xml22
11 files changed, 376 insertions, 0 deletions
diff --git a/dev-haskell/c2hs/Manifest b/dev-haskell/c2hs/Manifest
new file mode 100644
index 000000000000..14467d13e19f
--- /dev/null
+++ b/dev-haskell/c2hs/Manifest
@@ -0,0 +1,17 @@
+AUX c2hs-0.16.3-language-c-0.4.patch 790 BLAKE2B 73299015b4a88d4ee0fd69509e23748c1050651f6d0fad5828a5e908cc758b998421592656fe6871cdfae4982c9a3dfb95ab5a40603dc7f59b3f5277790cf734 SHA512 c7a3baacb08dd7fca8688f04e7cdd434c8a6e37c6ec98abbf1ea329842a9d4d8639b1a326fa73919f83557760d9b87c0467f2af6801408a7c6d6eb71ce85ef76
+AUX c2hs-0.16.4-ghc-7.6.patch 1412 BLAKE2B 8a9138f72fe2a59966a60128ee6bff8af317b08f09d20a0db8914da13b429201b289d7dd1f84ad385ff8546eaea2c3279e175e851533a296d1f3a19325fd2ac1 SHA512 d697baf43aa8b54abe292d7efff9907a1673b022cb2cc554ba44c3965fb1bfda979edadb46527325c431d7d727e86ce04c63c1dc235ed6b95d173d69829f24a0
+DIST c2hs-0.16.4.tar.gz 138114 BLAKE2B a8278aafa9ba27ba59b39745b4a2e169d7b32d4a3c139dc1fdcb4445cb0376beb791664c9b4790d7a11589f83c22e0fd3a4e5cb74b79fedbc0216492c8f52be8 SHA512 7dacfab1a469d6613b6acd6ebfb70efa275c4588bcaa6277aa411b90674c11ae031bb9edae6b7e648da6a1232fc6cb702af2fce5a68dd04124bf2f5ba9813329
+DIST c2hs-0.16.5.tar.gz 137294 BLAKE2B 685a8f9c98c5e0877893907cb7af9f8cd93e8559e49427bef757445547aa88c8c6dce0a81e115af5c1555ec7be67c250c088fd704cc4b96dc43c9eda68d72e37 SHA512 4ef187366da3ca33f10eb878b5f31603ebb038b9f02a6d22f284ad8212a0de2ce7f48bc1a9fe0fe94d52588594c9230ebd69cb4c17d0601b4d3326474220636b
+DIST c2hs-0.17.2.tar.gz 167739 BLAKE2B 50604da33333d235639789090798fa152688d77335a2237272bf086a2a75b7fbbc6c612d16428ca94e07da66cab16fd54eec115f88c79789071f9a87e3c8e416 SHA512 19ef7a589a1700af2e2f2426b43b454ab49467a97d85c3731da77a9b163709d09e4e58b31d13c0127b807764cff7c62c2b8675cf36d91198d83a9ea9ed4c402c
+DIST c2hs-0.20.1.tar.gz 184115 BLAKE2B fd55ee28918c41734096cfea50f40e1a5c56d212c4fbddce1a7bff81bead428144c232f4a7fb47dfa9d5914da78d78cb92330fd493b0facfc3f033ee96be347d SHA512 fe22257b6003d9133b7f0264c19070eee10200452f783a5c6f36eda44b96d80e5e728d91bca8349461c69de5ae93af3a9bbd67e67c30a182543ee3c79889c51a
+DIST c2hs-0.25.2.tar.gz 198733 BLAKE2B 853faa19ba91a4536bed691d0eb26969dc96ef6830512441a1d14e193f084e0ae36d846bfdc160abf6d08fda0d7e9706f9c78b9be627e4c2864e3d9d2e098576 SHA512 0f3b2df55277f9f44e39270cdc6a5695dd15e8095874406de5830c2d7d45dd364abcd5eafc9323e2a76eeb6622aa7da39734995be01e7f026d8f2395803c2ef3
+DIST c2hs-0.27.1.tar.gz 205108 BLAKE2B 268ed9f95e77d292626e0fff6e1ac8334204dd1a1b7474e62746f8be444e57b1f3eb22eb2a4e46f0682c687fa01683923f22542d6b7456566f22d8ad7cb0ed81 SHA512 22894e518512a53ed23b2d6e3395918a1fdfb60180a9ec489bb7fcb70d5d870bdb37c66e9a49f07ae5babf3808e57f1d932e13cf80132ab50666c6899d55d62a
+DIST c2hs-0.28.3.tar.gz 253559 BLAKE2B efc0965e955b05456385648750abeda3371cb0417c508bd8590158289d699b019d88454fd17bb7f9e49f450e581ca6367e08d958ccc1ad7ef56f8a354d33deb2 SHA512 17306b6ee41623d1c017581ed7aef6118a66c30a4698fa95d588b30ac625a6571906bb1fffecf7b86296667390d18cfe5ee2ade85098075f2ca982922b358b3a
+EBUILD c2hs-0.16.4.ebuild 1051 BLAKE2B da146623521b6cc38a6bd948a9b3eecff8694d9c2ff1cc5168dc7719b31ecab1cbecc898b900e91cf1f4fd765ba72c3f69e6af838074524543060b6a00969310 SHA512 c6c6fceb00e3e07d320659510a60e6d30fc10a704c6ef157068c218bfd24b190a9e5cf3a7366f98840d06cc69779d986cef482b32ac656fdd9634bbf2d098a01
+EBUILD c2hs-0.16.5.ebuild 950 BLAKE2B f003fb1c65c26aa09b88d72df79dd7c2a1d46c96d3e61c5309e422dec149137ff687ac6cf6fe014d7d3b65a6bb6a4b0bbacdfcbc367d92ecbad3ea9fdbd88f93 SHA512 c6b6c615ea0b4760701f490d5ce0f6bb9d80125869da1beec69304fb795011e9865ad6182d99c514b0097667bff77c31b954e22ba0905366ea7c3a2258f94309
+EBUILD c2hs-0.17.2.ebuild 780 BLAKE2B f8621dffb3e6b34c2269cc42e8efece56f7e78f5ccf4ff2ed742dc94ee4d5391edde477c77f47f0d6f4b193329130d92d556a631c6840bc9a26242603de0add1 SHA512 113c47fb00c2aade18ff5453504ee095aeb20df447b28821eeaa2ac5216b3f9d44101b499c19eeafa057715ca4dd8bca592c7a3531302038a2d59136897688a7
+EBUILD c2hs-0.20.1.ebuild 804 BLAKE2B 7f0926836c5d69a0585a965dc120fa823eec82c8dc823a84b15cd0f49366b1bea4e6434dcb8a7032a9c5b8a169ee9723765245bb5498a8cf601ae3bbe0a32539 SHA512 dedf09e1c4c7658cc4df559eac2a3bb92cb17467e418110401805d4f8e3eb2b7ecbcf6880732c26e1db0b6498a329a1b9587fd1bb6098166eb4483bfe28afa59
+EBUILD c2hs-0.25.2.ebuild 1004 BLAKE2B 5b780fdf37d7311015584d55de7b344a1e81d0e3d78de9d26fd2866a48bf7057d1f85d3c5bc0d9d4e36a9f63680fc018083a4ba24337fff0e222f2ea80b9385d SHA512 a64ab98bb59e183f3a3e9155887567d2c1400d80c8e3bbe0d2e2e924ef2a23a0d744b9b22939a79f9b074d4bc52a8413df543ac1f60baba72f021fea40aa43dd
+EBUILD c2hs-0.27.1.ebuild 1002 BLAKE2B a03b9643fb8c073dbe73eda6961463283e13dba0ce3c87e530ad65ecfe8637584a3fd144afb2ba8020dfd0f8fb5a181a7945945340459cf1e128868f6ec6e57a SHA512 9b258f39804514459f8f03d5aa334a28c9e1303849ed2d03a631e3a8cd24ab8012d2984ce9ba69a10979f63520df92f5fdc90cb8be3fbdf3ca371e3e8911eb09
+EBUILD c2hs-0.28.3.ebuild 1000 BLAKE2B b6f30230c3d815f2d667d07b4dfdfb27e9629ffd7014f590511371e3fbb0ff84372e1ca7024180fe384482ea0a55c7160483cfb43a72a636af71d184b61657f5 SHA512 ce13ee39018d58b873fcbea9235e671414ea18696b1445acc0ae30fae540400223cbde9974ece118d09039bb6b647de95351f325ffb3d06eabd8b2feeba1649d
+MISC metadata.xml 774 BLAKE2B 0da02d79142cc144b8bfb9096ee19c6f1715f1431ae4205e4727157ee110d1bd363cc33d59cd08436391b65ff4af5a8cd5cd0134500c1b71d0fa4f8731ea9478 SHA512 386edcd02a6773727944eff89793daaf36bc88678123ba3b047086acdf6a89743fde55ce2afbd26a26601fccf497dc477871dd01013bdf21f00ca869fe5b2a05
diff --git a/dev-haskell/c2hs/c2hs-0.16.4.ebuild b/dev-haskell/c2hs/c2hs-0.16.4.ebuild
new file mode 100644
index 000000000000..f155caac2f45
--- /dev/null
+++ b/dev-haskell/c2hs/c2hs-0.16.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.9999
+
+CABAL_FEATURES="bin"
+inherit base haskell-cabal
+
+DESCRIPTION="C->Haskell FFI tool that gives some cross-language type safety"
+HOMEPAGE="http://www.cse.unsw.edu.au/~chak/haskell/c2hs/"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
+IUSE="doc"
+
+DEPEND=">=dev-lang/ghc-6.10.4
+ >=dev-haskell/cabal-1.6
+ >=dev-haskell/language-c-0.3.1.1
+ <dev-haskell/language-c-0.5
+ doc? ( ~app-text/docbook-xml-dtd-4.2
+ app-text/docbook-xsl-stylesheets
+ >=dev-libs/libxslt-1.1.2 )"
+RDEPEND="dev-libs/gmp"
+
+PATCHES=("${FILESDIR}/${PN}"-0.16.3-language-c-0.4.patch
+ "${FILESDIR}/${PN}"-0.16.4-ghc-7.6.patch)
+
+src_compile() {
+ cabal_src_compile
+
+ if use doc; then
+ emake -C doc
+ fi
+}
+
+src_install() {
+ cabal_src_install
+
+ doman "${S}/doc/man1/c2hs.1"
+
+ if use doc; then
+ dohtml "${S}/doc/users_guide/"*
+ fi
+}
diff --git a/dev-haskell/c2hs/c2hs-0.16.5.ebuild b/dev-haskell/c2hs/c2hs-0.16.5.ebuild
new file mode 100644
index 000000000000..881f9ea1e06f
--- /dev/null
+++ b/dev-haskell/c2hs/c2hs-0.16.5.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.9999
+
+CABAL_FEATURES="bin"
+inherit haskell-cabal
+
+DESCRIPTION="C->Haskell FFI tool that gives some cross-language type safety"
+HOMEPAGE="http://www.cse.unsw.edu.au/~chak/haskell/c2hs/"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="doc"
+
+DEPEND=">=dev-lang/ghc-6.10.4
+ >=dev-haskell/cabal-1.6
+ >=dev-haskell/language-c-0.3.1.1
+ <dev-haskell/language-c-0.5
+ doc? ( ~app-text/docbook-xml-dtd-4.2
+ app-text/docbook-xsl-stylesheets
+ >=dev-libs/libxslt-1.1.2 )"
+RDEPEND="dev-libs/gmp"
+
+src_compile() {
+ cabal_src_compile
+
+ if use doc; then
+ emake -C doc
+ fi
+}
+
+src_install() {
+ cabal_src_install
+
+ doman "${S}/doc/man1/c2hs.1"
+
+ if use doc; then
+ dohtml "${S}/doc/users_guide/"*
+ fi
+}
diff --git a/dev-haskell/c2hs/c2hs-0.17.2.ebuild b/dev-haskell/c2hs/c2hs-0.17.2.ebuild
new file mode 100644
index 000000000000..14d1f3248bf3
--- /dev/null
+++ b/dev-haskell/c2hs/c2hs-0.17.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.6.9999
+
+CABAL_FEATURES="bin test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="C->Haskell FFI tool that gives some cross-language type safety"
+HOMEPAGE="https://github.com/haskell/c2hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ >=dev-haskell/language-c-0.4.2 <dev-haskell/language-c-0.5
+ >=dev-lang/ghc-6.10.4
+ test? ( dev-haskell/hunit
+ >=dev-haskell/shelly-1.0
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit
+ dev-haskell/text
+ >=dev-haskell/yaml-0.8 )
+"
diff --git a/dev-haskell/c2hs/c2hs-0.20.1.ebuild b/dev-haskell/c2hs/c2hs-0.20.1.ebuild
new file mode 100644
index 000000000000..0e3334cbf25c
--- /dev/null
+++ b/dev-haskell/c2hs/c2hs-0.20.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.3
+
+CABAL_FEATURES="bin test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="C->Haskell FFI tool that gives some cross-language type safety"
+HOMEPAGE="https://github.com/haskell/c2hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ dev-haskell/dlist
+ >=dev-haskell/language-c-0.4.7 <dev-haskell/language-c-0.5
+ >=dev-lang/ghc-7.4.1
+ test? ( dev-haskell/hunit
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit
+ dev-haskell/transformers
+ >=dev-haskell/shelly-1.0
+ dev-haskell/text
+ >=dev-haskell/yaml-0.8 )
+"
diff --git a/dev-haskell/c2hs/c2hs-0.25.2.ebuild b/dev-haskell/c2hs/c2hs-0.25.2.ebuild
new file mode 100644
index 000000000000..38b1c7d671c0
--- /dev/null
+++ b/dev-haskell/c2hs/c2hs-0.25.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.5.9999
+
+CABAL_FEATURES="bin test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="C->Haskell FFI tool that gives some cross-language type safety"
+HOMEPAGE="https://github.com/haskell/c2hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="regression"
+
+RDEPEND="dev-haskell/dlist:=
+ >=dev-haskell/language-c-0.4.7:= <dev-haskell/language-c-0.5:=
+ >=dev-lang/ghc-7.4.1:=
+ regression? ( >=dev-haskell/shelly-1.0:=
+ dev-haskell/text:=
+ >=dev-haskell/yaml-0.8:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ test? ( dev-haskell/hunit
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit
+ dev-haskell/transformers
+ !regression? ( >=dev-haskell/shelly-1.0
+ dev-haskell/text ) )
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag regression regression)
+}
diff --git a/dev-haskell/c2hs/c2hs-0.27.1.ebuild b/dev-haskell/c2hs/c2hs-0.27.1.ebuild
new file mode 100644
index 000000000000..4b19c3274fc3
--- /dev/null
+++ b/dev-haskell/c2hs/c2hs-0.27.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.6.9999
+
+CABAL_FEATURES="bin test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="C->Haskell FFI tool that gives some cross-language type safety"
+HOMEPAGE="https://github.com/haskell/c2hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="regression"
+
+RDEPEND="dev-haskell/dlist:=
+ >=dev-haskell/language-c-0.4.7:= <dev-haskell/language-c-0.5:=
+ >=dev-lang/ghc-7.4.1:=
+ regression? ( >=dev-haskell/shelly-1.0:=
+ dev-haskell/text:=
+ >=dev-haskell/yaml-0.8:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ test? ( dev-haskell/hunit
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit
+ dev-haskell/transformers
+ !regression? ( >=dev-haskell/shelly-1.0
+ dev-haskell/text ) )
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag regression regression)
+}
diff --git a/dev-haskell/c2hs/c2hs-0.28.3.ebuild b/dev-haskell/c2hs/c2hs-0.28.3.ebuild
new file mode 100644
index 000000000000..6f90dfcac03d
--- /dev/null
+++ b/dev-haskell/c2hs/c2hs-0.28.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.4.9999
+
+CABAL_FEATURES="test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="C->Haskell FFI tool that gives some cross-language type safety"
+HOMEPAGE="https://github.com/haskell/c2hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="regression"
+
+RDEPEND="dev-haskell/dlist:=
+ >=dev-haskell/language-c-0.7.1:= <dev-haskell/language-c-0.8:=
+ >=dev-lang/ghc-7.4.1:=
+ regression? ( >=dev-haskell/shelly-1.0:=
+ dev-haskell/text:=
+ >=dev-haskell/yaml-0.8:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ test? ( dev-haskell/hunit
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit
+ dev-haskell/transformers
+ !regression? ( >=dev-haskell/shelly-1.0
+ dev-haskell/text ) )
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag regression regression)
+}
diff --git a/dev-haskell/c2hs/files/c2hs-0.16.3-language-c-0.4.patch b/dev-haskell/c2hs/files/c2hs-0.16.3-language-c-0.4.patch
new file mode 100644
index 000000000000..cdf0fbe547d6
--- /dev/null
+++ b/dev-haskell/c2hs/files/c2hs-0.16.3-language-c-0.4.patch
@@ -0,0 +1,25 @@
+diff --git a/c2hs.cabal b/c2hs.cabal
+index 89f978f..53a96e5 100644
+--- a/c2hs.cabal
++++ b/c2hs.cabal
+@@ -41,7 +41,7 @@ flag base3
+
+ Executable c2hs
+ Build-Depends: base >= 2 && < 5,
+- language-c >= 0.3.1.1 && < 0.4.0,
++ language-c >= 0.3.1.1 && < 0.5,
+ filepath
+
+ if flag(base3)
+diff --git a/src/C2HS/Gen/Bind.hs b/src/C2HS/Gen/Bind.hs
+index 1fd2acc..9c25b42 100644
+--- a/src/C2HS/Gen/Bind.hs
++++ b/src/C2HS/Gen/Bind.hs
+@@ -117,6 +117,7 @@ import Control.Monad (when, unless, liftM, mapAndUnzipM)
+ import Language.C.Data.Position
+ import Language.C.Data.Ident
+ import Language.C.Pretty
++import Language.C.Syntax.AST
+ import Text.PrettyPrint.HughesPJ (render)
+ import Data.Errors
+ import Data.Attributes (newAttrsOnlyPos)
diff --git a/dev-haskell/c2hs/files/c2hs-0.16.4-ghc-7.6.patch b/dev-haskell/c2hs/files/c2hs-0.16.4-ghc-7.6.patch
new file mode 100644
index 000000000000..e6d808bb98a5
--- /dev/null
+++ b/dev-haskell/c2hs/files/c2hs-0.16.4-ghc-7.6.patch
@@ -0,0 +1,34 @@
+--- c2hs-0.16.4-orig/src/C2HS/Config.hs 2012-11-01 08:02:48.000000000 +1100
++++ c2hs-0.16.4/src/C2HS/Config.hs 2012-11-03 12:12:15.754353409 +1100
+@@ -1,3 +1,4 @@
++{-# LANGUAGE CPP #-}
+ -- -*-haskell-*-
+ -- ** @configure_input@ **
+ -- ===========================================================================
+--- c2hs-0.16.4-orig/src/Control/StateTrans.hs 2012-11-01 08:02:48.000000000 +1100
++++ c2hs-0.16.4/src/Control/StateTrans.hs 2012-11-03 12:12:15.755353436 +1100
+@@ -1,3 +1,4 @@
++{-# LANGUAGE CPP, ScopedTypeVariables #-}
+ -- The HiPar Toolkit: state transformer routines
+ --
+ -- Author : Manuel M. T. Chakravarty
+@@ -80,6 +81,10 @@
+ -- Launchbury/Peyton-Jones' texts before entering. Otherwise,
+ -- your mental health my be in danger. You have been warned!
+
++#if !MIN_VERSION_base(4,6,0)
++import Prelude hiding (catch)
++#endif
++import Control.Exception (catch, IOException)
+
+ -- state transformer base and its monad operations
+ -- -----------------------------------------------
+@@ -298,7 +303,7 @@
+ ioError err
+ Right _a -> return state
+ )
+- `catch` (\err -> let
++ `catch` (\(err :: IOException) -> let
+ STB handler' = handler err
+ in
+ handler' bs gs)
diff --git a/dev-haskell/c2hs/metadata.xml b/dev-haskell/c2hs/metadata.xml
new file mode 100644
index 000000000000..807fa1b6c176
--- /dev/null
+++ b/dev-haskell/c2hs/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ C-&gt;Haskell assists in the development of Haskell bindings to C
+ libraries. It extracts interface information from C header
+ files and generates Haskell code with foreign imports and
+ marshaling. Unlike writing foreign imports by hand (or using
+ hsch2s), this ensures that C functions are imported with the
+ correct Haskell types.
+ </longdescription>
+ <use>
+ <flag name="regression">run regression tests</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">haskell/c2hs</remote-id>
+ </upstream>
+</pkgmetadata>