diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/optparse-applicative |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/optparse-applicative')
8 files changed, 282 insertions, 0 deletions
diff --git a/dev-haskell/optparse-applicative/Manifest b/dev-haskell/optparse-applicative/Manifest new file mode 100644 index 000000000000..b58220eb857d --- /dev/null +++ b/dev-haskell/optparse-applicative/Manifest @@ -0,0 +1,15 @@ +DIST optparse-applicative-0.11.0.2.tar.gz 30425 SHA256 31c6923c01cfd6dce0cf83f3430c17d164169f0db6ff2de9b3b294926214255a SHA512 eb10a274074dacf2a481c964f8fcb125c1ea6be7f33388c938ad310b49d959484102caeb1849e0370292286b7603f68853cf23ded634bb09cd34871eaec74caf WHIRLPOOL 6197030c75db61d5166ff6ad163f52efc025f0a7c8b47a7a363d4dcf5444c4ac2b477dccc3ccc83c85f9e5571cbdf042915a4161a469716cacfd38a6a792748d +DIST optparse-applicative-0.13.0.0.tar.gz 36101 SHA256 cec6b1d94d347898a25446fb8a6643399d8429cf326f221e38a02d849b2b0cac SHA512 ef08f4b994703a35f7c50ba93017742188c612c99a6e69cf7329a42427e2862ec0b8498fa57dd1f64a225d3ed94c62815af211efead9e73adc32482e22e46ccb WHIRLPOOL 245206b9baf8ea9d73b2a07c3285435a347c71cc10af1a932f156976c6ca3a5fe4902f1a25dc2793567843412003c0f1a896a22993de3be84a2487f60c04fea7 +DIST optparse-applicative-0.5.2.1.tar.gz 24123 SHA256 1110b926d9c601f8bc24c3e57e08d3f957ad047a60324b11640df51a0a9a9570 SHA512 7246fc6b6c9ec1c9a7b4f4e8850d80fe0958b9c659b2f31c455738d09b70178bb71f164198871874414e1fdf0ecf38098fdbc65f838224a6f6235f2d000f3876 WHIRLPOOL 8935307fd69f50dbbd760df328a0ac9b4f6c2305b205cedaa3316da38bbb59c3d8f377bccdad25229c94ec24021806524ecf6c2c6ac0b9d32f3b07429a0f9245 +DIST optparse-applicative-0.7.0.2.tar.gz 26682 SHA256 9195b7b4719b57c1005a2b7c24b9d5f32fabde268fe06913640e7533041006df SHA512 94f583d7df97f2887cc4fea8d5b22261195c3f30bb9bf0aec2579d5b2d31583692835dc9df1273c544c3ef72343159ee90531450f7c498617a0595479efc5d0c WHIRLPOOL eb6a0dc6251dfebd50adeefd2b7e9e2e34b453f5ee230b5111b640ad2012985ce623b6e67df5361d629ebef226ce9cdd9c9c3fac55583a4d186e952c8ef10daa +DIST optparse-applicative-0.8.1.tar.gz 32055 SHA256 90f21ee33511f9d5e77d9b30c9043a0870affdbb54870806f83cb7287249c27f SHA512 bd7b8462d897439a77dffdc187dbf61e51937960e339c3bd5009b7479e84dd1ca1e40529c8ffd7d198d26542c23e38c45d91abe8e1b1d420090859f0f07574d6 WHIRLPOOL 13766316caa36361ed543dec4400dd11e804c7a71f09d9dbf303a8b354e4b507de119a88e82f4ecfbe7ed9cbdb72072ce5005bbbcbd2e23310820a8cb123d9c0 +DIST optparse-applicative-0.9.1.1.tar.gz 32757 SHA256 e6093c36f9b996f8431f588c1b95439fe151278e72a9236f51e2b5e4d340c8bb SHA512 616e144512e8628dbc88bc0ce6e47f4aa95a6d5e5fbc3b07aabaf4bedb104808bed7bb959bbb4d88aa6861b98dedbc4ac08924e220ef2cd3b3ebc42945871bdd WHIRLPOOL d4ea82cb2533f666206f7efad13e5eb22bd60ddbd3adb8c21478151e2a890cdeb2d4e73ea709612bea6ca95f3807c2339d781b045325b05b2f6e68d3a8ef53a3 +EBUILD optparse-applicative-0.11.0.2.ebuild 873 SHA256 28ea1a8f34fce8ab42f877d77a5c86142a05d0d15d89324d13bcfd8c06142eb7 SHA512 062e2031a3785156e06c49d27ed433f90c3d9685cd12b96273708bffe832efbb2e1f88d95e3387736a49612bbc8214f9a269be2eb059799ff4ddc96dc8c1df8e WHIRLPOOL 6f7e10ed926811e703e655530f29c30113fbe817c50323310607c41bc444956454a2e96a490d9680ad789f9ff2beb6872f72bfc27bae4cd5b9d698f9269ecc9c +EBUILD optparse-applicative-0.13.0.0.ebuild 1072 SHA256 1d110a8630a00268bdb9daf16cfd24cc8be15b0a0079bd9e65092c14c1c4d824 SHA512 a2d0b0491060ce63652b97aa7e940a4448cff0fa673d04aa702360d7da2e77980761600f0e848f20c7ad48aaac21e7f9ae7299c60460dd4b42d7487668580be9 WHIRLPOOL 7919e3008ae81b96b5a3d0b9e24b80ab11f16eaea94b62920fe48074d6d66ec2bab96a3ac734cb131c5f1a9be7c8429b7d055f3d3d1609a7f4467dc83524b4c9 +EBUILD optparse-applicative-0.5.2.1.ebuild 935 SHA256 469fbcae7888e7cdbe64f7ae1b90b9b8add735cf630e4b078ab934042cdff4a9 SHA512 2e392465b689d6ac4872c759cd554886219677da306c31c3051f64d5d1abc9e55851226a11e86adf7f022864c0d0b442b8734c6e4424fc8f70c6ad65d04bef84 WHIRLPOOL a5ae21b8600dc5017837176f393d75791a505a80fe8b596b7abfe7cf729468e2cc779bba8e9109287a048121ba79e4da1be55da5990692f190ab99d006d992c8 +EBUILD optparse-applicative-0.7.0.2.ebuild 984 SHA256 49c7e2d2209180cbf35ce3a936cfe97bbb5c5276520182e045b5f0cf21411a6e SHA512 ad7c701563bbe44077ee529d327c680712e375901725c67dd4ed78f177baa777e69a9b4d07e850cf9346a305e7c4f1ce7dd7c75379414074f062b528cde0e510 WHIRLPOOL 6a1e9bcc1b72f89ba2b08d23ad9d9d8ce2b0b9341665a58773fa30b5645352851935084503dbf406aafbd3cb773abd9408272e718a5bb874964ac0bd8bc504cf +EBUILD optparse-applicative-0.8.1-r1.ebuild 1326 SHA256 3ae65e5b71da1ff5a408bc8b80350797acb00034174f6d33a3f981d852076692 SHA512 0bb43517d44157a931430670928814132d9597c730af8056ad3de8e6ecf5ee112ae2cd6be34bdab5c2d775727f95d2a3e24f5a150f71f469b135dc1cf8e80cff WHIRLPOOL cf44fb16d40138c037ebaef02b2bec36d1b1feac527886e940e9b65afc8436ba9ff7147b8e57a66748db6bef0b1ae294116e4f0ea7eb7ee31f98f93e196c9145 +EBUILD optparse-applicative-0.9.1.1.ebuild 1325 SHA256 cc4edc664359b3031083c9e09d9587b9a251521c8024e2692dd8dcfbc8b8fb2f SHA512 d7f15c5784b130929c4ec02b4fa8ce8aaed972165bef36dc170818852b6670d4045a691256520922c58ed631f60941551f8587c7af834ea9c62d6a5c3740ef90 WHIRLPOOL d860959a9d48b71e7661758f72c67d5306a2e7c7458f0efc975037417a7dccfed7b942f65bbe76599464abdb337b7aa4d31ffad5dc56ac7764a8ad95a8064216 +MISC ChangeLog 3360 SHA256 30445f0e23ba580e6ca821c3171fdecdfcca09a97de61930d35163ecf9f591cc SHA512 b27f2f985486a024fa366c55c6d97dc7c14167ce12cefc7feff3d9b6ce256f21292f0caa35bc081992710a9baebf18c39e4678954f47bbce6b84dc56a04f788e WHIRLPOOL 006886c28fe846895cfec3a3691cb30253ee2f452b356206c5c71bee3ed1d30162583fd5c86612d7a48491e97995eb5042ff268b0d750be04cd0bff5a685500b +MISC ChangeLog-2015 1790 SHA256 af22b3c2018618203d77ed8c5cd2f99e5a7ede9aa9832b1ebfce362fea3e33dd SHA512 9d17d582c0e3b413f0f850eaa76fb532ea9e09ec481b6795a099caa632088343d41026e2fd588a2058212507cd4279794762daf9377b1bfadc9d99f54d3fe086 WHIRLPOOL 21d780f6aaaf81009beea826ae7d0c9f7a151b21cbcdef55ea7d4f54bdf20bb02ae222e0300828c19239f55a110a7e6d23c85bcb157d9ffa98d5df8aa4496f1d +MISC metadata.xml 2419 SHA256 38c8b0ac31b86b840581020e5eca062fb9bd5bba1e3dda3a235d3191ff7bb2e4 SHA512 2603f8c908033d5fa05907836fe97b178e8a0de4e4b316af4089b930dc69027e412ea53e47dca3a71ae794c5ff82628f30d14a50c0e705884c942d6274eb88a6 WHIRLPOOL b01f1061bd1493a94fffb871176ea8e53e7e4c5cb5f39f3818de9daa9092b3d986513b1a161e5fd64fd99e0aa5fa56644f92d334cc0688ab33dc883a53f7f5e2 diff --git a/dev-haskell/optparse-applicative/metadata.xml b/dev-haskell/optparse-applicative/metadata.xml new file mode 100644 index 000000000000..a9f0962e5dcf --- /dev/null +++ b/dev-haskell/optparse-applicative/metadata.xml @@ -0,0 +1,72 @@ +<?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> + Here is a simple example of an applicative option parser: + + @ + data Sample = Sample + &#x20; &#x7b; hello :: String + &#x20; , quiet :: Bool &#x7d; + + sample :: Parser Sample + sample = Sample + &#x20; \<$\> strOption + &#x20; ( long \"hello\" + &#x20; & metavar \"TARGET\" + &#x20; & help \"Target for the greeting\" ) + &#x20; \<*\> switch + &#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'). + + A parser can be used like this: + + @ + greet :: Sample -> IO () + greet (Sample h False) = putStrLn $ \"Hello, \" ++ h + greet _ = return () + + main :: IO () + main = execParser opts \>\>= greet + &#x20; where + &#x20; opts = info (helper \<*\> sample) + &#x20; ( fullDesc + &#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 + always fails). + + 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: + + >hello - a test for optparse-applicative + > + >Usage: hello --hello TARGET [--quiet] + > Print a greeting for TARGET + > + >Available options: + > -h,--help Show this help text + > --hello TARGET Target for the greeting + > --quiet Whether to be quiet + + 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> diff --git a/dev-haskell/optparse-applicative/optparse-applicative-0.11.0.2.ebuild b/dev-haskell/optparse-applicative/optparse-applicative-0.11.0.2.ebuild new file mode 100644 index 000000000000..6f726f121dfc --- /dev/null +++ b/dev-haskell/optparse-applicative/optparse-applicative-0.11.0.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.4.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Utilities and combinators for parsing command line options" +HOMEPAGE="https://github.com/pcapriotti/optparse-applicative" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86" +IUSE="" + +RDEPEND=">=dev-haskell/ansi-wl-pprint-0.6:=[profile?] <dev-haskell/ansi-wl-pprint-0.7:=[profile?] + >=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.5:=[profile?] + >=dev-haskell/transformers-compat-0.3:=[profile?] <dev-haskell/transformers-compat-0.5:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 +" diff --git a/dev-haskell/optparse-applicative/optparse-applicative-0.13.0.0.ebuild b/dev-haskell/optparse-applicative/optparse-applicative-0.13.0.0.ebuild new file mode 100644 index 000000000000..7e2d69cbf0a2 --- /dev/null +++ b/dev-haskell/optparse-applicative/optparse-applicative-0.13.0.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# ebuild generated by hackport 0.5.1.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Utilities and combinators for parsing command line options" +HOMEPAGE="https://github.com/pcapriotti/optparse-applicative" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="amd64 x86" +IUSE="" + +RESTRICT=test # missing files + +RDEPEND=">=dev-haskell/ansi-wl-pprint-0.6.6:=[profile?] <dev-haskell/ansi-wl-pprint-0.7:=[profile?] + >=dev-haskell/semigroups-0.10:=[profile?] <dev-haskell/semigroups-0.19:=[profile?] + >=dev-haskell/transformers-compat-0.3:=[profile?] <dev-haskell/transformers-compat-0.6:=[profile?] + >=dev-lang/ghc-7.8.2:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.18.1.3 + test? ( >=dev-haskell/quickcheck-2.8 ) +" + +src_prepare() { + default + + cabal_chdeps \ + 'QuickCheck == 2.8.*' 'QuickCheck >= 2.8' +} diff --git a/dev-haskell/optparse-applicative/optparse-applicative-0.5.2.1.ebuild b/dev-haskell/optparse-applicative/optparse-applicative-0.5.2.1.ebuild new file mode 100644 index 000000000000..713c5402fc75 --- /dev/null +++ b/dev-haskell/optparse-applicative/optparse-applicative-0.5.2.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.3.1.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Utilities and combinators for parsing command line options" +HOMEPAGE="https://github.com/pcapriotti/optparse-applicative" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/transformers-0.2:=[profile?] + <dev-haskell/transformers-0.4:=[profile?] + >=dev-lang/ghc-7.4.1:=" +DEPEND="${RDEPEND} + test? ( =dev-haskell/hunit-1.2* + >=dev-haskell/test-framework-0.6 + <dev-haskell/test-framework-0.9 + >=dev-haskell/test-framework-hunit-0.2 + <dev-haskell/test-framework-hunit-0.4 + =dev-haskell/test-framework-th-prime-0.0* + ) + >=dev-haskell/cabal-1.8" diff --git a/dev-haskell/optparse-applicative/optparse-applicative-0.7.0.2.ebuild b/dev-haskell/optparse-applicative/optparse-applicative-0.7.0.2.ebuild new file mode 100644 index 000000000000..16a746173bad --- /dev/null +++ b/dev-haskell/optparse-applicative/optparse-applicative-0.7.0.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.3.4.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Utilities and combinators for parsing command line options" +HOMEPAGE="https://github.com/pcapriotti/optparse-applicative" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86" +IUSE="" + +RDEPEND=">=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.4:=[profile?] + >=dev-lang/ghc-6.10.4:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.3 + >=dev-haskell/test-framework-0.6 <dev-haskell/test-framework-0.9 + >=dev-haskell/test-framework-hunit-0.2 <dev-haskell/test-framework-hunit-0.4 + >=dev-haskell/test-framework-th-prime-0.0 <dev-haskell/test-framework-th-prime-0.1 ) +" diff --git a/dev-haskell/optparse-applicative/optparse-applicative-0.8.1-r1.ebuild b/dev-haskell/optparse-applicative/optparse-applicative-0.8.1-r1.ebuild new file mode 100644 index 000000000000..9deb5ed53634 --- /dev/null +++ b/dev-haskell/optparse-applicative/optparse-applicative-0.8.1-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Utilities and combinators for parsing command line options" +HOMEPAGE="https://github.com/pcapriotti/optparse-applicative" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/ansi-wl-pprint-0.6:=[profile?] <dev-haskell/ansi-wl-pprint-0.7:=[profile?] + >=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.5:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.3 + >=dev-haskell/quickcheck-2.6 <dev-haskell/quickcheck-2.8 + >=dev-haskell/test-framework-0.6 <dev-haskell/test-framework-0.9 + >=dev-haskell/test-framework-hunit-0.2 <dev-haskell/test-framework-hunit-0.4 + >=dev-haskell/test-framework-quickcheck2-0.3 <dev-haskell/test-framework-quickcheck2-0.4 + >=dev-haskell/test-framework-th-prime-0.0 <dev-haskell/test-framework-th-prime-0.1 ) +" + +src_prepare() { + cabal_chdeps \ + 'transformers >= 0.2 && < 0.4' \ + 'transformers >= 0.2 && < 0.5' +} diff --git a/dev-haskell/optparse-applicative/optparse-applicative-0.9.1.1.ebuild b/dev-haskell/optparse-applicative/optparse-applicative-0.9.1.1.ebuild new file mode 100644 index 000000000000..218b1ca75010 --- /dev/null +++ b/dev-haskell/optparse-applicative/optparse-applicative-0.9.1.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.3.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Utilities and combinators for parsing command line options" +HOMEPAGE="https://github.com/pcapriotti/optparse-applicative" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/ansi-wl-pprint-0.6:=[profile?] <dev-haskell/ansi-wl-pprint-0.7:=[profile?] + >=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.5:=[profile?] + >=dev-haskell/transformers-compat-0.3:=[profile?] <dev-haskell/transformers-compat-0.4:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.3 + >=dev-haskell/quickcheck-2.6 <dev-haskell/quickcheck-2.8 + >=dev-haskell/test-framework-0.6 <dev-haskell/test-framework-0.9 + >=dev-haskell/test-framework-hunit-0.2 <dev-haskell/test-framework-hunit-0.4 + >=dev-haskell/test-framework-quickcheck2-0.3 <dev-haskell/test-framework-quickcheck2-0.4 + >=dev-haskell/test-framework-th-prime-0.0 <dev-haskell/test-framework-th-prime-0.1 ) +" |