summaryrefslogtreecommitdiff
path: root/dev-haskell/cmdlib
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/cmdlib')
-rw-r--r--dev-haskell/cmdlib/Manifest8
-rw-r--r--dev-haskell/cmdlib/cmdlib-0.3.5-r1.ebuild34
-rw-r--r--dev-haskell/cmdlib/cmdlib-0.3.6.ebuild35
-rw-r--r--dev-haskell/cmdlib/files/cmdlib-0.3.4-ghc-6.12.patch16
-rw-r--r--dev-haskell/cmdlib/metadata.xml31
5 files changed, 124 insertions, 0 deletions
diff --git a/dev-haskell/cmdlib/Manifest b/dev-haskell/cmdlib/Manifest
new file mode 100644
index 000000000000..2c5994e612d3
--- /dev/null
+++ b/dev-haskell/cmdlib/Manifest
@@ -0,0 +1,8 @@
+AUX cmdlib-0.3.4-ghc-6.12.patch 641 SHA256 17eb97db971d2e144b7b09751172014b02263ee80271ba380303b45a59aa544a SHA512 ce3ded2a199342a7594c9e0708805757fd3275820d91c119088342d05323324edf1d517f20e83d66fa4706d9f4f3ac8bd837f2c108484e05629aba43e224af6c WHIRLPOOL 681ef499076aaedf9b952ae5b2946f6b8fa14b16f39bf61b64aefdba05bb0dd0058197aa16aaf8340f36f1b02c33f05d6d2ac434a172d9aee18ad11dfeead289
+DIST cmdlib-0.3.5.tar.gz 22881 SHA256 b4f9d4e1d81a8776a6658e2b855b126c275f1e4c26d592d4dc9b134333712808 SHA512 29ca53ddde33d3154b57d56d80eed1e511476ffeb4e4b3722c003770d85d2c4815dccde9d25bc2c86dacad66af6ce6b924c2e97106945a9d9c8ed33fc2424d67 WHIRLPOOL 4c129f0d400f6654a2837380425061f36fd57ddeb73590f6ebcdfbfcfa014efe003682d23a020df60d66dcfe3a9a75bde11fbfa0d806e6fb59f097519b4f3351
+DIST cmdlib-0.3.6.tar.gz 22971 SHA256 5643d219c371f903c3f877b5955de4ca99a723bc96165f4f629d3e3dbc3fb357 SHA512 9d67e931c9caaaaf833215f2561d8ca6aeddd02c64b79343974d0a4d7f1dc618a7af4327ebf50d4071b871b1fd97edc3b5db5bbc8b3334352a20276733602024 WHIRLPOOL 8358c9ad496b48e8560d72cde4525fc4139cb5f2155a7d1a33241e3ad0de9a5093d24bb084cd14b11f78e423b393b13a30046b7df7a2669849fd19d36e5f8164
+EBUILD cmdlib-0.3.5-r1.ebuild 873 SHA256 6167224246e170b99fdb5b9187211dd4eb8c4d1b5b363acbd39540083c08fd27 SHA512 1f84b9c89f1042eff8e21e58a3e6e092f33eb85dab06c1763da5f62cbf325ca49f9ef6a6b14d9de2ca92bde8c19c72dc31ecb0b678458959dd590c537c35425c WHIRLPOOL 775d1848ff72f9b98de14ace3bfb58cbdb92a7973b46e3ddc6be00148d7098ca61a81ad1698f6b78bc957e46dc2aa388dfd6d1ce53ec03922a62031154f949bf
+EBUILD cmdlib-0.3.6.ebuild 847 SHA256 512904b8f7b0c57369b434ae1b758c1ac8c1f3e7e284a014586215943e4498a5 SHA512 eea8a5124215e47abfb715b6b3870ca6aa5fbecd0360afa9a08bc6d2107376d85d444a1fe94804a992bf0c91d53070363e013dfefe403f24787b0307d15512f3 WHIRLPOOL 5bb2638b2c7c014574444066996850c0a335fdb1cadb93c57924f6bcc0498a019ac23211455453bc48165cd1a61529482fb9d839ee38d05acd7319834db98109
+MISC ChangeLog 3230 SHA256 935d8d128264160754f859684f5d37d9a573f46d5bae19bc7d0b4cb0f27c627a SHA512 2d8d65507b7ac9888228a197afb05667eda304768b79d46901e4ebb4ecb16480caa4a4f3459458b542bb48f607aa99d84caee0f769335cc644e13630e808cc97 WHIRLPOOL 7d7d0756d7ecc8cc3d40e21e3797f13bfe3cc3903cff88a51c97c5463a80c0a8b28d4f5f9d29f23373d4d80989496f53465672030f313888d483f3f5ccde39a0
+MISC ChangeLog-2015 2497 SHA256 8af40e7617335e475836ed5a8dff51cb195f29b2027e9a802adf312869a9bf4d SHA512 862f2a28f586c86bb709ecf72d5e208b975607aa84fb2db6f17dab8ba80deeda2ef5b06f8bb9c76e439884159f033d772c97e4f2ded4b707c651a68ccac5f4d7 WHIRLPOOL 8949bb829545e8a199269024cdfef392ebd01f8b27f78d3239f7ff42643e978c7f795477b66ea3d6af1bad7b3ddcce8a209f5229568e3fc6ba3de29f2d41bf28
+MISC metadata.xml 1288 SHA256 0295f638c93971890c0bc1b0b67bf02d7a326ca8c225bb05e0eb93548921f79c SHA512 7781bc2e5d27cd7ee98c7462301a28c532e6ad38c20f62bc38cc8cfde903f94c5b8f371727c9a01f1f1d183b9dfe1e17e16745bfca5bfc5087570224129cb0c1 WHIRLPOOL 05a08ae0c9e31f507c9ff2e5a73cc42c28f4146c3c9ab44c601e650ac05950e2ec6a0ed13aa534234758ae7b28903990aa78d49d15abbae2fa3fe25d85bd6381
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 @@
+<?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>
+ A commandline parsing library, based on getopt. Comes with a
+ powerful attribute system. Supports complex interfaces with many
+ options and commands, with option &amp; 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 &amp; argument parsing. Cmdlib may
+ also be more extendable due to typeclass design, and can use
+ user-supplied types for option arguments.
+
+ Cmdargs &gt;= 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.
+ </longdescription>
+</pkgmetadata>