1 |
commit: b8c2116db3047e570ee1811b517ba64158304b04 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 29 18:27:06 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 29 18:36:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8c2116d |
7 |
|
8 |
dev-haskell/double-conversion: new package, a depend of esqueleto-3.3 |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
dev-haskell/double-conversion/Manifest | 1 + |
14 |
.../double-conversion-2.0.2.0.ebuild | 38 ++++++++++++++++++++++ |
15 |
dev-haskell/double-conversion/metadata.xml | 26 +++++++++++++++ |
16 |
3 files changed, 65 insertions(+) |
17 |
|
18 |
diff --git a/dev-haskell/double-conversion/Manifest b/dev-haskell/double-conversion/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..5b877438b88 |
21 |
--- /dev/null |
22 |
+++ b/dev-haskell/double-conversion/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST double-conversion-2.0.2.0.tar.gz 7023616 BLAKE2B ecdd9ff171a976f48390626eda39a23f3e6b9f3ec204515a9730ebc22bb6a49b40baf77f5c12dc01f47c90225055d5c1199b00e739ef809861bf564d3aaa38df SHA512 1713c4e8a28de2ee85e1f312dc12d30a9c6d7a139d89f04ea88048578ce65c8bdf62ded90b92bce011955b95867ca95a623a5109758276a29ba7b6843fbe37eb |
25 |
|
26 |
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 |
27 |
new file mode 100644 |
28 |
index 00000000000..721be4fc964 |
29 |
--- /dev/null |
30 |
+++ b/dev-haskell/double-conversion/double-conversion-2.0.2.0.ebuild |
31 |
@@ -0,0 +1,38 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+# ebuild generated by hackport 0.5.1.9999 |
38 |
+#hackport: flags: -developer |
39 |
+ |
40 |
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" |
41 |
+inherit haskell-cabal |
42 |
+ |
43 |
+DESCRIPTION="Fast conversion between double precision floating point and text" |
44 |
+HOMEPAGE="https://github.com/bos/double-conversion" |
45 |
+SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0/${PV}" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="" |
51 |
+ |
52 |
+RESTRICT=test # fails to compare 0.0 with 0.0 |
53 |
+ |
54 |
+RDEPEND=">=dev-haskell/text-0.11.0.8:=[profile?] |
55 |
+ >=dev-lang/ghc-7.4.1:= |
56 |
+ sys-devel/gcc:*[cxx] |
57 |
+" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ >=dev-haskell/cabal-1.8 |
60 |
+ test? ( dev-haskell/hunit |
61 |
+ dev-haskell/test-framework |
62 |
+ dev-haskell/test-framework-hunit |
63 |
+ dev-haskell/test-framework-quickcheck2 ) |
64 |
+" |
65 |
+ |
66 |
+src_configure() { |
67 |
+ haskell-cabal_src_configure \ |
68 |
+ --flag=-developer |
69 |
+} |
70 |
|
71 |
diff --git a/dev-haskell/double-conversion/metadata.xml b/dev-haskell/double-conversion/metadata.xml |
72 |
new file mode 100644 |
73 |
index 00000000000..b9abb6a6f24 |
74 |
--- /dev/null |
75 |
+++ b/dev-haskell/double-conversion/metadata.xml |
76 |
@@ -0,0 +1,26 @@ |
77 |
+<?xml version="1.0" encoding="UTF-8"?> |
78 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
79 |
+<pkgmetadata> |
80 |
+ <maintainer type="project"> |
81 |
+ <email>haskell@g.o</email> |
82 |
+ <name>Gentoo Haskell</name> |
83 |
+ </maintainer> |
84 |
+ <longdescription> |
85 |
+ A library that performs fast, accurate conversion between double |
86 |
+ precision floating point and text. |
87 |
+ |
88 |
+ This library is implemented as bindings to the C++ |
89 |
+ @double-conversion@ library written by Florian Loitsch at Google: |
90 |
+ <http://code.google.com/p/double-conversion/>. |
91 |
+ |
92 |
+ The 'Text' versions of these functions are about 30 times faster |
93 |
+ than the default 'show' implementation for the 'Double' type. |
94 |
+ |
95 |
+ The 'ByteString' versions are /slower/ than the 'Text' versions; |
96 |
+ roughly half the speed. (This seems to be due to the cost of |
97 |
+ allocating 'ByteString' values via @malloc@.) |
98 |
+ |
99 |
+ As a final note, be aware that the @bytestring-show@ package is |
100 |
+ about 50% slower than simply using 'show'. |
101 |
+ </longdescription> |
102 |
+</pkgmetadata> |