Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-haskell/foundation/
Date: Tue, 21 Jan 2020 08:57:44
Message-Id: 1579597047.d054873fb5793a081d5fef4dea47a23a3ccb1dba.slyfox@gentoo
1 commit: d054873fb5793a081d5fef4dea47a23a3ccb1dba
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 21 08:54:30 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 21 08:57:27 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d054873f
7
8 dev-haskell/foundation: new package, a depend on memory
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-haskell/foundation/Manifest | 1 +
14 dev-haskell/foundation/foundation-0.0.25.ebuild | 40 +++++++++++++++++++++++++
15 dev-haskell/foundation/metadata.xml | 30 +++++++++++++++++++
16 3 files changed, 71 insertions(+)
17
18 diff --git a/dev-haskell/foundation/Manifest b/dev-haskell/foundation/Manifest
19 new file mode 100644
20 index 00000000000..a0dae253bcc
21 --- /dev/null
22 +++ b/dev-haskell/foundation/Manifest
23 @@ -0,0 +1 @@
24 +DIST foundation-0.0.25.tar.gz 120472 BLAKE2B 2cff11363840b0b338b57d38438a13211e41a8e9bc6c359552dfb1854c9277c3228aac88b4a7930031fab75f78574cbe1cac6d5c87936f9b179e5c2277c00ff5 SHA512 7335795a1cdf2975d6e9471c5b469d99cc6d224d2da66838d830593a5abda73675920acb2dc823a6b92f2141dc2364c8fd5ad53d7e8aecd8df00e6998683be60
25
26 diff --git a/dev-haskell/foundation/foundation-0.0.25.ebuild b/dev-haskell/foundation/foundation-0.0.25.ebuild
27 new file mode 100644
28 index 00000000000..1f75b31ea27
29 --- /dev/null
30 +++ b/dev-haskell/foundation/foundation-0.0.25.ebuild
31 @@ -0,0 +1,40 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +# ebuild generated by hackport 0.6.1.9999
38 +#hackport: flags: +doctest,-minimal-deps,-bench-all,-bounds-check,-linktest
39 +
40 +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
41 +inherit haskell-cabal
42 +
43 +DESCRIPTION="Alternative prelude with batteries and no dependencies"
44 +HOMEPAGE="https://github.com/haskell-foundation/foundation"
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="experimental"
51 +
52 +RESTRICT="test" # fails to doctest
53 +
54 +RDEPEND="~dev-haskell/basement-0.0.11:=[profile?]
55 + >=dev-lang/ghc-8.0.1:=
56 +"
57 +DEPEND="${RDEPEND}
58 + >=dev-haskell/cabal-1.24.0.0
59 + test? ( dev-haskell/basement
60 + >=dev-haskell/doctest-0.9 )
61 +"
62 +
63 +src_configure() {
64 + haskell-cabal_src_configure \
65 + --flag=-bench-all \
66 + --flag=-bounds-check \
67 + --flag=doctest \
68 + $(cabal_flag experimental experimental) \
69 + --flag=-linktest \
70 + --flag=-minimal-deps
71 +}
72
73 diff --git a/dev-haskell/foundation/metadata.xml b/dev-haskell/foundation/metadata.xml
74 new file mode 100644
75 index 00000000000..f3416f8ccd5
76 --- /dev/null
77 +++ b/dev-haskell/foundation/metadata.xml
78 @@ -0,0 +1,30 @@
79 +<?xml version="1.0" encoding="UTF-8"?>
80 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
81 +<pkgmetadata>
82 + <maintainer type="project">
83 + <email>haskell@g.o</email>
84 + <name>Gentoo Haskell</name>
85 + </maintainer>
86 + <use>
87 + <flag name='experimental'>enable building experimental features, known as highly unstable or without good support cross-platform</flag>
88 + </use>
89 + <longdescription>
90 + A custom prelude with no dependencies apart from base.
91 +
92 + This package has the following goals:
93 +
94 + * provide a base like sets of modules that provide a consistent set of features and bugfixes across multiple versions of GHC (unlike base).
95 +
96 + * provide a better and more efficient prelude than base&#39;s prelude.
97 +
98 + * be self-sufficient: no external dependencies apart from base.
99 +
100 + * provide better data-types: packed unicode string by default, arrays.
101 +
102 + * Better numerical classes that better represent mathematical thing (No more all-in-one Num).
103 +
104 + * Better I/O system with less Lazy IO
105 +
106 + * Usual partial functions distinguished through type system
107 + </longdescription>
108 +</pkgmetadata>