diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-haskell/c2hs | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-haskell/c2hs')
-rw-r--r-- | dev-haskell/c2hs/Manifest | 6 | ||||
-rw-r--r-- | dev-haskell/c2hs/c2hs-0.16.3-r1.ebuild | 46 | ||||
-rw-r--r-- | dev-haskell/c2hs/c2hs-0.16.4.ebuild | 49 | ||||
-rw-r--r-- | dev-haskell/c2hs/c2hs-0.16.5.ebuild | 46 | ||||
-rw-r--r-- | dev-haskell/c2hs/c2hs-0.17.2.ebuild | 33 | ||||
-rw-r--r-- | dev-haskell/c2hs/c2hs-0.20.1.ebuild | 34 | ||||
-rw-r--r-- | dev-haskell/c2hs/c2hs-0.25.2.ebuild | 41 | ||||
-rw-r--r-- | dev-haskell/c2hs/files/c2hs-0.16.3-ghc-7.6.patch | 45 | ||||
-rw-r--r-- | dev-haskell/c2hs/files/c2hs-0.16.3-language-c-0.4.patch | 25 | ||||
-rw-r--r-- | dev-haskell/c2hs/files/c2hs-0.16.4-ghc-7.6.patch | 34 | ||||
-rw-r--r-- | dev-haskell/c2hs/metadata.xml | 19 |
11 files changed, 378 insertions, 0 deletions
diff --git a/dev-haskell/c2hs/Manifest b/dev-haskell/c2hs/Manifest new file mode 100644 index 000000000000..f1826aa0101f --- /dev/null +++ b/dev-haskell/c2hs/Manifest @@ -0,0 +1,6 @@ +DIST c2hs-0.16.3.tar.gz 137409 SHA256 a562be4f9c2d2a2c55bc61233f86e129aff1ec6ac588b9eb904e17379beb1ae3 SHA512 07507da0c19efb10c72d40ea21d8768a6fe94d9249c19707b8b99c3ccc4e5eea0d110e4130d5c608aa27d7eb5fe6cfa3050467f859b2e05f028e3902c035ce9a WHIRLPOOL 86e49cfd358e71b12533fd947cf3eb94f44067a4d8251d889cdf7f17077dbffb818207262990d87d4ea8cd7e09e4a237bfe74205d92cf7e16d96d2187c5c964a +DIST c2hs-0.16.4.tar.gz 138114 SHA256 f1b15c18de884273eeab4400097a6fad8373849835e2a943d4583d9602fb1555 SHA512 7dacfab1a469d6613b6acd6ebfb70efa275c4588bcaa6277aa411b90674c11ae031bb9edae6b7e648da6a1232fc6cb702af2fce5a68dd04124bf2f5ba9813329 WHIRLPOOL f152cb48237170abf407ad694164cb4d1eed21674156d8e8917acd138159e6e334d68a358c5ca1d127aed136341232f13a7f7b6a9b2c3f7346963c36708e45f2 +DIST c2hs-0.16.5.tar.gz 137294 SHA256 1e55b42f1648fbbee290d9316fa7954b40e3b27e33707cdcb8c7e763effd04a6 SHA512 4ef187366da3ca33f10eb878b5f31603ebb038b9f02a6d22f284ad8212a0de2ce7f48bc1a9fe0fe94d52588594c9230ebd69cb4c17d0601b4d3326474220636b WHIRLPOOL 5102a3d299b84954be8b4f0df69d588577dc03c754ebbe69b6257fe6ab5236f45cd7981cd67d3997e2370c9418607ca1008301eb5cfa28867679ee91bce6da9f +DIST c2hs-0.17.2.tar.gz 167739 SHA256 b32ff232cf59d41ed875579400f95661bf5a194b94ccf4ea935315df7e0433f7 SHA512 19ef7a589a1700af2e2f2426b43b454ab49467a97d85c3731da77a9b163709d09e4e58b31d13c0127b807764cff7c62c2b8675cf36d91198d83a9ea9ed4c402c WHIRLPOOL 6147e23ff291b7ce2865c65a09aa57955af62acb899d9a091c911a721e3356a7ceda82b113262091437ce969d5311f7bf690ecde63edeb2afc4ab5d64e0a42fe +DIST c2hs-0.20.1.tar.gz 184115 SHA256 70d8d9a55bc0c68c1315bd98327825503ffa52c153611e2d2d4dfe1cfb4f5cf0 SHA512 fe22257b6003d9133b7f0264c19070eee10200452f783a5c6f36eda44b96d80e5e728d91bca8349461c69de5ae93af3a9bbd67e67c30a182543ee3c79889c51a WHIRLPOOL 5bc4ba885060ac8bd5b6f8cfc06cc8af550441d9cc43b71105e00035a635d956be78d437ff04cf4899f257830950f19ad5fe676f9ddb16ff6d1f45c6a7ec2586 +DIST c2hs-0.25.2.tar.gz 198733 SHA256 153e28d4f8f7846fd0e09abc9b4ed0681b50cd8e2bb6100a1c3b91bf397b3934 SHA512 0f3b2df55277f9f44e39270cdc6a5695dd15e8095874406de5830c2d7d45dd364abcd5eafc9323e2a76eeb6622aa7da39734995be01e7f026d8f2395803c2ef3 WHIRLPOOL b91f89f7d6139ae0729509c1e78a07cf37d9f30d25223fdb6e19afe3ab8cbff3042e4b88f17e120a5faf69a05eef29f62b5f882d7b9e7760c29565944d02d150 diff --git a/dev-haskell/c2hs/c2hs-0.16.3-r1.ebuild b/dev-haskell/c2hs/c2hs-0.16.3-r1.ebuild new file mode 100644 index 000000000000..cb2fc880e6bf --- /dev/null +++ b/dev-haskell/c2hs/c2hs-0.16.3-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +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.6.1 + >=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.3-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.4.ebuild b/dev-haskell/c2hs/c2hs-0.16.4.ebuild new file mode 100644 index 000000000000..d56b09b731fe --- /dev/null +++ b/dev-haskell/c2hs/c2hs-0.16.4.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..63de9c76e235 --- /dev/null +++ b/dev-haskell/c2hs/c2hs-0.16.5.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..352b2945c5b4 --- /dev/null +++ b/dev-haskell/c2hs/c2hs-0.17.2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..549801e3c2a2 --- /dev/null +++ b/dev-haskell/c2hs/c2hs-0.20.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..c29493e594af --- /dev/null +++ b/dev-haskell/c2hs/c2hs-0.25.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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/files/c2hs-0.16.3-ghc-7.6.patch b/dev-haskell/c2hs/files/c2hs-0.16.3-ghc-7.6.patch new file mode 100644 index 000000000000..2b6adb2f0f6d --- /dev/null +++ b/dev-haskell/c2hs/files/c2hs-0.16.3-ghc-7.6.patch @@ -0,0 +1,45 @@ +--- c2hs-0.16.3-orig/src/C2HS/Config.hs 2011-03-25 00:04:59.000000000 +1100 ++++ c2hs-0.16.3/src/C2HS/Config.hs 2012-09-16 10:57:54.514595408 +1000 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE CPP #-} + -- -*-haskell-*- + -- ** @configure_input@ ** + -- =========================================================================== +@@ -38,6 +39,10 @@ + + import Foreign (toBool) + import Foreign.C (CInt) ++#if (__GLASGOW_HASKELL__>=705) ++import Foreign.C.Types(CInt(..)) ++#endif ++ + import System.Info (arch, os) + + -- program settings +--- c2hs-0.16.3-orig/src/Control/StateTrans.hs 2011-03-25 00:04:59.000000000 +1100 ++++ c2hs-0.16.3/src/Control/StateTrans.hs 2012-09-16 10:56:52.470863551 +1000 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE CPP, ScopedTypeVariables #-} + -- The HiPar Toolkit: state transformer routines + -- + -- Author : Manuel M. T. Chakravarty +@@ -73,6 +74,10 @@ + throwExc, fatal, catchExc, fatalsHandledBy) + where + ++#if !MIN_VERSION_base(4,6,0) ++import Prelude hiding (catch) ++#endif ++import Control.Exception (catch, IOException) + + -- BEWARE! You enter monad country. Read any of Wadler's or + -- Launchbury/Peyton-Jones' texts before entering. Otherwise, +@@ -296,7 +301,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/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..9c97f697c708 --- /dev/null +++ b/dev-haskell/c2hs/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>haskell</herd> + <longdescription> + C->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> |