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/readargs |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/readargs')
-rw-r--r-- | dev-haskell/readargs/Manifest | 7 | ||||
-rw-r--r-- | dev-haskell/readargs/metadata.xml | 74 | ||||
-rw-r--r-- | dev-haskell/readargs/readargs-1.2.2.ebuild | 37 | ||||
-rw-r--r-- | dev-haskell/readargs/readargs-1.2.3.ebuild | 32 |
4 files changed, 150 insertions, 0 deletions
diff --git a/dev-haskell/readargs/Manifest b/dev-haskell/readargs/Manifest new file mode 100644 index 000000000000..cd8dbe42cd64 --- /dev/null +++ b/dev-haskell/readargs/Manifest @@ -0,0 +1,7 @@ +DIST ReadArgs-1.2.2.tar.gz 5102 SHA256 47a1a21621a45a960f516393c1e7c5d33a7d840db0f7eff20d43e6fc7fc9deec SHA512 d6a50b4f3b97932f2edb67eb5d2af01f057b17f991f499c01c5005738cf96a55dc08453250e61a1dbbebad9c0a75c53e1caf0fbce00da5eb6c00e214595c331b WHIRLPOOL 41c3e4288ae0c46b646be991ef3c8b99eea71765006d8f0f85e3b40bdd27224c23401da38041605a39611accbd2a9c12c8c2d2872ad0e08c4d3a36d1b8dd41d6 +DIST ReadArgs-1.2.3.tar.gz 5100 SHA256 9f4b2a9dfa9f0d851f79853a56ffde3b35e218d5f2bf8354c91a1344a1251a69 SHA512 6fd78b26c6c0d7d2f40f1b4eef248eb55d8dc91668b578b2cf88132a364dd7741f6f4d389aeb0c80bdca7cb5dfc1524228113495a2ea3595b888eb27fb8d2dff WHIRLPOOL f88ee85669ea669160e42ccac3514a3c7ebf602fd232f8b7091443907fd1698ac335d36d284fc3744ca2fcd003e842bd8a919475ee59b90a3375a790414f607b +EBUILD readargs-1.2.2.ebuild 908 SHA256 6ac46249be9c2103f5e39b5117b7ba496bab0eeb403f5604bfcf1e774095df63 SHA512 1c15e342491b6670e976b2152986cd638bd59f6a68af6fb7398ad4812baa41128fa6f7884aeaf507c83c44b7ab8002901206b6098e253a542ffcd16e59f96d67 WHIRLPOOL 65b23fae962d95e07d6474a6928ebb8efe8e6f1091f6f0316688c264630aef88ce35b0dd7977ade93427e28241846ca1e6c53328837e2d1f2b4858cbdc6477af +EBUILD readargs-1.2.3.ebuild 849 SHA256 bd660db6ff1779a93976177ce07ac07a91eebc461c4591a79fa16cfc35a2185a SHA512 ac8c42f71fdf95a384d1f04ad77830f746510d89fefeaf2c106d66c6abcfd34adf752154845ee680cc3bd634df03e806c4029327244511fc505916617503d0be WHIRLPOOL c2cc4cb3c1bae7ee60b31f71764c826bdec8eed1e788e0519e45e33ecd666c459c484608cb5e9c1295bf05c567fddf61c219ad8d402c7e4f9d229983f6bbaa83 +MISC ChangeLog 2781 SHA256 0358844caeb72bb603c42022718c0a255c8758b194e9cf9aade92692680f6a37 SHA512 1cd658d08258e3b862f2c8f6f693ee4ea3bbb982899d5a1d7e51514db63b906b66564bc07db466422ac05d814a257d6a55437e425c6e66b530c98504355b84ca WHIRLPOOL a16e91459c2bd955e8bc1a9e87029b19ab4b5e77f1e88b708d7a3177207a417f41f1624b07571484cf761fb450d647275da45f395941292df85d4eeb6648396b +MISC ChangeLog-2015 867 SHA256 bb07283a30fa1dad3f1f1d93457babf09577f22f86434f3d1aee72e420205143 SHA512 a0bf3222cc3ce8314dbb69ab057cba09496bc04999f0b7b993761eb9ba05015568777c2f8fd0ec1e73a330e184290964b03993433edf53c9e5005340809b41eb WHIRLPOOL 7ed40fd046b232ca76bb6490f881ab05a5c8798bc6e039b48c40863aa301182cc429958e01a3866071e7bbebee5e3ef3e33795d3d040d8d8365dbd0609c5c7eb +MISC metadata.xml 2275 SHA256 b747ed88b25e2e4f4d2fcc99365c84a52b34c6beedf386aacfa5f05eef09ea07 SHA512 2dcfd9f5759761acb811e99f033d06ac57db2bbd7f9c8980fbf865ac864c815f769bd9e635ff4eafba8b1066918fa729ac4b0da5df605b9dae5a9c428d7c2710 WHIRLPOOL 15bceb07b0cb13c104b1682d728cf785e1c9ffd9ea07dc7cd98e55273590ebfcd366a5cc825da6937ca2dd93d32880f4e6338f364211768b50fb990f81152369 diff --git a/dev-haskell/readargs/metadata.xml b/dev-haskell/readargs/metadata.xml new file mode 100644 index 000000000000..f863232f251c --- /dev/null +++ b/dev-haskell/readargs/metadata.xml @@ -0,0 +1,74 @@ +<?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> + ReadArgs provides the @readArgs@ IO action, which lets you tell the compiler + to parse the command line arguments to fit the type signature you give. + + For example @(a :: Int, b :: String, c :: Float) <- readArgs@ would + parse the first runtime argument as an @Int@, the second as a @String@ (no + quotes required) and the third as a @Float@. + + If the runtime arguments are incompatible with the type signature, + then a simple usage statement is given of the types needed. + + Continuing the previous example, if it was used in a + program named @Example@, the error message for the above + action would be: + + @ + usage: Example Int String Float + @ + + Any type that has both @Typeable@ and @Read@ instances + can be used. @Char@, @String@, and @Text@ are handled specially so that + command line arguments for both do not require quotes (as their + @Read@ instances do). A special instance is provided for @FilePath@ so + that no constructor or quotes are required. + + @readArgs@ also supports optional arguments and variadic arguments. + Optional arguments are specified using @Maybe@, and variadic arguments + using a list. @(a :: Int, b :: Maybe String, c :: [Float]) <- readArgs@ + would successfully parse any of the following sets of command line arguments: + + @ + Example 1 + Example 1 2 3 4 + Example 1 foo + Example 1 foo 2 3 4 + @ + + But not + + @ + Example + Example foo + Example 1.0 + @ + + Usage statements for optional and variadic arguments use command-line + parlance: + + @ + usage: Example Int [String] [Float..] + @ + + Note that both optional and variadic parsers are greedy by default + (so @Example 1 2 3 4@ was parsed as @(1, "2", [3.0,4.0])@. They + may both be made non-greedy through use of the @NonGreedy@ constructor: + + @ + ( a :: Int + , NonGreedy b :: NonGreedy Maybe String + , NonGreedy c :: NonGreedy [] Float + ) <- readArgs + @ + </longdescription> + <upstream> + <remote-id type="github">rampion/ReadArgs</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-haskell/readargs/readargs-1.2.2.ebuild b/dev-haskell/readargs/readargs-1.2.2.ebuild new file mode 100644 index 000000000000..7973976779b2 --- /dev/null +++ b/dev-haskell/readargs/readargs-1.2.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 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="bin lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +MY_PN="ReadArgs" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Simple command line argument parsing" +HOMEPAGE="https://github.com/rampion/ReadArgs" +SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/system-filepath-0.4.7:=[profile?] <dev-haskell/system-filepath-0.5:=[profile?] + >=dev-haskell/text-0.11.1.13:=[profile?] <dev-haskell/text-12:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( >=dev-haskell/hspec-1.3 ) +" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + cabal_chdeps \ + 'hspec >= 1.3 && < 2.1' 'hspec >= 1.3' +} diff --git a/dev-haskell/readargs/readargs-1.2.3.ebuild b/dev-haskell/readargs/readargs-1.2.3.ebuild new file mode 100644 index 000000000000..ea206c616eeb --- /dev/null +++ b/dev-haskell/readargs/readargs-1.2.3.ebuild @@ -0,0 +1,32 @@ +# 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 + +MY_PN="ReadArgs" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Simple command line argument parsing" +HOMEPAGE="https://github.com/rampion/ReadArgs" +SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/system-filepath-0.4.7:=[profile?] <dev-haskell/system-filepath-0.5:=[profile?] + >=dev-haskell/text-0.11.1.13:=[profile?] <dev-haskell/text-12:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( >=dev-haskell/hspec-1.3 <dev-haskell/hspec-3 ) +" + +S="${WORKDIR}/${MY_P}" |