summaryrefslogtreecommitdiff
path: root/dev-haskell/top
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/top
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/top')
-rw-r--r--dev-haskell/top/Manifest6
-rw-r--r--dev-haskell/top/files/top-1.7-ghc-7.10.patch66
-rw-r--r--dev-haskell/top/metadata.xml15
-rw-r--r--dev-haskell/top/top-1.7.ebuild35
4 files changed, 122 insertions, 0 deletions
diff --git a/dev-haskell/top/Manifest b/dev-haskell/top/Manifest
new file mode 100644
index 000000000000..e414e712b5e7
--- /dev/null
+++ b/dev-haskell/top/Manifest
@@ -0,0 +1,6 @@
+AUX top-1.7-ghc-7.10.patch 2305 SHA256 ea3e3b877e403404c3742a9baf22395254393525f1af90cd772444d003841028 SHA512 e5b6d8ad618787e70e06ad08e92b53c5d66dd4464a7cc476f55da86b740bf835a9e3c1e35a03dd3a390bb7798459afbdf7aed19c91491bb6d16c53092cd4a0fb WHIRLPOOL d0d6b177bb7466e8ddfb96822481fab93ca1fcecc7a68771f36af61a89ef0716ef2a329e61e0cf43d54f37812590391a3688277bed0a8e2221d79e767d14ee7b
+DIST Top-1.7.tar.gz 70721 SHA256 3d8da13be43fa6393d660bc0ec17c4336a93d8f0ac5808c6274149af3866717a SHA512 90d5f1042c07101c35bc1722c18667f551fa4d9034e70a4b7466ff25906899053a054f1227fed8d6d534d04fe9a1c2420585143cde44badfe98e08bf9a6225b4 WHIRLPOOL 721aad7b923963596ae83c2c5d4abff4cc5202af3af38de11354da1cbd6d4e615707be54454e363ce0b448af1e5ceb994b57884fb5a649a8dc12bf16eb1f894c
+EBUILD top-1.7.ebuild 785 SHA256 9d5a56d899a790339d684f681b2f60281233a89430622a58d5d9a47940369d06 SHA512 2110d6b9f5f1799fc9502531724fd3481c1a57a6b6e5567101f5e6c3de110d13b09525e5a7ba63f9c05b4b30c367aa4f6ae685e9352773d515c8d87c5201a6e6 WHIRLPOOL efd4e2c5fa11f5259213aaecd495b38549b5ecb047c54186af6cf46e3ec7feb5ef5fc4d9d83fb155680904a92b5c463bbe72af1eae31daf7bd81e746ddd803a3
+MISC ChangeLog 2445 SHA256 f743febb552f9ae7e2f32468e24b5c514cd189b3b38a17ab2d6ddd6f4e018410 SHA512 f4e5d21c6583c2b02428335bd80bb0f913dc7776ee9f2127b492306f7fc89c66705351e9fbfbdf290367adf127ffc3bed5ce4e67239e7822f1cc740eba1879c4 WHIRLPOOL 90d587db7e377761de6ae51e84524a82c105f49fb223ff48a015b322e8ee01091481c18b436e53fcf4886e1db38206d4ea869aca120691ce8deaf8127bfa3fda
+MISC ChangeLog-2015 452 SHA256 936eaa3314be1d2c7b78e662553f5dc384e25e89cea7765f79b48472c27ab2ea SHA512 96e44da9fc204310781faef9199f7cf2b56710d7a6eaacde4716b85754b78e45858a39e34f883efdb3c9784b9f272f4416ef2fa69df665461263e0bda6d46b3d WHIRLPOOL 3a86315222386403793fc27c7f5627bc6543bd6df4397976cef59adeb1df934aadda4ba22f81dccb3fadc071edff87d1c4c2bfcdb48c8d56ab18a846e31d0f4f
+MISC metadata.xml 662 SHA256 432d7007ea3dd81a84f6642ce5a2e81bd89ba261362784f636a78c93b5245273 SHA512 f335204b8139d294a18034055d76797412a4af6b98beb052878478b4246d6b2161c147fad254be262fd7732d96affe9952f231311debbd2a52fa9e338f0267be WHIRLPOOL b6ed795100e60415e686747808c515c14c485ca694723f714fbb620dd505597afbd28039f5fec1cbb027b02c058dec10345eb681adf61bc97abc725c3f8a8cb7
diff --git a/dev-haskell/top/files/top-1.7-ghc-7.10.patch b/dev-haskell/top/files/top-1.7-ghc-7.10.patch
new file mode 100644
index 000000000000..3acbda19e171
--- /dev/null
+++ b/dev-haskell/top/files/top-1.7-ghc-7.10.patch
@@ -0,0 +1,66 @@
+diff --git a/src/Top/Implementation/TypeGraph/DefaultHeuristics.hs b/src/Top/Implementation/TypeGraph/DefaultHeuristics.hs
+index 2cc5210..faf4c8c 100644
+--- a/src/Top/Implementation/TypeGraph/DefaultHeuristics.hs
++++ b/src/Top/Implementation/TypeGraph/DefaultHeuristics.hs
+@@ -1,2 +1,3 @@
++{-# LANGUAGE FlexibleContexts #-}
+ -----------------------------------------------------------------------------
+ -- | License : GPL
+diff --git a/src/Top/Monad/Select.hs b/src/Top/Monad/Select.hs
+index e5953cb..72276b4 100644
+--- a/src/Top/Monad/Select.hs
++++ b/src/Top/Monad/Select.hs
+@@ -16,4 +16,6 @@ module Top.Monad.Select
+ import Top.Util.Embedding
+ import Control.Monad.State
++import Control.Monad
++import Control.Applicative
+
+ --------------------------------------------------------
+@@ -22,4 +24,11 @@ import Control.Monad.State
+ newtype Select t m a = Select (m a)
+
++instance Monad m => Functor (Select t m) where
++ fmap = liftM
++
++instance Monad m => Applicative (Select t m) where
++ pure = return
++ (<*>) = ap -- defined in Control.Monad
++
+ instance Monad m => Monad (Select t m) where
+ return a = Select (return a)
+@@ -43,4 +52,11 @@ select = Select
+ data SelectFix (t :: (* -> *) -> *) (m :: * -> *) a = SelectFix (m a)
+
++instance Monad m => Functor (SelectFix t m) where
++ fmap = liftM
++
++instance Monad m => Applicative (SelectFix t m) where
++ pure = return
++ (<*>) = ap -- defined in Control.Monad
++
+ instance Monad m => Monad (SelectFix t m) where
+ return a = SelectFix (return a)
+diff --git a/src/Top/Monad/StateFix.hs b/src/Top/Monad/StateFix.hs
+index d77919d..bd8fb76 100644
+--- a/src/Top/Monad/StateFix.hs
++++ b/src/Top/Monad/StateFix.hs
+@@ -16,4 +16,6 @@ import Control.Monad.State
+ import Control.Monad.Identity
+ import Control.Monad.Writer
++import Control.Monad
++import Control.Applicative
+
+ type StateFix s = StateFixT s Identity
+@@ -21,4 +23,11 @@ type StateFix s = StateFixT s Identity
+ data StateFixT s m a = Fix { unFix :: StateT (s (StateFixT s m)) m a }
+
++instance Monad m => Functor (StateFixT s m) where
++ fmap = liftM
++
++instance Monad m => Applicative (StateFixT s m) where
++ pure = return
++ (<*>) = ap -- defined in Control.Monad
++
+ instance Monad m => Monad (StateFixT s m) where
+ return = Fix . return
diff --git a/dev-haskell/top/metadata.xml b/dev-haskell/top/metadata.xml
new file mode 100644
index 000000000000..20445cc8ffae
--- /dev/null
+++ b/dev-haskell/top/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>
+ At its most general, Top is a framework for constructing abstract interpretations
+ which focuses on giving good feedback on why an abstract interpretation does not give
+ any useful information. In a mathematical notation this is usually made explicit by
+ returning the top element of a (complete) lattice. This is also one of the reasons
+ for the name of the project.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/top/top-1.7.ebuild b/dev-haskell/top/top-1.7.ebuild
new file mode 100644
index 000000000000..284c027fe079
--- /dev/null
+++ b/dev-haskell/top/top-1.7.ebuild
@@ -0,0 +1,35 @@
+# 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="bin lib profile haddock hoogle hscolour"
+inherit eutils haskell-cabal
+
+MY_PN="Top"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Constraint solving framework employed by the Helium Compiler"
+HOMEPAGE="http://www.cs.uu.nl/wiki/bin/view/Helium/WebHome"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-haskell/mtl:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.10.1.0
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ghc-7.10.patch
+}