summaryrefslogtreecommitdiff
path: root/dev-haskell/syb
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/syb
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/syb')
-rw-r--r--dev-haskell/syb/Manifest12
-rw-r--r--dev-haskell/syb/files/syb-0.4.3-ghc-7.10.patch152
-rw-r--r--dev-haskell/syb/metadata.xml15
-rw-r--r--dev-haskell/syb/syb-0.3.7.ebuild20
-rw-r--r--dev-haskell/syb/syb-0.4.3.ebuild28
-rw-r--r--dev-haskell/syb/syb-0.4.4.ebuild28
-rw-r--r--dev-haskell/syb/syb-0.5.1.ebuild28
7 files changed, 283 insertions, 0 deletions
diff --git a/dev-haskell/syb/Manifest b/dev-haskell/syb/Manifest
new file mode 100644
index 000000000000..5ae36c087ae3
--- /dev/null
+++ b/dev-haskell/syb/Manifest
@@ -0,0 +1,12 @@
+AUX syb-0.4.3-ghc-7.10.patch 3685 SHA256 68b6459779091fc4fe02ea02a236791a4873dd6ff639a86a9bbd505cd188ab94 SHA512 2518320db73ae06c160fa77516ccc66bc156b480d4fb723ae4927ad18704d60522f55d0d255154829bff8c637054fce54d7e9e15757cd1a78be4b75c0ad8c19a WHIRLPOOL d139d221ddf214eb01629c26d3a061e095a1e405519a9c6dc9dc8e4b278c3f3573e2c005930eea00a7331cf0c7c3ef56c6a399ed558dd8930d074b706f411893
+DIST syb-0.3.7.tar.gz 39091 SHA256 59f4058a8182a472c0e0e35f8aca836470a5785d3dcd01e3d44bb188c850da73 SHA512 ede12bc5db250430932c65f764388d356d687059158aa94b2da7b9618b4cc610e5f945a691b86fd9dce6e9761eb1ef4207abdf9b2aa3a4c3ac01d57fb18818ff WHIRLPOOL e2cd0015fbe7ddcc8035a563271a91600225caa17ac4fb14fc0c9125f424c130fe5714c17b7de8e6aa1c9b98b4892070be8c5ffc218c4a948ed0e3017f693f0b
+DIST syb-0.4.3.tar.gz 38860 SHA256 749ff49197c75d3d182f9d5e6043c0ec2325476b7792245630f6578edf490e35 SHA512 d351eb020dba7c257904b81504cacc233b33864bcc54aad48267db313755243206a2dc4a89d473062d5ca4eff09dd57f0610e99f944717a8e3bbd724775fd6b3 WHIRLPOOL 31b64688fd65930331ec7adf7c6e01be063b4adffa48bf6abe41aaed0716ba71629880e7260b12a223e9c9198b558f8a8d8eb34db70f7951c043812400108056
+DIST syb-0.4.4.tar.gz 39215 SHA256 0610677803931a3355aae00fdd13145f80e26d7dee08e1ba5bc9b2edea4c4c87 SHA512 fc916ec2ad4c76c7aa979f2b5040df5088b0a75b1e33e3b2325e2212b59d22db5773fe0803beb1b8b2e0a0a292f5620bcb23201dce8b790b8f4fa2252bd64a33 WHIRLPOOL 62c66bb6a5fb44c62f6f1975edeafb099b1d394e0eb292d6e1fc879f85d70e896435c699196d0cb42b06f62f8269c12ef8498f27cb021c607e15e9927bc3c899
+DIST syb-0.5.1.tar.gz 39469 SHA256 81b05f0e78d03e1cabe9610a6045a5ae74d88eaed7e79464d436ccaa6af93846 SHA512 087bf9a51abe0a09edc0b920f9b91733016701d6ed24184d8f82da87d3b1912b96af4845a3b0ddb41868efede48f90b52d1940633cf0d366559e176cc7771257 WHIRLPOOL 464a32a1cd7605fdf7ebebc7397bc93fc731eb7a8ae5414f2a3464f79587dff624b5974ebeb45234fb8832fd9dd0ae514a85e5804c93893d679acc9f988bb7e0
+EBUILD syb-0.3.7.ebuild 549 SHA256 55fc4a1373c57f856c6e2fdf7e8ddf37f2617aaa567a845351d6c9c0fe36ddf9 SHA512 91b66cadd44ae7c6bc95e10d680506ffe3a7e1f42f8414143740d8f5f7cd86f42066e46e4b29d077d72970ba3cf8ae17ae22792c20159d651c76b8d20c176095 WHIRLPOOL 435c1bd0a1a83fac63f5a7f86a670321d528a0a9091b89eda93d55cbbbe80ba179aea8f3f30071cf79575326446f62399cd92a38a6a004a9f8d6b1dccba3ec4d
+EBUILD syb-0.4.3.ebuild 704 SHA256 28e3fb276bcf2d767975756973d66f3aa56dc98b099dde9616e4f467c3cc7718 SHA512 78371ecfd69ef7d92d7c107b917c84ee67499cd24365150b77067c7ab922a58c0113646a84b53c9ab20b6c39421aeb251248f5a8e2ce6c1708a017eede348bbd WHIRLPOOL e35dce2d587ae3cc7e32b20e1bff64bca17a3ff606e9e1f1ee6aea05f99be7274e12b33a3e82a84ae927608a683afe995b9afacb2eff353d2dd29a13fac32a10
+EBUILD syb-0.4.4.ebuild 707 SHA256 f93e4387487c28855a697131701c9b4d77c18d6d9a4d3333412d716f32153866 SHA512 9b43a1a991ef1c2eade2ff0d991680e9b94057c663fb11a4eaf36b39d051ccdd596271a6dedf4c983b5252fabe2cacb3e4320448d3a8520b912fa8bf4473e912 WHIRLPOOL f15176bfffb7c8b8364e7662dfecf2480dd75c6b94bcdeab3230c95c6aa92102d9cde5de3cbc19aabf6767442b25192b23e5c64a7aebd703c4fc68f2a9ae5af0
+EBUILD syb-0.5.1.ebuild 709 SHA256 087f301a6ebdcd9c3c5bd663eb595b655c3650ee01dadfeeff6bc345a1be1c5b SHA512 008138d90ea62f84d255f51c1a75f968c51c54080dc04f1843d916f6ac215168ff90dc7f1e94a74ce8b0a732cd2f956faad56c173d32ebb40acf120859fe5b89 WHIRLPOOL ae07793d37506d37ec81ed92836c182e75f8b92b11a7bf8adc3bc00ecd0f5bdc1ed3b894a5d7f01ab9ab9a8b16770b030764ca3751c0ead629b6ff834325dbe7
+MISC ChangeLog 3374 SHA256 1fac7ec84d1de3730c6f48b9040e9633d67a3e83b1219f1a5840d1eb07cbd7e7 SHA512 984048a3427925bf6f6c4f4e4e18ffe6dc0ebe8469103d4859e5c7399d2534bd1c99c6e789f451b00ef2f44ffa5c8fac1bd9fe98758b830fb39549c22364642a WHIRLPOOL 6e15fc517d42bdfd228c5387f583e057b77b57002916f62ec2deccfe418341e23fd2b71b6dc76e84384bca470cf8bebd7cc79cfd6867889856d54ff71fd2f30d
+MISC ChangeLog-2015 4318 SHA256 17d71482025048eae17412d57e3bf3d0276c0719c4d8c7ac90ffa5355dadc38b SHA512 ea99e41e2de8b3138bd2ba5275c95e1a57589c09e03d6fbea9aaae01fd08a4f4741a87e7a611f83fef54e236e919587d52f41aa13204e74149e83fa667fcc9a6 WHIRLPOOL d29ca7f96e0992bc91aa0da8959ffdba7f3d74a8922139f3facc97aede5185aaf4c34e4bd4582f03dc8f139dc3098bd5f555636bbb5b17254bf22294d8c47b06
+MISC metadata.xml 617 SHA256 b154673c02f33bd49472a9979e90059c9530139719f6512f75b2f4a1724c8cae SHA512 0c378d2efe45acd20b0437dde07ba0988234120d132aa6764ec35e585149313739748ae25f5b05deee78722b21f8e861ebbc22f96dc800ee8205c74a32be96ff WHIRLPOOL cc36232963bd1439f4ecdbb89a47af7b8c68a78c36e8df43f3c0c42659488bf5e55b557c4e45578581227a702941d558a9ccb9a26040c89ed20dc3b2e80320db
diff --git a/dev-haskell/syb/files/syb-0.4.3-ghc-7.10.patch b/dev-haskell/syb/files/syb-0.4.3-ghc-7.10.patch
new file mode 100644
index 000000000000..2773bdc5a631
--- /dev/null
+++ b/dev-haskell/syb/files/syb-0.4.3-ghc-7.10.patch
@@ -0,0 +1,152 @@
+--- syb-0.4.3-orig/tests/XML.hs 2014-12-31 19:40:41.000000000 +1100
++++ syb-0.4.3/tests/XML.hs 2015-01-02 12:47:10.082782760 +1100
+@@ -13,6 +13,7 @@
+
+ import Test.HUnit
+
++import Control.Applicative (Alternative(..), Applicative(..))
+ import Control.Monad
+ import Data.Maybe
+ import Data.Generics
+@@ -157,6 +158,17 @@
+ else Just (tail x, head x)
+ )
+
++instance Functor ReadX where
++ fmap = liftM
++
++instance Applicative ReadX where
++ pure = return
++ (<*>) = ap
++
++instance Alternative ReadX where
++ (<|>) = mplus
++ empty = mzero
++
+ -- ReadX is a monad!
+ instance Monad ReadX where
+ return x = ReadX (\y -> Just (y,x))
+--- syb-0.4.3-orig/tests/Perm.hs 2014-12-31 19:40:41.000000000 +1100
++++ syb-0.4.3/tests/Perm.hs 2015-01-02 12:47:02.751422866 +1100
+@@ -11,6 +11,7 @@
+
+ import Test.HUnit
+
++import Control.Applicative (Alternative(..), Applicative(..))
+ import Control.Monad
+ import Data.Generics
+
+@@ -44,6 +45,17 @@
+ else Just (tail x, head x)
+ )
+
++instance Functor ReadT where
++ fmap = liftM
++
++instance Applicative ReadT where
++ pure = return
++ (<*>) = ap
++
++instance Alternative ReadT where
++ (<|>) = mplus
++ empty = mzero
++
+ -- ReadT is a monad!
+ instance Monad ReadT where
+ return x = ReadT (\y -> Just (y,x))
+--- syb-0.4.3-orig/tests/Bits.hs 2014-12-31 19:40:41.000000000 +1100
++++ syb-0.4.3/tests/Bits.hs 2015-01-02 12:46:37.842839944 +1100
+@@ -39,6 +39,7 @@
+ import Data.Generics
+ import Data.Char
+ import Data.Maybe
++import Control.Applicative (Alternative(..), Applicative(..))
+ import Control.Monad
+ import CompanyDatatypes
+
+@@ -129,6 +130,16 @@
+ data ReadB a = ReadB (Bin -> (Maybe a, Bin))
+ unReadB (ReadB f) = f
+
++instance Functor ReadB where
++ fmap = liftM
++
++instance Applicative ReadB where
++ pure = return
++ (<*>) = ap
++
++instance Alternative ReadB where
++ (<|>) = mplus
++ empty = mzero
+
+ -- It's a monad.
+ instance Monad ReadB where
+--- syb-0.4.3-orig/tests/Encode.hs 2014-12-31 19:40:41.000000000 +1100
++++ syb-0.4.3/tests/Encode.hs 2015-01-02 12:51:48.500949407 +1100
+@@ -6,6 +6,8 @@
+
+ module Encode () where
+
++import Control.Applicative (Applicative(..))
++import Control.Monad (ap, liftM)
+ import Data.Generics
+
+ data Bit = Zero | One
+@@ -62,6 +64,11 @@
+ -- Sec. 3.3 cont'd
+
+ data EncM a -- The encoder monad
++instance Functor EncM where
++ fmap = liftM
++instance Applicative EncM where
++ pure = return
++ (<*>) = ap
+ instance Monad EncM
+ where
+ return = undefined
+--- syb-0.4.3-orig/tests/GRead2.hs 2014-12-31 19:40:41.000000000 +1100
++++ syb-0.4.3/tests/GRead2.hs 2015-01-02 12:51:27.524567019 +1100
+@@ -10,6 +10,8 @@
+
+ -}
+
++import Control.Applicative (Applicative(..))
++import Control.Monad (ap, liftM)
+ import Data.Generics
+
+ gread :: Data a => String -> Maybe a
+@@ -18,6 +20,13 @@
+ -- The decoder monad
+ newtype DecM a = D (String -> Maybe (String, a))
+
++instance Functor DecM where
++ fmap = liftM
++
++instance Applicative DecM where
++ pure = return
++ (<*>) = ap
++
+ instance Monad DecM where
+ return a = D (\s -> Just (s,a))
+ (D m) >>= k = D (\s ->
+--- syb-0.4.3-orig/tests/Ext1.hs 2014-12-31 19:40:41.000000000 +1100
++++ syb-0.4.3/tests/Ext1.hs 2015-01-02 10:30:39.396517984 +1100
+@@ -1,4 +1,5 @@
+ {-# OPTIONS -fglasgow-exts #-}
++{-# LANGUAGE CPP #-}
+
+ module Ext1 (tests) where
+
+@@ -11,8 +12,11 @@
+ import Test.HUnit
+
+ import Data.Generics
++#if MIN_VERSION_base(4,8,0)
++import GHC.Base hiding(foldr)
++#else
+ import GHC.Base
+-
++#endif
+
+ -- Unsafe coerce
+ unsafeCoerce :: a -> b
diff --git a/dev-haskell/syb/metadata.xml b/dev-haskell/syb/metadata.xml
new file mode 100644
index 000000000000..61d88fcab472
--- /dev/null
+++ b/dev-haskell/syb/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ This package contains the generics system described in the
+ "Scrap Your Boilerplate" papers (see http://www.cs.uu.nl/wiki/GenericProgramming/SYB).
+ It defines the 'Data' class of types permitting folding and unfolding
+ of constructor applications, instances of this class for primitive
+ types, and a variety of traversals.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/syb/syb-0.3.7.ebuild b/dev-haskell/syb/syb-0.3.7.ebuild
new file mode 100644
index 000000000000..9a3a065b66ca
--- /dev/null
+++ b/dev-haskell/syb/syb-0.3.7.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+# PDEPEND of ghc, so restrict depgraph
+CABAL_FEATURES="lib profile haddock hoogle hscolour nocabaldep"
+inherit haskell-cabal
+
+DESCRIPTION="Scrap Your Boilerplate"
+HOMEPAGE="http://www.cs.uu.nl/wiki/GenericProgramming/SYB"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=dev-lang/ghc-6.10.1"
+DEPEND="${RDEPEND}"
diff --git a/dev-haskell/syb/syb-0.4.3.ebuild b/dev-haskell/syb/syb-0.4.3.ebuild
new file mode 100644
index 000000000000..de97eb71252a
--- /dev/null
+++ b/dev-haskell/syb/syb-0.4.3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.4.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit base haskell-cabal
+
+DESCRIPTION="Scrap Your Boilerplate"
+HOMEPAGE="http://www.cs.uu.nl/wiki/GenericProgramming/SYB"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux"
+IUSE=""
+
+RDEPEND=">=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ test? ( dev-haskell/hunit
+ dev-haskell/mtl )
+"
+
+PATCHES=("${FILESDIR}/${PN}-0.4.3-ghc-7.10.patch")
diff --git a/dev-haskell/syb/syb-0.4.4.ebuild b/dev-haskell/syb/syb-0.4.4.ebuild
new file mode 100644
index 000000000000..b72fbd21db5d
--- /dev/null
+++ b/dev-haskell/syb/syb-0.4.4.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.4.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Scrap Your Boilerplate"
+HOMEPAGE="http://www.cs.uu.nl/wiki/GenericProgramming/SYB"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux"
+IUSE=""
+
+RESTRICT=test # ghc-7.10 slightly changed namespacing
+
+RDEPEND=">=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ test? ( dev-haskell/hunit
+ dev-haskell/mtl )
+"
diff --git a/dev-haskell/syb/syb-0.5.1.ebuild b/dev-haskell/syb/syb-0.5.1.ebuild
new file mode 100644
index 000000000000..c9c285003a06
--- /dev/null
+++ b/dev-haskell/syb/syb-0.5.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 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="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Scrap Your Boilerplate"
+HOMEPAGE="http://www.cs.uu.nl/wiki/GenericProgramming/SYB"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux"
+IUSE=""
+
+RESTRICT=test # ghc-7.10 slightly changed namespacing
+
+RDEPEND=">=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ test? ( dev-haskell/hunit
+ dev-haskell/mtl )
+"