diff options
author | hololeap <hololeap@protonmail.com> | 2023-10-02 23:09:11 -0600 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-10-23 04:09:58 +0100 |
commit | 974f11435bd088082feba26dd30968017a7f6ccc (patch) | |
tree | 06ea1223f3ac888e8aea7cfa042f0c3ad5573be0 | |
parent | dev-haskell/prettyprinter-ansi-terminal: add 1.1.3 (diff) | |
download | gentoo-974f11435bd088082feba26dd30968017a7f6ccc.tar.gz gentoo-974f11435bd088082feba26dd30968017a7f6ccc.tar.bz2 gentoo-974f11435bd088082feba26dd30968017a7f6ccc.zip |
dev-haskell/prettyprinter: add 1.7.1
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | dev-haskell/prettyprinter/Manifest | 1 | ||||
-rw-r--r-- | dev-haskell/prettyprinter/metadata.xml | 17 | ||||
-rw-r--r-- | dev-haskell/prettyprinter/prettyprinter-1.7.1.ebuild | 44 |
3 files changed, 58 insertions, 4 deletions
diff --git a/dev-haskell/prettyprinter/Manifest b/dev-haskell/prettyprinter/Manifest index a04db2d8d919..965b137ff7da 100644 --- a/dev-haskell/prettyprinter/Manifest +++ b/dev-haskell/prettyprinter/Manifest @@ -1 +1,2 @@ DIST prettyprinter-1.7.0.tar.gz 55569 BLAKE2B fbcdad5485f8139c71f5e34a438adbe59822ef1eb77ae55f9f86228c934e7c751947dcae0900250ea2cfd8638493352759b40c68d91d6b4887289cc475c08163 SHA512 4f1b756b3284a0319bb73229e8445f6d92c3d3d12a879f651df5624389bd6c449b2d9bc440dbf70d8752a6ba574d0539f91950d4bafbe7f9d3fd79d0d30ec95d +DIST prettyprinter-1.7.1.tar.gz 56907 BLAKE2B a05d9153b8b0eccd84b110d8e785c758b407757f54424d37b17ba5452e4b34fbfe4b4d7a6238d8a6b73d65cb23dc51ca3af320b577ae645fdf63190159f2e695 SHA512 26289e579cc1a2826dc11daedbdfd5ce31acf4a2382f827c20194d910f05201e3f332a6544aa0c3f941188d9eaee8d6dee3cf3d319dc3c5a7bfe4f35d77b4dd9 diff --git a/dev-haskell/prettyprinter/metadata.xml b/dev-haskell/prettyprinter/metadata.xml index 0451e4e6929a..fcd7bf78e975 100644 --- a/dev-haskell/prettyprinter/metadata.xml +++ b/dev-haskell/prettyprinter/metadata.xml @@ -1,11 +1,20 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> - <longdescription> - A prettyprinter/text rendering engine. Easy to use, well-documented, ANSI terminal backend exists, HTML backend is trivial to implement, no name clashes, Text-based, extensible. - </longdescription> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <use> + <flag name="buildreadme">Build the readme generator</flag> + <flag name="text">While it's a core value of @prettyprinter@ to use @Text@, there are rare +circumstances (mostly when @prettyprinter@ arises as a dependency of +test suites of packages like @bytestring@ or @text@ themselves) when +this is inconvenient. In this case one can disable this flag, so that +@prettyprinter@ fallbacks to @String@.</flag> + </use> <upstream> + <remote-id type="hackage">prettyprinter</remote-id> <remote-id type="github">quchen/prettyprinter</remote-id> </upstream> </pkgmetadata> diff --git a/dev-haskell/prettyprinter/prettyprinter-1.7.1.ebuild b/dev-haskell/prettyprinter/prettyprinter-1.7.1.ebuild new file mode 100644 index 000000000000..02d35e6a2de1 --- /dev/null +++ b/dev-haskell/prettyprinter/prettyprinter-1.7.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.7.3.0 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="A modern, easy to use, well-documented, extensible pretty-printer" +HOMEPAGE="https://github.com/quchen/prettyprinter" + +LICENSE="BSD-2" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="buildreadme +text" + +RDEPEND=">=dev-lang/ghc-8.4.3:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-2.2.0.1 + test? ( >=dev-haskell/doctest-0.9 + >=dev-haskell/quickcheck-2.5 + text? ( >=dev-haskell/pgp-wordlist-0.1 + >=dev-haskell/quickcheck-instances-0.3 + >=dev-haskell/tasty-0.10 + >=dev-haskell/tasty-hunit-0.9 + >=dev-haskell/tasty-quickcheck-0.8 ) ) +" + +pkg_pretend() { + if use test; then + ewarn "The \"test\" USE flag for this package creates cycles within the" + ewarn "dependency graph. This may give you problems during 'haskell-updater' runs." + ewarn "It is recommended to leave it disabled unless explicitly testing the package." + fi +} + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag buildreadme buildreadme) \ + $(cabal_flag text text) +} |