1 |
commit: f07ac18fbdee2b96ca7bfe3899545a2ba8529ac7 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 16 08:41:13 2017 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 16 10:21:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f07ac18f |
7 |
|
8 |
dev-haskell/text-show: new package, a depend of dev-haskell/persistent-2.6 |
9 |
|
10 |
Efficient conversion of values into Text |
11 |
|
12 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
13 |
|
14 |
dev-haskell/text-show/Manifest | 1 + |
15 |
dev-haskell/text-show/metadata.xml | 44 ++++++++++++++++++++++++++ |
16 |
dev-haskell/text-show/text-show-3.4.ebuild | 50 ++++++++++++++++++++++++++++++ |
17 |
3 files changed, 95 insertions(+) |
18 |
|
19 |
diff --git a/dev-haskell/text-show/Manifest b/dev-haskell/text-show/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000000..72edb9f969 |
22 |
--- /dev/null |
23 |
+++ b/dev-haskell/text-show/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST text-show-3.4.tar.gz 105127 SHA256 ce8a7adcca87617766a4c988808ff41fee20a2c84ac5442d6f3d8c5cec55d7c7 SHA512 48b7fdd801c4fc31e12f14a9ba0589e0971481a2f8562d00c697a9fd48f6420e73df0a7318ff4579a786cd606a1fda2287eab3f8c423810c0d00919c68eeebed WHIRLPOOL 16a71ec9985d0714e964c69a444d3664fc67ce095b4d6950ae1cecd6b79533f30a4a785876ec0f37590deec36727e33c15f0298fc481a3cea5dab29ef9631015 |
26 |
|
27 |
diff --git a/dev-haskell/text-show/metadata.xml b/dev-haskell/text-show/metadata.xml |
28 |
new file mode 100644 |
29 |
index 0000000000..3e79c8095c |
30 |
--- /dev/null |
31 |
+++ b/dev-haskell/text-show/metadata.xml |
32 |
@@ -0,0 +1,44 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="project"> |
37 |
+ <email>haskell@g.o</email> |
38 |
+ <name>Gentoo Haskell</name> |
39 |
+ </maintainer> |
40 |
+ <longdescription> |
41 |
+ @text-show@ offers a replacement for the @Show@ typeclass intended |
42 |
+ for use with @Text@ instead of @String@s. This package was created |
43 |
+ in the spirit of |
44 |
+ @<http://hackage.haskell.org/package/bytestring-show bytestring-show>@. |
45 |
+ |
46 |
+ At the moment, @text-show@ provides instances for most data |
47 |
+ types in the @<http://hackage.haskell.org/package/array array>@, |
48 |
+ @<http://hackage.haskell.org/package/base base>@, |
49 |
+ @<http://hackage.haskell.org/package/bytestring bytestring>@, and |
50 |
+ @<http://hackage.haskell.org/package/text text>@ packages. |
51 |
+ Therefore, much of the source code for @text-show@ consists of |
52 |
+ borrowed code from those packages in order to ensure that the |
53 |
+ behaviors of @Show@ and @TextShow@ coincide. |
54 |
+ |
55 |
+ For most uses, simply importing "TextShow" |
56 |
+ will suffice: |
57 |
+ |
58 |
+ @ |
59 |
+ module Main where |
60 |
+ |
61 |
+ import TextShow |
62 |
+ |
63 |
+ main :: IO () |
64 |
+ main = printT (Just \"Hello, World!\") |
65 |
+ @ |
66 |
+ |
67 |
+ If you desire it, there are also monomorphic versions of the @showb@ |
68 |
+ function available in the submodules of "TextShow". See the |
69 |
+ <https://github.com/RyanGlScott/text-show/wiki/Naming-conventions naming conventions> |
70 |
+ page for more information. |
71 |
+ |
72 |
+ Support for automatically deriving @TextShow@ instances can be found |
73 |
+ in the "TextShow.TH" and "TextShow.Generic" modules. If you don't |
74 |
+ know which one to use, use "TextShow.TH". |
75 |
+ </longdescription> |
76 |
+</pkgmetadata> |
77 |
|
78 |
diff --git a/dev-haskell/text-show/text-show-3.4.ebuild b/dev-haskell/text-show/text-show-3.4.ebuild |
79 |
new file mode 100644 |
80 |
index 0000000000..0d2255745e |
81 |
--- /dev/null |
82 |
+++ b/dev-haskell/text-show/text-show-3.4.ebuild |
83 |
@@ -0,0 +1,50 @@ |
84 |
+# Copyright 1999-2017 Gentoo Foundation |
85 |
+# Distributed under the terms of the GNU General Public License v2 |
86 |
+# $Id$ |
87 |
+ |
88 |
+EAPI=6 |
89 |
+ |
90 |
+# ebuild generated by hackport 0.5.9999 |
91 |
+#hackport: flags: -developer |
92 |
+ |
93 |
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" |
94 |
+inherit haskell-cabal |
95 |
+ |
96 |
+DESCRIPTION="Efficient conversion of values into Text" |
97 |
+HOMEPAGE="https://github.com/RyanGlScott/text-show" |
98 |
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" |
99 |
+ |
100 |
+LICENSE="BSD" |
101 |
+SLOT="0/${PV}" |
102 |
+KEYWORDS="~amd64 ~x86" |
103 |
+IUSE="" |
104 |
+ |
105 |
+RDEPEND=">=dev-haskell/base-compat-0.8.1:=[profile?] <dev-haskell/base-compat-1:=[profile?] |
106 |
+ >=dev-haskell/bifunctors-5.1:=[profile?] <dev-haskell/bifunctors-6:=[profile?] |
107 |
+ dev-haskell/bytestring-builder:=[profile?] |
108 |
+ >=dev-haskell/contravariant-0.5:=[profile?] <dev-haskell/contravariant-2:=[profile?] |
109 |
+ >=dev-haskell/generic-deriving-1.11:=[profile?] <dev-haskell/generic-deriving-2:=[profile?] |
110 |
+ >=dev-haskell/nats-0.1:=[profile?] <dev-haskell/nats-2:=[profile?] |
111 |
+ >=dev-haskell/semigroups-0.17:=[profile?] <dev-haskell/semigroups-1:=[profile?] |
112 |
+ >=dev-haskell/tagged-0.4.4:=[profile?] <dev-haskell/tagged-1:=[profile?] |
113 |
+ >=dev-haskell/text-0.11.1:=[profile?] <dev-haskell/text-1.3:=[profile?] |
114 |
+ >=dev-haskell/th-lift-0.7.6:=[profile?] <dev-haskell/th-lift-1:=[profile?] |
115 |
+ >=dev-haskell/transformers-compat-0.5:=[profile?] <dev-haskell/transformers-compat-1:=[profile?] |
116 |
+ >=dev-haskell/void-0.5:=[profile?] <dev-haskell/void-1:=[profile?] |
117 |
+ >=dev-lang/ghc-7.8.2:= |
118 |
+" |
119 |
+DEPEND="${RDEPEND} |
120 |
+ >=dev-haskell/cabal-1.18.1.3 |
121 |
+ test? ( >=dev-haskell/base-compat-0.8.2 <dev-haskell/base-compat-1 |
122 |
+ >=dev-haskell/base-orphans-0.5.2 <dev-haskell/base-orphans-1 |
123 |
+ >=dev-haskell/deriving-compat-0.3 <dev-haskell/deriving-compat-1 |
124 |
+ >=dev-haskell/hspec-2 <dev-haskell/hspec-3 |
125 |
+ >=dev-haskell/quickcheck-2.5 <dev-haskell/quickcheck-3 |
126 |
+ >=dev-haskell/quickcheck-instances-0.1 <dev-haskell/quickcheck-instances-0.4 |
127 |
+ >=dev-haskell/tagged-0.8.3 <dev-haskell/tagged-1 ) |
128 |
+" |
129 |
+ |
130 |
+src_configure() { |
131 |
+ haskell-cabal_src_configure \ |
132 |
+ --flag=-developer |
133 |
+} |