commit: b8c2116db3047e570ee1811b517ba64158304b04 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Sat Aug 29 18:27:06 2020 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Sat Aug 29 18:36:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8c2116d
dev-haskell/double-conversion: new package, a depend of esqueleto-3.3 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> dev-haskell/double-conversion/Manifest | 1 + .../double-conversion-2.0.2.0.ebuild | 38 ++++++++++++++++++++++ dev-haskell/double-conversion/metadata.xml | 26 +++++++++++++++ 3 files changed, 65 insertions(+) diff --git a/dev-haskell/double-conversion/Manifest b/dev-haskell/double-conversion/Manifest new file mode 100644 index 00000000000..5b877438b88 --- /dev/null +++ b/dev-haskell/double-conversion/Manifest @@ -0,0 +1 @@ +DIST double-conversion-2.0.2.0.tar.gz 7023616 BLAKE2B ecdd9ff171a976f48390626eda39a23f3e6b9f3ec204515a9730ebc22bb6a49b40baf77f5c12dc01f47c90225055d5c1199b00e739ef809861bf564d3aaa38df SHA512 1713c4e8a28de2ee85e1f312dc12d30a9c6d7a139d89f04ea88048578ce65c8bdf62ded90b92bce011955b95867ca95a623a5109758276a29ba7b6843fbe37eb diff --git a/dev-haskell/double-conversion/double-conversion-2.0.2.0.ebuild b/dev-haskell/double-conversion/double-conversion-2.0.2.0.ebuild new file mode 100644 index 00000000000..721be4fc964 --- /dev/null +++ b/dev-haskell/double-conversion/double-conversion-2.0.2.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# ebuild generated by hackport 0.5.1.9999 +#hackport: flags: -developer + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Fast conversion between double precision floating point and text" +HOMEPAGE="https://github.com/bos/double-conversion" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RESTRICT=test # fails to compare 0.0 with 0.0 + +RDEPEND=">=dev-haskell/text-0.11.0.8:=[profile?] + >=dev-lang/ghc-7.4.1:= + sys-devel/gcc:*[cxx] +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( dev-haskell/hunit + dev-haskell/test-framework + dev-haskell/test-framework-hunit + dev-haskell/test-framework-quickcheck2 ) +" + +src_configure() { + haskell-cabal_src_configure \ + --flag=-developer +} diff --git a/dev-haskell/double-conversion/metadata.xml b/dev-haskell/double-conversion/metadata.xml new file mode 100644 index 00000000000..b9abb6a6f24 --- /dev/null +++ b/dev-haskell/double-conversion/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>hask...@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <longdescription> + A library that performs fast, accurate conversion between double + precision floating point and text. + + This library is implemented as bindings to the C++ + @double-conversion@ library written by Florian Loitsch at Google: + <http://code.google.com/p/double-conversion/>. + + The 'Text' versions of these functions are about 30 times faster + than the default 'show' implementation for the 'Double' type. + + The 'ByteString' versions are /slower/ than the 'Text' versions; + roughly half the speed. (This seems to be due to the cost of + allocating 'ByteString' values via @malloc@.) + + As a final note, be aware that the @bytestring-show@ package is + about 50% slower than simply using 'show'. + </longdescription> +</pkgmetadata>