diff options
Diffstat (limited to 'dev-haskell/json')
-rw-r--r-- | dev-haskell/json/Manifest | 6 | ||||
-rw-r--r-- | dev-haskell/json/files/json-0.4.3-ghc-7.4.patch | 10 | ||||
-rw-r--r-- | dev-haskell/json/json-0.4.3.ebuild | 31 | ||||
-rw-r--r-- | dev-haskell/json/json-0.4.4.ebuild | 39 | ||||
-rw-r--r-- | dev-haskell/json/json-0.5.ebuild | 37 | ||||
-rw-r--r-- | dev-haskell/json/json-0.7.ebuild | 36 | ||||
-rw-r--r-- | dev-haskell/json/json-0.9.1.ebuild | 37 | ||||
-rw-r--r-- | dev-haskell/json/json-0.9.ebuild | 37 | ||||
-rw-r--r-- | dev-haskell/json/metadata.xml | 21 |
9 files changed, 254 insertions, 0 deletions
diff --git a/dev-haskell/json/Manifest b/dev-haskell/json/Manifest new file mode 100644 index 00000000000..5cc2bc5d5da --- /dev/null +++ b/dev-haskell/json/Manifest @@ -0,0 +1,6 @@ +DIST json-0.4.3.tar.gz 22575 SHA256 56192d1e922cc71ad1aaf31baea8ee7e1f1b862f95bc72f60548caee4a484a87 SHA512 6cda0d2d727fc6b66363e731d229adf7a6c37cb6f17cf5098edf1838cd0d0fd3b008603081fd3beb7b6ffb0fe218ff40d99f290ef67519fbb602fb4b7667225d WHIRLPOOL 509b7efce67dd6c35dfbaa07c2fb476a1e699efa80d87bcec71b0e106e7c48c37350445485579b0de351c5f70fe633f1eef0ffce1596a24ad9c0e1e2552cd790 +DIST json-0.4.4.tar.gz 22181 SHA256 010157c267e156489771a3a9466f9de74393d9bc82053c1463af8a55caaf5880 SHA512 8fb30d2b2875fd325d7b23b31f98063c35acbbaa8ff1ef4da077dde5c74d370612e9cf4fdb91bd5bbb6804ff1f3fd35032b5169d48cca2b694364a69f4203a69 WHIRLPOOL fa9d8f91f4dac7c633ee1a970c92be483423103b6de200bd7365133ab7af095b937f9bd7b7ad8bd8cc534eff3941d290de00924bcdf7a01b31e2a076305a938f +DIST json-0.5.tar.gz 22724 SHA256 d419bf7d1dd07dcccdc9b40b98a077cdfb5248d1685f929ec1e59f4b01de4b8a SHA512 c9f93c9cc9d788cce93e72edd28fe09e0fcd3c1af1cdcaef8f0289e3c8c02f3fff3702c8f2f46430b4e90ad504cfd6806a9af4d73ffc853a31609e27dc2c228a WHIRLPOOL d24966dabe76d654e08f0bfebea395e240d2705c3dae96fb2d0c0fb70a7e172eeb620c8c37e0944e652cc58fde1423af89f904ba850f7bbde1b7c30325c318d8 +DIST json-0.7.tar.gz 22411 SHA256 d3654272caa269bc65f6f2af82b583ef05434613fe5272d57053fb3bfada68a3 SHA512 dda9a2ae2945dce8b5c03c3da6b6b2fe8b5857f3ceec20392aea2376de3b5aa3ba895d4f231019505764a1e3d69dc82dac89f5d03274af12902c1e74dc6d1156 WHIRLPOOL 3a40f08b81c755f0ab5df4dbf9b5f8b1477d8ff89fc7bea28c63f20bf74eabf09ea35ee827c71d5fc78a64f30218bf41417b03fc8c589935e757702e42ca2ab0 +DIST json-0.9.1.tar.gz 22568 SHA256 96b57e4d167e45dc80aeff872a922ae9cdb953a1ded29ebbb51019b68f0085a2 SHA512 537257fed476683d0657c6474e465ca437e43e36b60ab132c0f584cece99a18d222ef9a33171543689ba5589434bc78cf2e0e5ff550804ff8969052d09430d57 WHIRLPOOL 4aa42dbbcf90354b97a7f464f6f407651833d371af89602c21d8ef61e95b67b1cd97b9c860980769294d793d21d564c01b1631e13f26f65acf9e2b6b6f7e24cb +DIST json-0.9.tar.gz 22571 SHA256 124526d4c80746be95255e380397190ea00118405acbc832eefa2406218467e4 SHA512 7d807766234ea1365846f4bed9c39ef92251a70bf7a99557aeb9ee96255ae71227ff8a24673a6992724fa105a92d979fb3540f85ffcaf31781bab81d389d7c68 WHIRLPOOL fd84e5d1df51cf8cca4207f81b945f4fd65ecc67111bbf28da2fa862ec794f0cab91ea4ca56416e12892b77db9a453591f44019a4ae66040b5f89aa307f6d4c8 diff --git a/dev-haskell/json/files/json-0.4.3-ghc-7.4.patch b/dev-haskell/json/files/json-0.4.3-ghc-7.4.patch new file mode 100644 index 00000000000..3d1233de69f --- /dev/null +++ b/dev-haskell/json/files/json-0.4.3-ghc-7.4.patch @@ -0,0 +1,10 @@ +diff --git a/Text/JSON.hs b/Text/JSON.hs +index 900e0f8..5b90a2a 100644 +--- a/Text/JSON.hs ++++ b/Text/JSON.hs +@@ -1,4 +1,4 @@ +-{-# OPTIONS_GHC -XCPP -XMultiParamTypeClasses -XTypeSynonymInstances #-} ++{-# OPTIONS_GHC -XCPP -XMultiParamTypeClasses -XTypeSynonymInstances -XFlexibleInstances #-} + -------------------------------------------------------------------- + -- | + -- Module : Text.JSON diff --git a/dev-haskell/json/json-0.4.3.ebuild b/dev-haskell/json/json-0.4.3.ebuild new file mode 100644 index 00000000000..6f955401def --- /dev/null +++ b/dev-haskell/json/json-0.4.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +CABAL_FEATURES="lib profile haddock" +inherit base haskell-cabal + +DESCRIPTION="Support for serialising Haskell to and from JSON" +HOMEPAGE="http://hackage.haskell.org/package/json" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~ppc64 x86" +IUSE="" + +# TODO: look into adding dep syb and allow other ghc versions +# syb is a core package of ghc-6.10.1, and was previously included in base + +# enable map to dict? + +RDEPEND=">=dev-lang/ghc-6.10 + >=dev-haskell/cabal-1.2.0 + dev-haskell/mtl + dev-haskell/parsec" + +DEPEND="${RDEPEND}" + +PATCHES=("${FILESDIR}"/${P}-ghc-7.4.patch) + +HCFLAGS+=" -O0" #427838 diff --git a/dev-haskell/json/json-0.4.4.ebuild b/dev-haskell/json/json-0.4.4.ebuild new file mode 100644 index 00000000000..236aa942201 --- /dev/null +++ b/dev-haskell/json/json-0.4.4.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# ebuild generated by hackport 0.2.13 + +EAPI="3" + +CABAL_FEATURES="lib profile haddock hscolour" +inherit base haskell-cabal + +DESCRIPTION="Support for serialising Haskell to and from JSON" +HOMEPAGE="http://hackage.haskell.org/package/json" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="+generic +parsec +pretty" + +RDEPEND="dev-haskell/mtl + >=dev-lang/ghc-6.10.4 + generic? ( dev-haskell/syb ) + parsec? ( dev-haskell/parsec ) + " + +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.2.0" + +PATCHES=("${FILESDIR}"/${PN}-0.4.3-ghc-7.4.patch) + +src_configure() { + [[ $(ghc-version) == "6.12.3" ]] && HCFLAGS+=" -O0" #427838 + + cabal_src_configure \ + $(cabal_flag generic) \ + $(cabal_flag parsec) \ + $(cabal_flag pretty) +} diff --git a/dev-haskell/json/json-0.5.ebuild b/dev-haskell/json/json-0.5.ebuild new file mode 100644 index 00000000000..6faa465ffd6 --- /dev/null +++ b/dev-haskell/json/json-0.5.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# ebuild generated by hackport 0.2.13 + +EAPI="3" + +CABAL_FEATURES="lib profile haddock hscolour hoogle" +inherit haskell-cabal + +DESCRIPTION="Support for serialising Haskell to and from JSON" +HOMEPAGE="http://hackage.haskell.org/package/json" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="+generic +parsec +pretty" + +RDEPEND="dev-haskell/mtl + >=dev-lang/ghc-6.10.4 + generic? ( >=dev-haskell/syb-0.3.3 ) + parsec? ( dev-haskell/parsec ) + " + +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.2.0" + +src_configure() { + [[ $(ghc-version) == "6.12.3" ]] && HCFLAGS+=" -O0" #427838 + + cabal_src_configure \ + $(cabal_flag generic) \ + $(cabal_flag parsec) \ + $(cabal_flag pretty) +} diff --git a/dev-haskell/json/json-0.7.ebuild b/dev-haskell/json/json-0.7.ebuild new file mode 100644 index 00000000000..bcb9c2d7b5e --- /dev/null +++ b/dev-haskell/json/json-0.7.ebuild @@ -0,0 +1,36 @@ +# 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="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Support for serialising Haskell to and from JSON" +HOMEPAGE="http://hackage.haskell.org/package/json" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="amd64 ~ppc64 x86 ~amd64-linux" +IUSE="+generic +parsec +pretty" + +RDEPEND="dev-haskell/mtl:=[profile?] + dev-haskell/text:=[profile?] + parsec? ( dev-haskell/parsec:=[profile?] ) + generic? ( >=dev-haskell/syb-0.3.3:=[profile?] ) + >=dev-lang/ghc-6.10.4:=" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.2.0" + +src_configure() { + [[ $(ghc-version) == "6.12.3" ]] && HCFLAGS+=" -O0" #427838 + + cabal_src_configure \ + $(cabal_flag generic) \ + $(cabal_flag parsec) \ + $(cabal_flag pretty) +} diff --git a/dev-haskell/json/json-0.9.1.ebuild b/dev-haskell/json/json-0.9.1.ebuild new file mode 100644 index 00000000000..041b25701a7 --- /dev/null +++ b/dev-haskell/json/json-0.9.1.ebuild @@ -0,0 +1,37 @@ +# 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.4.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Support for serialising Haskell to and from JSON" +HOMEPAGE="http://hackage.haskell.org/package/json" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux" +IUSE="+generic mapdict +parsec +pretty" + +RDEPEND="dev-haskell/mtl:=[profile?] + dev-haskell/text:=[profile?] + >=dev-lang/ghc-7.4.1:= + generic? ( >=dev-haskell/syb-0.3.3:=[profile?] ) + parsec? ( dev-haskell/parsec:=[profile?] ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6 +" + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag generic generic) \ + $(cabal_flag mapdict mapdict) \ + $(cabal_flag parsec parsec) \ + $(cabal_flag pretty pretty) +} diff --git a/dev-haskell/json/json-0.9.ebuild b/dev-haskell/json/json-0.9.ebuild new file mode 100644 index 00000000000..041b25701a7 --- /dev/null +++ b/dev-haskell/json/json-0.9.ebuild @@ -0,0 +1,37 @@ +# 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.4.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Support for serialising Haskell to and from JSON" +HOMEPAGE="http://hackage.haskell.org/package/json" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux" +IUSE="+generic mapdict +parsec +pretty" + +RDEPEND="dev-haskell/mtl:=[profile?] + dev-haskell/text:=[profile?] + >=dev-lang/ghc-7.4.1:= + generic? ( >=dev-haskell/syb-0.3.3:=[profile?] ) + parsec? ( dev-haskell/parsec:=[profile?] ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6 +" + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag generic generic) \ + $(cabal_flag mapdict mapdict) \ + $(cabal_flag parsec parsec) \ + $(cabal_flag pretty pretty) +} diff --git a/dev-haskell/json/metadata.xml b/dev-haskell/json/metadata.xml new file mode 100644 index 00000000000..e1c77485139 --- /dev/null +++ b/dev-haskell/json/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>haskell</herd> + <longdescription> + JSON (JavaScript Object Notation) is a lightweight data-interchange + format. It is easy for humans to read and write. It is easy for + machines to parse and generate. It is based on a subset of the + JavaScript Programming Language, Standard ECMA-262 3rd Edition - + December 1999. + + This library provides a parser and pretty printer for converting + between Haskell values and JSON. + </longdescription> + <use> + <flag name="generic">Add support for generic encoder (<pkg>dev-haskell/syb</pkg>)</flag> + <flag name="mapdict">Encode Haskell maps as JSON dicts</flag> + <flag name="parsec">Add support for parsing with Parsec</flag> + <flag name="pretty">Add support for using pretty printing combinators</flag> + </use> +</pkgmetadata> |