dev-haskell/cmdargs: add 0.10.22

Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
hololeap 2023-10-02 23:06:37 -06:00 committed by Sam James
parent 86e0866134
commit 3b19ec80ff
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 40 additions and 21 deletions

View File

@ -1 +1,2 @@
DIST cmdargs-0.10.20.tar.gz 64550 BLAKE2B 08511df092c2a7010af94bc8d9b54b29c0e76c33be06a9521eccc85092b57a45ae9f9d22b0f8e81266073c81185b66266d1f2321c327ae730c6ccebea7f6d6cf SHA512 b9e270aa5dabd84eaaa47b95a450ef5b5f43cd19646f2a407579f855857d396e5ab9ca0038e1e876849a596ecb8cdc9964c45970825a0a95021d69b23699da79
DIST cmdargs-0.10.22.tar.gz 65154 BLAKE2B a6f05c4a186dc4dbb9de3c754f9100138d3954b1537b1ecb81e2fec2c6bd293dd381a2a666dae0bcbbc631e9ab95d8a65d85d68d3e2c80bb2d6ad87baf9906b1 SHA512 571d9584769fdb5bb77a57607c2f432b365604a2ca2e9b5c044c319499004f7fcb12f2f6e61091a245f1bf6a5d321d38ade1a54d5bc86831136fa85b9b898faa

View File

@ -0,0 +1,36 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# ebuild generated by hackport 0.8.4.0.9999
#hackport: flags: testprog:examples
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="Command line argument processing"
HOMEPAGE="https://github.com/ndmitchell/cmdargs#readme"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
IUSE="examples +quotation"
REQUIRED_USE="examples? ( quotation )"
CABAL_CHDEPS=(
'executable cmdargs' 'executable cmdargs-demo'
)
RDEPEND="
>=dev-lang/ghc-8.8.1:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-3.0.0.0
"
src_configure() {
haskell-cabal_src_configure \
$(cabal_flag quotation quotation) \
$(cabal_flag examples testprog)
}

View File

@ -5,31 +5,13 @@
<email>haskell@gentoo.org</email>
<name>Gentoo Haskell</name>
</maintainer>
<longdescription>
This library provides an easy way to define command line parsers. Most users
will want to use the "System.Console.CmdArgs.Implicit" module, whose
documentation contains an example.
* "System.Console.CmdArgs.Explicit" provides a way to write command line
parsers for both single mode programs (most programs) and multiple
mode programs (e.g. darcs or cabal). Parsers are defined by constructing
a data structure.
* "System.Console.CmdArgs.Implicit" provides a way to concisely define
command line parsers, up to three times shorter than getopt. These parsers
are translated into the Explicit data type.
* "System.Console.CmdArgs.GetOpt" provides a wrapper allowing compatiblity
with existing getopt parsers, mapping to the Explicit data type.
For a general reference on what command line flags are commonly used,
see &lt;http://www.faqs.org/docs/artu/ch10s05.html&gt;.
</longdescription>
<use>
<flag name="examples">Build the cmdargs-demo program</flag>
<flag name="testprog">Build the test program</flag>
<flag name="quotation">Build quote module</flag>
<flag name="quotation">Build the Quote module</flag>
</use>
<upstream>
<remote-id type="hackage">cmdargs</remote-id>
<remote-id type="github">ndmitchell/cmdargs</remote-id>
</upstream>
</pkgmetadata>