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/uuagc |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/uuagc')
-rw-r--r-- | dev-haskell/uuagc/Manifest | 8 | ||||
-rw-r--r-- | dev-haskell/uuagc/files/uuagc-0.9.24-ghc-7.8.patch | 193 | ||||
-rw-r--r-- | dev-haskell/uuagc/metadata.xml | 15 | ||||
-rw-r--r-- | dev-haskell/uuagc/uuagc-0.9.24.ebuild | 31 | ||||
-rw-r--r-- | dev-haskell/uuagc/uuagc-0.9.52.1.ebuild | 35 |
5 files changed, 282 insertions, 0 deletions
diff --git a/dev-haskell/uuagc/Manifest b/dev-haskell/uuagc/Manifest new file mode 100644 index 000000000000..dcd37507b47f --- /dev/null +++ b/dev-haskell/uuagc/Manifest @@ -0,0 +1,8 @@ +AUX uuagc-0.9.24-ghc-7.8.patch 8165 SHA256 96aa4fc11eae8fd1e6939fce2a5b60ea1acb4559d31c8b90bd37bf53387cb12d SHA512 692d8dc68fae40ade8cf1308d2bc7733ff7e1e9f94988b8f901f45a983d9c506283eb1b839617776bd8e12ff23c8855c9edcaa1afe41288ff16add278ac85a17 WHIRLPOOL 05baf714d0d3db99940f49f277fa3bf35b33d745e8931a687a98ac39309952f907bf0253c386464c34beb53abd3349ea636b24c58f2f98c479d8b4540bc6c567 +DIST uuagc-0.9.24.tar.gz 253310 SHA256 a183d10f83f944d09693c66736072168adca78518ae7776e0d2b3f5eff762a0f SHA512 9fac31311c1e3983c42b013dd934893b2347755c1b49295a0d82093aa53dadc36bad1d6c996a20526099bcef6b71c4e5ad17c37e550aa1b6ad84de79b1186494 WHIRLPOOL 54a978c6de51df04f7f185df713bf6b7d69422f1dff058c5b95d26b5bfa426ad4c3fed0fa0ee9f92bd1120fc8704eefab852c998d36ab0f6a229d40a8d6c7ac8 +DIST uuagc-0.9.52.1.tar.gz 795294 SHA256 98092b13cb32e4493e877c3752deed471db762f04e7d979be4e6e89065502185 SHA512 f5de27bb06a9453f1d9f4105f10b98636c0bebf351f69f122c420efdcff3dc0c25cbc9a69c8a804b8618f2ff1cb216acea8119b333a130a30a840cc00b268c8c WHIRLPOOL 1210ad6ba51b4a5ae59c3b1cab9a21830c7a96d64f43563e7664226b2b7743a39a64f74931572d819dfb52e9eeb926ecfcbd4f906a13a6f844e07d04a9c15a8c +EBUILD uuagc-0.9.24.ebuild 738 SHA256 87953a6725d8c023be2ad37d6eed0bbca49d27b64b664768454f107fa082d2d3 SHA512 96fd2a8b328ad5360bf8c0531624bc6c82e50a979a8296d723c7c79176292601ee40d09f3e7c88ca4b6ba20bf8ace6f0cf37128bce64309b56a4777b145d95df WHIRLPOOL 4a3bbda67f17af875960e9245aff81540bf768d3219668ec66c21e6a00c5bc908addff577209fb71faa985cfdef0c865bfb49f82627bb42ece57a6f7809c715b +EBUILD uuagc-0.9.52.1.ebuild 957 SHA256 74771eefee7926ce67d421cdf5a3f04d24bbe832a08512c612f39104ae60c8f0 SHA512 dc87c7eb8c4086a4d90ba0a96f258aa473a1dc3cf05450f77632170f8d322d47386a13d2eeeda60753a93652ed4f6d83520b650c8a5d6276c3c103cff0efae11 WHIRLPOOL eb2e4d1e1a1baecb27baaaa5dcf2f6fc78c7041b441047aa6a5c4f3134e9bff8b05529f5eb03c306a9a9895de3562c89c09176b4ead8ff8aa93e3214a2983ea6 +MISC ChangeLog 3302 SHA256 cfc1ae64047cab006a8bb141b2c9d8e9bea08fadd1ec95118da18463ca38ee7b SHA512 bc5f2e63d20baa0357620966a10dcce96c763408888c4244c9f554d08d35e37754fa6dc171a9abfe16423f9f1b4f68ceb44cf271c7080723508070133cb8ed78 WHIRLPOOL f5aafa12676ebf19d976fb28a0be314af6fcb7d900ad4859f56711608cdd282837638300babfd9972d2dbc85492fd6c65030f08da79b7044c73e559f454713d8 +MISC ChangeLog-2015 3350 SHA256 56614492cda515d591ec600a3caeb0273516200389de063921e23c1f3ea298d7 SHA512 798900842278bf008b701daca34edfefbd2c281cca80234490fd39da5283b922df1395ce57e685ee2a234e7b8df2ad737ac11bdd235b7afe652ca1354933f524 WHIRLPOOL 7565cb82f270f244e7bd0bf0f126f1fe73dcf356ceb040aad709091da5c4e183b606847b1a55a57c40dc7891ec36326b069fbc489487c95d8a800079bc9c27eb +MISC metadata.xml 585 SHA256 dc63e80260701ca12f4a6362831e519ff7221edf1befcd454b89e9e2fb10b947 SHA512 a0fe0d7dd8ae23c0a3be494ab84469585b50d0ee87b24b7c706abdbe5d6bf649dc0b065705e0930c143fd72d1eab5ba61d425fb361b37f953103e9aa1bd5421e WHIRLPOOL 09da11611f05c12ad34510a47a19a1f6ce51b3c8521ef2e431e488bf7ab1c3f0f2319dc96cff4b656fd73c2745c5b392005fc6c3091506aa1e36e23bc7ecfc3b diff --git a/dev-haskell/uuagc/files/uuagc-0.9.24-ghc-7.8.patch b/dev-haskell/uuagc/files/uuagc-0.9.24-ghc-7.8.patch new file mode 100644 index 000000000000..bfe30c62da9f --- /dev/null +++ b/dev-haskell/uuagc/files/uuagc-0.9.24-ghc-7.8.patch @@ -0,0 +1,193 @@ +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/Ag.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Ag.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src/Ag.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Ag.hs 2015-05-05 09:05:06.300665157 +0100 +@@ -1,9 +1,10 @@ + module Main where + +-import System (getArgs, getProgName, exitFailure) ++import System.Environment (getArgs, getProgName) ++import System.Exit (exitFailure) + import System.Console.GetOpt (usageInfo) +-import List (isSuffixOf) +-import Monad (zipWithM_) ++import Data.List (isSuffixOf) ++import Control.Monad (zipWithM_) + import Data.Maybe + + import qualified Data.Set as Set +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/DepTypes.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/DepTypes.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src/DepTypes.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/DepTypes.hs 2015-05-05 09:07:11.471671524 +0100 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE FlexibleInstances #-} + module DepTypes where + + import CommonTypes +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/HsTokenScanner.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/HsTokenScanner.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src/HsTokenScanner.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/HsTokenScanner.hs 2015-05-05 09:05:06.300665157 +0100 +@@ -2,11 +2,11 @@ + module HsTokenScanner where + import HsToken + import UU.Scanner.Position +-import List(sort) ++import Data.List(sort) + import UU.Util.BinaryTrees + import CommonTypes +-import Maybe +-import Char ++import Data.Maybe ++import Data.Char + isAGesc c = c == '@' + + lexTokens :: Pos -> String -> [HsToken] +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/Parser.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Parser.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src/Parser.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Parser.hs 2015-05-05 09:05:06.300665157 +0100 +@@ -8,10 +8,10 @@ + import Patterns + import UU.Pretty(text,PP_Doc,empty,(>-<)) + import TokenDef +-import List (intersperse) +-import Char ++import Data.List (intersperse) ++import Data.Char + import Scanner (Input(..),scanLit,input) +-import List ++import Data.List + import Expression + import UU.Scanner.Token + import UU.Scanner.TokenParser +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/Scanner.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Scanner.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src/Scanner.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/Scanner.hs 2015-05-05 09:05:06.301665157 +0100 +@@ -6,9 +6,9 @@ + import UU.Scanner.Position
+ import UU.Scanner.Token
+ import UU.Parsing(InputState(..),Either'(..))
+-import Maybe
+-import List
+-import Char
++import Data.Maybe
++import Data.List
++import Data.Char
+ import UU.Scanner.GenToken
+ import Options
+
+diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src/TokenDef.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src/TokenDef.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src/TokenDef.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src/TokenDef.hs 2015-05-05 09:05:06.301665157 +0100 +@@ -7,7 +7,7 @@ + import UU.Scanner.GenTokenOrd
+ import UU.Scanner.Position
+ import UU.Parsing.MachineInterface(Symbol(..)) +-import Char(isPrint,ord) ++import Data.Char(isPrint,ord) + import HsToken + import CommonTypes + +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/DefaultRules.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/DefaultRules.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/DefaultRules.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/DefaultRules.hs 2015-05-05 09:05:06.294665157 +0100 +@@ -4,7 +4,7 @@ + module DefaultRules where + {-# LINE 10 "DefaultRules.ag" #-} + +-import qualified List (delete,intersperse) ++import qualified Data.List as List (delete,intersperse) + + import qualified Data.Set as Set + import qualified Data.Map as Map +@@ -13,7 +13,7 @@ + import Data.Sequence(Seq,(><)) + import UU.Scanner.Position(noPos) + import Pretty +-import Maybe ++import Data.Maybe + import HsToken + import HsTokenScanner + import Data.List(intersperse) +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Desugar.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Desugar.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Desugar.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Desugar.hs 2015-05-05 09:05:06.295665157 +0100 +@@ -10,7 +10,7 @@ + import qualified Data.Sequence as Seq + import Data.Sequence(Seq,(><)) + import UU.Scanner.Position(Pos(..)) +-import Maybe ++import Data.Maybe + import Data.List(intersperse) + + import AbstractSyntax +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/GenerateCode.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/GenerateCode.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/GenerateCode.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/GenerateCode.hs 2015-05-05 09:05:06.296665157 +0100 +@@ -26,7 +26,7 @@ + import HsTokenScanner + + import Data.List(partition,intersperse,intersect,(\\)) +-import Maybe(fromJust,isJust) ++import Data.Maybe(fromJust,isJust) + {-# LINE 31 "../src-derived/GenerateCode.hs" #-} + + {-# LINE 2 "./CodeSyntax.ag" #-} +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Order.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Order.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Order.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Order.hs 2015-05-05 09:05:06.297665157 +0100 +@@ -37,7 +37,7 @@ + import Data.Array((!),bounds,inRange) + import Data.List(elemIndex,partition,sort,mapAccumL,find,nubBy,intersperse,groupBy,transpose) + import qualified Data.Tree as Tree +-import Maybe ++import Data.Maybe + {-# LINE 42 "../src-derived/Order.hs" #-} + + {-# LINE 2 "./Patterns.ag" #-} +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/PrintCode.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/PrintCode.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/PrintCode.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/PrintCode.hs 2015-05-05 09:05:06.298665157 +0100 +@@ -4,7 +4,7 @@ + module PrintCode where + {-# LINE 10 "PrintCode.ag" #-} + +-import Char (isAlphaNum) ++import Data.Char (isAlphaNum) + import Pretty + import Code + import Patterns +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/PrintVisitCode.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/PrintVisitCode.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/PrintVisitCode.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/PrintVisitCode.hs 2015-05-05 09:05:06.299665157 +0100 +@@ -22,7 +22,7 @@ + import UU.Scanner.Position + + import Data.List(partition,intersperse,intersect,(\\)) +-import Maybe(fromJust,isJust) ++import Data.Maybe(fromJust,isJust) + {-# LINE 27 "../src-derived/PrintVisitCode.hs" #-} + + {-# LINE 2 "./CodeSyntax.ag" #-} +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Transform.hs uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Transform.hs +--- uuagc-0.9.24/work/uuagc-0.9.24/src-derived/Transform.hs 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/src-derived/Transform.hs 2015-05-05 09:05:06.300665157 +0100 +@@ -5,7 +5,7 @@ + {-# LINE 8 "Transform.ag" #-} + + import Control.Monad(mplus,mzero) +-import List (partition, elem, nub,intersperse) ++import Data.List as List (partition, elem, nub,intersperse) + import Data.Maybe + import qualified Data.Map as Map + import Data.Map (Map) +diff -uraN -U0 uuagc-0.9.24/work/uuagc-0.9.24/uuagc.cabal uuagc-0.9.24-r0/work/uuagc-0.9.24/uuagc.cabal +--- uuagc-0.9.24/work/uuagc-0.9.24/uuagc.cabal 2010-06-04 14:03:54.000000000 +0100 ++++ uuagc-0.9.24-r0/work/uuagc-0.9.24/uuagc.cabal 2015-05-05 09:05:06.301665157 +0100 +@@ -28,7 +28,7 @@ + else + build-depends: base < 3 + +- build-depends: haskell98, uulib>=0.9.12 ++ build-depends: uulib>=0.9.12 + main-is: Ag.hs + other-modules: Ag + , CommonTypes diff --git a/dev-haskell/uuagc/metadata.xml b/dev-haskell/uuagc/metadata.xml new file mode 100644 index 000000000000..14528f8d181e --- /dev/null +++ b/dev-haskell/uuagc/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> + <use> + <flag name="bootstrap_external">Use an external uuagc executable for bootstrapping.</flag> + <flag name="with-loag">Use <pkg>dev-haskell/minisat</pkg> external SAT-solver to schedule all Linear Ordered AGs.</flag> + </use> + <longdescription> + Generates Haskell files from an attribute grammar specification + </longdescription> +</pkgmetadata> diff --git a/dev-haskell/uuagc/uuagc-0.9.24.ebuild b/dev-haskell/uuagc/uuagc-0.9.24.ebuild new file mode 100644 index 000000000000..01a86a5ae373 --- /dev/null +++ b/dev-haskell/uuagc/uuagc-0.9.24.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +CABAL_FEATURES="bin lib profile haddock" +inherit eutils haskell-cabal + +DESCRIPTION="Attribute Grammar System of Universiteit Utrecht" +HOMEPAGE="http://www.cs.uu.nl/wiki/HUT/WebHome" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 sparc x86" +IUSE="" + +HASKELLDEPS="dev-haskell/cabal + >=dev-haskell/uulib-0.9.12" +RDEPEND=">=dev-lang/ghc-6.10 + ${HASKELLDEPS}" +DEPEND=">=dev-haskell/cabal-1.2 + ${RDEPEND}" + +src_unpack() { + unpack "${A}" + cd "${S}" + epatch "${FILESDIR}"/${P}-ghc-7.8.patch + + sed \ + -e 's/{-# LINE/{- # LINE/g' \ + -i "${S}"/src-derived/*.hs +} diff --git a/dev-haskell/uuagc/uuagc-0.9.52.1.ebuild b/dev-haskell/uuagc/uuagc-0.9.52.1.ebuild new file mode 100644 index 000000000000..ec27cc7c0ffd --- /dev/null +++ b/dev-haskell/uuagc/uuagc-0.9.52.1.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 haskell-cabal + +DESCRIPTION="Attribute Grammar System of Universiteit Utrecht" +HOMEPAGE="http://www.cs.uu.nl/wiki/HUT/WebHome" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="bootstrap_external with-loag" + +RDEPEND=">=dev-haskell/haskell-src-exts-1.11.1:=[profile?] + >=dev-haskell/mtl-1.1.1.1:=[profile?] + >=dev-haskell/uuagc-cabal-1.0.2.0:=[profile?] + >=dev-haskell/uulib-0.9.14:=[profile?] + >=dev-lang/ghc-7.4.1:= + with-loag? ( dev-haskell/minisat:=[profile?] ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 +" + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag bootstrap_external bootstrap_external) \ + $(cabal_flag with-loag with-loag) +} |