From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-haskell/cmdlib/Manifest | 6 ++++ dev-haskell/cmdlib/cmdlib-0.3.5-r1.ebuild | 34 +++++++++++++++++++++ dev-haskell/cmdlib/cmdlib-0.3.6.ebuild | 35 ++++++++++++++++++++++ .../cmdlib/files/cmdlib-0.3.4-ghc-6.12.patch | 16 ++++++++++ dev-haskell/cmdlib/metadata.xml | 31 +++++++++++++++++++ 5 files changed, 122 insertions(+) create mode 100644 dev-haskell/cmdlib/Manifest create mode 100644 dev-haskell/cmdlib/cmdlib-0.3.5-r1.ebuild create mode 100644 dev-haskell/cmdlib/cmdlib-0.3.6.ebuild create mode 100644 dev-haskell/cmdlib/files/cmdlib-0.3.4-ghc-6.12.patch create mode 100644 dev-haskell/cmdlib/metadata.xml (limited to 'dev-haskell/cmdlib') diff --git a/dev-haskell/cmdlib/Manifest b/dev-haskell/cmdlib/Manifest new file mode 100644 index 000000000000..d2286d7db21b --- /dev/null +++ b/dev-haskell/cmdlib/Manifest @@ -0,0 +1,6 @@ +AUX cmdlib-0.3.4-ghc-6.12.patch 641 BLAKE2B d7baed3baa617ed771b4494d6a7eb52b51fcf7c5b93581daa13d5c9c71c626193b8db9931d85158ebac2c4cdb9b6f59f0fb642b42755d687b23aa43c9fc7644e SHA512 ce3ded2a199342a7594c9e0708805757fd3275820d91c119088342d05323324edf1d517f20e83d66fa4706d9f4f3ac8bd837f2c108484e05629aba43e224af6c +DIST cmdlib-0.3.5.tar.gz 22881 BLAKE2B 867e15e7b32a76f81b01c69ee60af74c8b5752d680693a154e1005167155b2ac501d4c0d1d476295d95c716dbe49f39d2d4f21c1d3f5a64e930adf6c31869289 SHA512 29ca53ddde33d3154b57d56d80eed1e511476ffeb4e4b3722c003770d85d2c4815dccde9d25bc2c86dacad66af6ce6b924c2e97106945a9d9c8ed33fc2424d67 +DIST cmdlib-0.3.6.tar.gz 22971 BLAKE2B 5feb462ee53cf3d5978fdf9b10cec0cabd3522e473e3c06d458a55de1bbc95ce687b4796b974ce9b26b0febd8ef4578093cb498c6bd40bd5dec82bbcfbc446fa SHA512 9d67e931c9caaaaf833215f2561d8ca6aeddd02c64b79343974d0a4d7f1dc618a7af4327ebf50d4071b871b1fd97edc3b5db5bbc8b3334352a20276733602024 +EBUILD cmdlib-0.3.5-r1.ebuild 873 BLAKE2B 48d4160eb4414a0a1e308cb4f367a5eb98daf80c82b1c0bd6723f69a52716220c7aea872c64900d5e8c5831c81d4d40c93134e6bce94cd63922780f18c5291ce SHA512 1f84b9c89f1042eff8e21e58a3e6e092f33eb85dab06c1763da5f62cbf325ca49f9ef6a6b14d9de2ca92bde8c19c72dc31ecb0b678458959dd590c537c35425c +EBUILD cmdlib-0.3.6.ebuild 847 BLAKE2B 793c2643580db73ddb349180caa9e3f31f3636993b96e2c63262f8ce74d64a557ae1084c2d40a81f34f587569b401fc1d056537612de7b847035a14b700c770d SHA512 eea8a5124215e47abfb715b6b3870ca6aa5fbecd0360afa9a08bc6d2107376d85d444a1fe94804a992bf0c91d53070363e013dfefe403f24787b0307d15512f3 +MISC metadata.xml 1288 BLAKE2B 1b7bd06c3a112848cad704b7930d6830bf1c79de3d1dc497f534e76750fc67d5def5736f96b21f6a587c8e6155e3687738c85024b252a57bb1e6286b539b759d SHA512 7781bc2e5d27cd7ee98c7462301a28c532e6ad38c20f62bc38cc8cfde903f94c5b8f371727c9a01f1f1d183b9dfe1e17e16745bfca5bfc5087570224129cb0c1 diff --git a/dev-haskell/cmdlib/cmdlib-0.3.5-r1.ebuild b/dev-haskell/cmdlib/cmdlib-0.3.5-r1.ebuild new file mode 100644 index 000000000000..0a4bb34dd6f2 --- /dev/null +++ b/dev-haskell/cmdlib/cmdlib-0.3.5-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.3.2.9999 + +CABAL_FEATURES="bin lib profile haddock hoogle hscolour" +inherit base haskell-cabal + +DESCRIPTION="a library for command line parsing & online help" +HOMEPAGE="http://hackage.haskell.org/package/cmdlib" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86" +IUSE="" + +RDEPEND=">=dev-haskell/mtl-2:=[profile?] + >=dev-haskell/transformers-0.2.2:=[profile?] + dev-haskell/split:=[profile?] + dev-haskell/syb:=[profile?] + >=dev-lang/ghc-6.10.4:=" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6" + +PATCHES=("${FILESDIR}/${PN}-0.3.4-ghc-6.12.patch") + +src_configure() { + haskell-cabal_src_configure \ + --flag=mtl2 \ + --flag=-test +} diff --git a/dev-haskell/cmdlib/cmdlib-0.3.6.ebuild b/dev-haskell/cmdlib/cmdlib-0.3.6.ebuild new file mode 100644 index 000000000000..179c2bceb912 --- /dev/null +++ b/dev-haskell/cmdlib/cmdlib-0.3.6.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.5.9999 +#hackport: flags: -test,+mtl2 + +CABAL_FEATURES="bin lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="a library for command line parsing & online help" +HOMEPAGE="http://hackage.haskell.org/package/cmdlib" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86" +IUSE="" + +RDEPEND=">=dev-haskell/mtl-2:=[profile?] + dev-haskell/split:=[profile?] + dev-haskell/syb:=[profile?] + >=dev-haskell/transformers-0.2.2:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6 +" + +src_configure() { + haskell-cabal_src_configure \ + --flag=mtl2 \ + --flag=-test +} diff --git a/dev-haskell/cmdlib/files/cmdlib-0.3.4-ghc-6.12.patch b/dev-haskell/cmdlib/files/cmdlib-0.3.4-ghc-6.12.patch new file mode 100644 index 000000000000..85a19d9aff02 --- /dev/null +++ b/dev-haskell/cmdlib/files/cmdlib-0.3.4-ghc-6.12.patch @@ -0,0 +1,16 @@ +--- cmdlib-0.3.4-orig/System/Console/CmdLib/Command.hs 2011-10-07 07:19:48.000000000 +1100 ++++ cmdlib-0.3.4/System/Console/CmdLib/Command.hs 2012-01-06 20:49:59.668959773 +1100 +@@ -225,6 +225,13 @@ + commandGroup :: (Commands a) => String -> a -> [CommandWrap] + commandGroup s l = [CommandGroup s (toCommands l)] + ++#if !MIN_VERSION_mtl(2,0,0) ++instance Monad (Either e) where ++ return = Right ++ Left l >>= _ = Left l ++ Right r >>= k = k r ++#endif ++ + -- TODO: disambiguation, hidden commands (aliases) + findCommand :: String -> [CommandWrap] -> [CommandWrap] + findCommand key list = case accum list of Left x -> [x] diff --git a/dev-haskell/cmdlib/metadata.xml b/dev-haskell/cmdlib/metadata.xml new file mode 100644 index 000000000000..c97e547df9f1 --- /dev/null +++ b/dev-haskell/cmdlib/metadata.xml @@ -0,0 +1,31 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + A commandline parsing library, based on getopt. Comes with a + powerful attribute system. Supports complex interfaces with many + options and commands, with option & command grouping, with simple + and convenient API. Even though quite powerful, it strives to keep + simple things simple. The library uses "System.Console.GetOpt" as + its backend. + + In comparison to the other commandline handling libraries: + + Compared to cmdargs, cmdlib has a pure attribute system and is + based on GetOpt for help formatting & argument parsing. Cmdlib may + also be more extendable due to typeclass design, and can use + user-supplied types for option arguments. + + Cmdargs >= 0.4 can optionally use a pure attribute system, + although this is clearly an add-on and the API is a second-class + citizen in relation to the impure version. + + GetOpt and parseargs both require explicit flag representation, so + they live a level below cmdlib. GetOpt is in fact used as a + backend by cmdlib. + + -- cgit v1.2.3