* [gentoo-commits] gentoo-x86 commit in dev-haskell/options: metadata.xml options-1.2-r1.ebuild Manifest ChangeLog
@ 2014-07-02 11:57 Mark Wright (gienah)
0 siblings, 0 replies; only message in thread
From: Mark Wright (gienah) @ 2014-07-02 11:57 UTC (permalink / raw
To: gentoo-commits
gienah 14/07/02 11:57:55
Added: metadata.xml options-1.2-r1.ebuild Manifest
ChangeLog
Log:
Add options
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
Revision Changes Path
1.1 dev-haskell/options/metadata.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/options/metadata.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/options/metadata.xml?rev=1.1&content-type=text/plain
Index: metadata.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>haskell</herd>
<maintainer>
<email>haskell@gentoo.org</email>
</maintainer>
<longdescription>
The @options@ package lets library and application developers easily work
with command-line options.
The following example is a full program that can accept two options,
@--message@ and @--quiet@:
@
import Control.Applicative
import Options
data MainOptions = MainOptions
&#x20; &#x7b; optMessage :: String
&#x20; , optQuiet :: Bool
&#x20; &#x7d;
instance 'Options' MainOptions where
&#x20; defineOptions = pure MainOptions
&#x20; \<*\> simpleOption \"message\" \"Hello world!\"
&#x20; \"A message to show the user.\"
&#x20; \<*\> simpleOption \"quiet\" False
&#x20; \"Whether to be quiet.\"
main :: IO ()
main = runCommand $ \\opts args -> do
&#x20; if optQuiet opts
&#x20; then return ()
&#x20; else putStrLn (optMessage opts)
@
>$ ./hello
>Hello world!
>$ ./hello --message='ciao mondo'
>ciao mondo
>$ ./hello --quiet
>$
In addition, this library will automatically create documentation options
such as @--help@ and @--help-all@:
>$ ./hello --help
>Help Options:
> -h, --help
> Show option summary.
> --help-all
> Show all help options.
>
>Application Options:
> --message :: text
> A message to show the user.
> default: "Hello world!"
> --quiet :: bool
> Whether to be quiet.
> default: false
</longdescription>
</pkgmetadata>
1.1 dev-haskell/options/options-1.2-r1.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/options/options-1.2-r1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/options/options-1.2-r1.ebuild?rev=1.1&content-type=text/plain
Index: options-1.2-r1.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/options/options-1.2-r1.ebuild,v 1.1 2014/07/02 11:57:55 gienah Exp $
EAPI=5
# ebuild generated by hackport 0.4.9999
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal
DESCRIPTION="A powerful and easy-to-use command-line option parser."
HOMEPAGE="https://john-millikin.com/software/haskell-options/"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-haskell/monads-tf-0.1:=[profile?]
>=dev-haskell/transformers-0.2:=[profile?]
>=dev-lang/ghc-7.4.1:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.8
test? ( >=dev-haskell/chell-0.3.1 <dev-haskell/chell-0.5
>=dev-haskell/chell-quickcheck-0.2 <dev-haskell/chell-quickcheck-0.3
>=dev-haskell/monads-tf-0.1
>=dev-haskell/transformers-0.2 )
"
src_prepare() {
cabal_chdeps \
'chell >= 0.3.1 && < 0.4' 'chell >= 0.3.1 && < 0.5'
}
1.1 dev-haskell/options/Manifest
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/options/Manifest?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/options/Manifest?rev=1.1&content-type=text/plain
Index: Manifest
===================================================================
DIST options-1.2.tar.gz 25214 SHA256 7d9353b93ff22a9a20c088a6895d08b02266e1a61e5c7192711c14881a9f1993 SHA512 9c7cfcfbf3e1e487bc80a3ea68ba484b22b7adecf65af5e5f3d3cd9ebcabf952286cf1b29d6e1ef6654eed49aeb70a2936bc977f8c3665bd7ab59340cf2f2f18 WHIRLPOOL 1ef4d4c61464379d35cc8445c331387247d3dd67122b0d8a7b9030a70c67c3e44e41272aef9fa6b792addb2d08dde55dd079a581b4f1f5ffd5f63ffe3054db53
EBUILD options-1.2-r1.ebuild 967 SHA256 802792d13c45b5cf98d7f46ce6c23c28718eba1ceb019d466810289d05f1fd5b SHA512 e5871cec1142f09df1d93e8885e49bd7a7676e329a81eed25e5abd53596f064c785243483ce5830f8250534fec6b6e7b0938392c7fdd823d55a65dc3da3d6b21 WHIRLPOOL 145ed80cf663399aad0e0b4d000c5ff931c110b2398603ca8dc62882371683dd5825bd65ec757e3bdd9d327113a496b252467d8ab8431801959e323e9958a7cc
MISC metadata.xml 1856 SHA256 7da0e1c426a8517309af6b9fd37f6ce07b2d7aebee83d9629b2bf45f11848595 SHA512 4c53f0bb042f05a89fd43f0af18947d615cf7239c672881dac8a281f7b7fe3c6e20e39b9f4f013ea3f82fddcb452372668abec6abc3a3a3bc14824556c568a83 WHIRLPOOL 45c9d8e8ff91e7e2ad488ed1956ac280b382ab642ab6f609a87dcca8ff18df69722fbc6a228af3fc8574fe69b6e42911a0eb5f71fd5a743869e82dd1ef43cd20
1.1 dev-haskell/options/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/options/ChangeLog?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/options/ChangeLog?rev=1.1&content-type=text/plain
Index: ChangeLog
===================================================================
# ChangeLog for dev-haskell/options
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/options/ChangeLog,v 1.1 2014/07/02 11:57:55 gienah Exp $
*options-1.2-r1 (02 Jul 2014)
02 Jul 2014; Mark Wright <gienah@gentoo.org> +metadata.xml,
+options-1.2-r1.ebuild:
Add options
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-02 11:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-02 11:57 [gentoo-commits] gentoo-x86 commit in dev-haskell/options: metadata.xml options-1.2-r1.ebuild Manifest ChangeLog Mark Wright (gienah)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox