diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/hpack |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/hpack')
-rw-r--r-- | dev-haskell/hpack/Manifest | 4 | ||||
-rw-r--r-- | dev-haskell/hpack/files/hpack-0.14.1-aeson-1.patch | 24 | ||||
-rw-r--r-- | dev-haskell/hpack/hpack-0.14.1.ebuild | 39 | ||||
-rw-r--r-- | dev-haskell/hpack/metadata.xml | 11 |
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-haskell/hpack/Manifest b/dev-haskell/hpack/Manifest new file mode 100644 index 000000000000..9b966b1112af --- /dev/null +++ b/dev-haskell/hpack/Manifest @@ -0,0 +1,4 @@ +AUX hpack-0.14.1-aeson-1.patch 1088 SHA256 9d28bf774376fd99edb601ae4c757456323fb0a942a02b61300c80ee2cfb9d3b SHA512 ac178c92f2dbd1e0b498b82363b5c03525597c2f3d0fe834f9e7b6e80312e6adae773861b6c18768cd45c2ea323b10ea65b8e5f2991cd3678e9966d9fd876172 WHIRLPOOL 538dd5b739f10b5d4f6b2e3b0b223f4dbbadf5cc7d87e0fac2550075671b0b50d946853612d36452fda89c2a4f8984a68fe969b16fe203af1c37dec0ead97044 +DIST hpack-0.14.1.tar.gz 38373 SHA256 a930e8719c52f42826efab92f33252e3dfbf664296ce8075334b48e38bc51280 SHA512 5bd7b5335aef1a3d866c07937e457397c82235c99b578b6270b699895b9a5d39259eef324e6741af9a6e296bfe56587fc9888dc0fc2e4bd6fe99bbc74a7e0b04 WHIRLPOOL 5ae4e8e65009b5a576176590abd276bedd4a46a8c8adaeff7f14cc7752d17ee10b1f3c1530caab45ad7ac53ae1daf5d273717081da6edba875f1450064436ecd +EBUILD hpack-0.14.1.ebuild 1034 SHA256 540841771ced2d4ee77cad5bfc2e3f3a16623d8916284214005c0b133a0011af SHA512 bb59bedb19029098e7dc2759f22cc1b587f9fd868c6edc7f99817301e606af0482fafee4694f80315dbdd98438c30503b548716c60da17966ec1d472fe09d49b WHIRLPOOL 3f6df189706f0aeec044fc635571f47c9b797762a9959fe35510fef0b20c2c04104688296a61c2bbc45ab53a97b13fb14c0000b92daa747529022352fbde9af7 +MISC metadata.xml 333 SHA256 795eeefc8e4a8a56d8b973848da4020fd681a6b6d28d01e9e9466dcd3005dfd9 SHA512 0de08ff54a63322f19c4b560d10130fe7d78ff9c4880fdac2da4d5ebcdeb1fe3800e8910b60319e4218c8cc9ac547fa4b01885f8a21078da2f4c80e6e84b405b WHIRLPOOL 3911e1ad2b32a48e6db6f7b005e54644d20a69d58bc864a023b3127bf0e03e235f695b733557ced80ddaea39ab15f343bbe348f6f33867b9dc69e5496949913e diff --git a/dev-haskell/hpack/files/hpack-0.14.1-aeson-1.patch b/dev-haskell/hpack/files/hpack-0.14.1-aeson-1.patch new file mode 100644 index 000000000000..a4b3fd1f4b6a --- /dev/null +++ b/dev-haskell/hpack/files/hpack-0.14.1-aeson-1.patch @@ -0,0 +1,24 @@ +diff --git a/src/Hpack/Config.hs b/src/Hpack/Config.hs +index cb84f71..5566b8c 100644 +--- a/src/Hpack/Config.hs ++++ b/src/Hpack/Config.hs +@@ -101,3 +101,9 @@ githubBaseUrl = "https://github.com/" + +-genericParseJSON_ :: forall a. (Generic a, GFromJSON (Rep a), HasTypeName a) => Value -> Parser a ++#if MIN_VERSION_aeson(1,0,0) ++# define AESON_ARITY Zero ++#else ++# define AESON_ARITY ++#endif ++ ++genericParseJSON_ :: forall a. (Generic a, GFromJSON AESON_ARITY (Rep a), HasTypeName a) => Value -> Parser a + genericParseJSON_ = genericParseJSON defaultOptions {fieldLabelModifier = hyphenize name} +diff --git a/test/Hpack/ConfigSpec.hs b/test/Hpack/ConfigSpec.hs +index 320ba9a..d13d932 100644 +--- a/test/Hpack/ConfigSpec.hs ++++ b/test/Hpack/ConfigSpec.hs +@@ -971,3 +971,3 @@ spec = do + |] +- readPackageConfig file `shouldReturn` Left (file ++ ": Error in $.executables.foo: failed to parse field executables: The key \"main\" was not found") ++ readPackageConfig file `shouldReturn` Left (file ++ ": Error in $.executables.foo: key \"main\" not present") + diff --git a/dev-haskell/hpack/hpack-0.14.1.ebuild b/dev-haskell/hpack/hpack-0.14.1.ebuild new file mode 100644 index 000000000000..7ae2c30ef742 --- /dev/null +++ b/dev-haskell/hpack/hpack-0.14.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# ebuild generated by hackport 0.5.9999 + +CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="An alternative format for Haskell packages" +HOMEPAGE="https://github.com/sol/hpack#readme" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/aeson-0.8:=[profile?] + >=dev-haskell/base-compat-0.8:=[profile?] + dev-haskell/glob:=[profile?] + dev-haskell/text:=[profile?] + dev-haskell/unordered-containers:=[profile?] + dev-haskell/yaml:=[profile?] + >=dev-lang/ghc-7.8.2:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.18.1.3 + test? ( >=dev-haskell/aeson-0.10 + dev-haskell/aeson-qq + >=dev-haskell/hspec-2 <dev-haskell/hspec-3 + dev-haskell/interpolate + >=dev-haskell/mockery-0.3 + dev-haskell/quickcheck + dev-haskell/temporary ) +" + +PATCHES=("${FILESDIR}"/${P}-aeson-1.patch) diff --git a/dev-haskell/hpack/metadata.xml b/dev-haskell/hpack/metadata.xml new file mode 100644 index 000000000000..acec350af770 --- /dev/null +++ b/dev-haskell/hpack/metadata.xml @@ -0,0 +1,11 @@ +<?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> + An alternative format for Haskell packages + </longdescription> +</pkgmetadata> |