jlec 15/06/06 15:01:56 Modified: metadata.xml ChangeLog Log: Add github to remote-id in metadata.xml (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key E9402A79B03529A2!)
Revision Changes Path 1.3 dev-haskell/optparse-applicative/metadata.xml file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/optparse-applicative/metadata.xml?rev=1.3&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/optparse-applicative/metadata.xml?rev=1.3&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/optparse-applicative/metadata.xml?r1=1.2&r2=1.3 Index: metadata.xml =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-haskell/optparse-applicative/metadata.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- metadata.xml 25 Jul 2014 08:58:43 -0000 1.2 +++ metadata.xml 6 Jun 2015 15:01:55 -0000 1.3 @@ -13,23 +13,23 @@ sample :: Parser Sample sample = Sample &#x20; \<$\> strOption - &#x20; ( long \"hello\" - &#x20; & metavar \"TARGET\" - &#x20; & help \"Target for the greeting\" ) + &#x20; ( long \"hello\" + &#x20; & metavar \"TARGET\" + &#x20; & help \"Target for the greeting\" ) &#x20; \<*\> switch - &#x20; ( long \"quiet\" - &#x20; & help \"Whether to be quiet\" ) + &#x20; ( long \"quiet\" + &#x20; & help \"Whether to be quiet\" ) @ The parser is built using applicative style starting from a set of basic - combinators. In this example, @hello@ is defined as an 'option' with a - @String@ argument, while @quiet@ is a boolean 'flag' (called 'switch'). + combinators. In this example, @hello@ is defined as an 'option' with a + @String@ argument, while @quiet@ is a boolean 'flag' (called 'switch'). A parser can be used like this: @ greet :: Sample -> IO () - greet (Sample h False) = putStrLn $ \"Hello, \" ++ h + greet (Sample h False) = putStrLn $ \"Hello, \" ++ h greet _ = return () main :: IO () @@ -37,16 +37,16 @@ &#x20; where &#x20; opts = info (helper \<*\> sample) &#x20; ( fullDesc - &#x20; & progDesc \"Print a greeting for TARGET\" - &#x20; & header \"hello - a test for optparse-applicative\" ) + &#x20; & progDesc \"Print a greeting for TARGET\" + &#x20; & header \"hello - a test for optparse-applicative\" ) @ The @greet@ function is the entry point of the program, while @opts@ is a complete description of the program, used when generating a help text. The - 'helper' combinator takes any parser, and adds a @help@ option to it (which + 'helper' combinator takes any parser, and adds a @help@ option to it (which always fails). - The @hello@ option in this example is mandatory (since it doesn't have a + The @hello@ option in this example is mandatory (since it doesn't have a default value), so running the program without any argument will display a help text: @@ -63,4 +63,7 @@ containing a short usage summary, and a detailed list of options with descriptions. </longdescription> + <upstream> + <remote-id type="github">pcapriotti/optparse-applicative</remote-id> + </upstream> </pkgmetadata> 1.9 dev-haskell/optparse-applicative/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/optparse-applicative/ChangeLog?rev=1.9&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/optparse-applicative/ChangeLog?rev=1.9&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/optparse-applicative/ChangeLog?r1=1.8&r2=1.9 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-haskell/optparse-applicative/ChangeLog,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- ChangeLog 3 Apr 2015 12:54:12 -0000 1.8 +++ ChangeLog 6 Jun 2015 15:01:55 -0000 1.9 @@ -1,6 +1,9 @@ # ChangeLog for dev-haskell/optparse-applicative # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/optparse-applicative/ChangeLog,v 1.8 2015/04/03 12:54:12 gienah Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/optparse-applicative/ChangeLog,v 1.9 2015/06/06 15:01:55 jlec Exp $ + + 06 Jun 2015; Justin Lecher <[email protected]> metadata.xml: + Add github to remote-id in metadata.xml *optparse-applicative-0.11.0.2 (03 Apr 2015)
