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/happy |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/happy')
-rw-r--r-- | dev-haskell/happy/Manifest | 8 | ||||
-rw-r--r-- | dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch | 27 | ||||
-rw-r--r-- | dev-haskell/happy/happy-1.19.4.ebuild | 66 | ||||
-rw-r--r-- | dev-haskell/happy/happy-1.19.5.ebuild | 73 | ||||
-rw-r--r-- | dev-haskell/happy/metadata.xml | 11 |
5 files changed, 185 insertions, 0 deletions
diff --git a/dev-haskell/happy/Manifest b/dev-haskell/happy/Manifest new file mode 100644 index 000000000000..85263e3a4221 --- /dev/null +++ b/dev-haskell/happy/Manifest @@ -0,0 +1,8 @@ +AUX happy-1.19.5-ghc-7.10.2.patch 940 SHA256 da834e9e98d7e1abe40a79447b04f1229554b87f3ec5495f73a824c698d13d28 SHA512 8866180fc18c7390132cef311b40b890f2d768296302f3a85cba2fcfc6abb523de6280dd6046da3fbc45915a7d866df5ec6725fe229c168482854d00cbe66d65 WHIRLPOOL 88bf8c5ef2780f282012d33925d9868e45680dc275515207b409bcd89032dee755ee412530c9995eece3fb85e49fcc0cf24caf858496dca6bb5dcecc3d09e2cb +DIST happy-1.19.4.tar.gz 160497 SHA256 6be499f66c61f8c48cbbbcb70515eb8e62c2bfa08adcc8c9474e7ae343a6936d SHA512 d49893098f9982321fc03dad464bf787873a1a82167165d53f617ba04923c7e5d8f177def7fa045a5669d1c7f886a88087ba8f668ef1900a71498b5800cc4b1a WHIRLPOOL 6f9b63a149e3681f3ea52a91c01386898c70df5c0d06d9d99f1979b21628ffce483d71bc48cd21c3ca0a7cec8edc4581dea02fc33b90ff9de9902453327fdeec +DIST happy-1.19.5.tar.gz 159280 SHA256 62f03ac11d7b4b9913f212f5aa2eee1087f3b46dc07d799d41e1854ff02843da SHA512 7b43ef5236bdfba82bbddedb7edc7a8094990a389c0d3f5f848cb6208c3577e7b394cb290e51a2b2eebca25c97978a85ee932e74bbf6a792e261e5b5bff25a2b WHIRLPOOL 24bb36acb56dc20203032b9b81d542cc8e8f258bffd3b4e004cfa4185b209712c5b79c06da22f9bac4087452a0595021e94937fdd18fea79b082d0ac849c0541 +EBUILD happy-1.19.4.ebuild 1401 SHA256 5abc1f5702e3467de9cad2871ff422984359c83645f718611cfa664fbf1d0aa7 SHA512 a904577fb3a6a8fa989cba8366f6785be84be9df612bb659ad95d45e125b03fe0e3d0f2af930257a8dcee91864fed7b2a62060b1c79476e9a79f725085905be9 WHIRLPOOL bd1c29ac115ecf7e66273f6d8f5613a3d7cd17003783d8eebb3d4c59390728f4b6f506fc564ceac831edcd625653fd8f4766e164f424e186ee2fc73813a6c28d +EBUILD happy-1.19.5.ebuild 1564 SHA256 9a563a5c0e1b614ddb23334a673fa60501ba3aef9e6dc709053d1bc10ff5b9fe SHA512 d03e33ce278eb9da0457d7ec53ebc223ed2e1746c4461fe9f8c3db7b03fe3e7196450759b00cb874a7281083917d2fd684bf9688656358efd24c2845b425a727 WHIRLPOOL 08cce5824621847f2466910bded3405aa396e2c59820aec6f956703df7d7472c42cf9776d13842ca3ba565a997d2ebd1ba467be0fb88ce7c6b2de9ac6c7c33c3 +MISC ChangeLog 3195 SHA256 49169b1d9b3c08c8e656ae7456564b9feb705463a1797891cc73aef62f35b897 SHA512 ef6cd6f8890ff316e3a0b0a9475782f615ad28644c3476ccbc65f2c1d5df7da1be487e53d9bfd71df1b04d194ed162660f3353a4b8c287b7ad30f04f627b7a9c WHIRLPOOL b4519d448526afa2b5f3f02a26fc9e42b7ff0b6712034cc204d143ab5665258c1a39265fe621e9b47ba62dc0849b16b23c5c23ee1c5cab33bf60e939ecebcc33 +MISC ChangeLog-2015 10013 SHA256 653d86aaa4ae41baaaca15216a113755b9c1c0ffb16569731d77b7d48ccb5126 SHA512 554bfdca45ef696489ed4bc47d3456af7389768f5a0b19ab7212230e3e1f95e6aa1998b8e81c102e106cc2713b61a0312621777da79557909e8f4d34655522cc WHIRLPOOL 2d57ad88ac1d4c3b8bc2ae4678df2cdb5ec0378ade5d6d24f3659704b110c04b3e65f13bc77b3c1562c2a415ea34651bd30107c0b097ec34162cf27c4f02554b +MISC metadata.xml 330 SHA256 90dd98dc28a6476bc41a4a3e4d1d583f109efdea00b0a288a866c1589f6bfc45 SHA512 505782103d2814ce34e9e6e7ad91cd466c3f6593e636f9e38eb70e5c89892c2231e24feb310ebd4a33af0d15cc0cc58bd083da6573f65a1604fdbc3dd9380889 WHIRLPOOL 1dbc76f7d2c18a5e3c007f146ee6940ad2f441f843308dae3372859fdad6ebd320e25c8c5c5133c7c1054f43604cbd17abf16dc4b4137e4607b82d4dffdf714f diff --git a/dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch b/dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch new file mode 100644 index 000000000000..dee216b029fb --- /dev/null +++ b/dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch @@ -0,0 +1,27 @@ +I'm not sure if it's a ghc feature or a bug. +Should happy emable that extension for -g option? + +The build error is Kind mismatch: + + monad002.g.hs:296:26: + Couldn't match kind ‘*’ with ‘#’ + When matching types + t0 :: * + Happy_GHC_Exts.Int# :: # + Relevant bindings include + cont :: t0 -> [Char] -> Int -> ParseResult a + (bound at monad002.g.hs:293:13) + In the first argument of ‘cont’, namely ‘8#’ + In the expression: cont 8# + In a case alternative: TokenLet -> cont 8# + +Slightly related bug: https://ghc.haskell.org/trac/ghc/ticket/8739 + +diff --git a/tests/monad002.ly b/tests/monad002.ly +index 35cc5b0..4c526ca 100644 +--- a/tests/monad002.ly ++++ b/tests/monad002.ly +@@ -5,2 +5,3 @@ Test for monadic Happy Parsers, Simon Marlow 1996. + > {-# OPTIONS_GHC -fglasgow-exts #-} ++> {-# LANGUAGE MonoLocalBinds #-} + > -- -fglasgow-exts required because P is a type synonym, and Happy uses it diff --git a/dev-haskell/happy/happy-1.19.4.ebuild b/dev-haskell/happy/happy-1.19.4.ebuild new file mode 100644 index 000000000000..8961425f8b2e --- /dev/null +++ b/dev-haskell/happy/happy-1.19.4.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.3.4.9999 + +CABAL_FEATURES="bin test-suite" +inherit eutils haskell-cabal autotools + +DESCRIPTION="Happy is a parser generator for Haskell" +HOMEPAGE="http://www.haskell.org/happy/" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86" +IUSE="doc" + +RDEPEND="" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + >=dev-haskell/mtl-1.0 + >=dev-lang/ghc-6.10.4 + doc? ( ~app-text/docbook-xml-dtd-4.2 + app-text/docbook-xsl-stylesheets ) +" + +src_prepare() { + for f in AttrGrammarParser Parser; do + # drop broken autogenerated + mv "dist/build/happy/happy-tmp/$f.hs" src/ || die + # drop depend on itself, otherwise cabal tries to regenerate it + rm "src/$f.ly" || die + done + use doc && cd doc && eautoconf +} + +src_configure() { + # '--with-happy=false' allows detecting circular + # depends even when 'happy' is installed in system + haskell-cabal_src_configure --with-happy=false + + if use doc; then + # does not like out-of-source builds + cd doc || die + econf + fi +} + +src_compile() { + haskell-cabal_src_compile + + if use doc; then + emake -C doc -j1 + fi +} + +src_install() { + haskell-cabal_src_install + if use doc; then + cd doc || die + dohtml -r happy/* + doman "${S}/doc/happy.1" + fi +} diff --git a/dev-haskell/happy/happy-1.19.5.ebuild b/dev-haskell/happy/happy-1.19.5.ebuild new file mode 100644 index 000000000000..5ba52024b7dc --- /dev/null +++ b/dev-haskell/happy/happy-1.19.5.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.3.4.9999 + +CABAL_FEATURES="bin test-suite" +inherit eutils haskell-cabal autotools + +DESCRIPTION="Happy is a parser generator for Haskell" +HOMEPAGE="http://www.haskell.org/happy/" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86" +IUSE="doc" + +RDEPEND="" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + >=dev-haskell/mtl-1.0 + >=dev-lang/ghc-6.10.4 + doc? ( ~app-text/docbook-xml-dtd-4.2 + app-text/docbook-xsl-stylesheets ) +" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.19.5-ghc-7.10.2.patch + + for f in AttrGrammarParser Parser; do + # drop broken autogenerated + mv "dist/build/happy/happy-tmp/$f.hs" src/ || die + # drop depend on itself, otherwise cabal tries to regenerate it + rm "src/$f.ly" || die + done + use doc && cd doc && eautoconf +} + +src_configure() { + # '--with-happy=false' allows detecting circular + # depends even when 'happy' is installed in system + haskell-cabal_src_configure --with-happy=false + + if use doc; then + # does not like out-of-source builds + cd doc || die + econf + fi +} + +src_compile() { + haskell-cabal_src_compile + + if use doc; then + emake -C doc -j1 + fi +} + +src_test() { + # workaround https://github.com/haskell/cabal/issues/2398 + emake -k -C tests all || die +} + +src_install() { + haskell-cabal_src_install + if use doc; then + cd doc || die + dohtml -r happy/* + doman "${S}/doc/happy.1" + fi +} diff --git a/dev-haskell/happy/metadata.xml b/dev-haskell/happy/metadata.xml new file mode 100644 index 000000000000..74ae0f3e98e6 --- /dev/null +++ b/dev-haskell/happy/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> + Happy is a parser generator for Haskell + </longdescription> +</pkgmetadata> |