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/hackage-security/
Date: Wed, 15 Feb 2017 08:39:30
Message-Id: 1487147641.d6ff03002517c983c53103e4e32d19485a24d6ca.slyfox@gentoo
1 commit: d6ff03002517c983c53103e4e32d19485a24d6ca
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 15 08:34:01 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 15 08:34:01 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6ff0300
7
8 dev-haskell/hackage-security: new package, a depend of dev-haskell/cabal-install-1.24.0.2
9
10 Hackage security library
11
12 Package-Manager: Portage-2.3.3, Repoman-2.3.1
13
14 dev-haskell/hackage-security/Manifest | 1 +
15 .../hackage-security-0.5.2.2.ebuild | 57 ++++++++++++++++++++++
16 dev-haskell/hackage-security/metadata.xml | 32 ++++++++++++
17 3 files changed, 90 insertions(+)
18
19 diff --git a/dev-haskell/hackage-security/Manifest b/dev-haskell/hackage-security/Manifest
20 new file mode 100644
21 index 0000000000..324599b038
22 --- /dev/null
23 +++ b/dev-haskell/hackage-security/Manifest
24 @@ -0,0 +1 @@
25 +DIST hackage-security-0.5.2.2.tar.gz 83131 SHA256 507a837851264a774c8f4d400f798c3dac5be11dc428fe72d33ef594ca533c41 SHA512 5adab3c46d7aada8668128ad8c9389ca65489eec776f8571b8ee5834d74b961f19b558cb6642cbb1891ee381b2d4f2019dddf29bad13607fe23bef49a3d6f535 WHIRLPOOL 4ab43e7e255cf265cbcbdce4d5148d7353cd6cdef3ad5ffa0af928ecbadd73fa83108280a8fe735376053ae9e031ffb5953ea142d9b674fbd683b23726accc45
26
27 diff --git a/dev-haskell/hackage-security/hackage-security-0.5.2.2.ebuild b/dev-haskell/hackage-security/hackage-security-0.5.2.2.ebuild
28 new file mode 100644
29 index 0000000000..845b6a3ad4
30 --- /dev/null
31 +++ b/dev-haskell/hackage-security/hackage-security-0.5.2.2.ebuild
32 @@ -0,0 +1,57 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +# ebuild generated by hackport 0.5.9999
40 +
41 +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
42 +inherit haskell-cabal
43 +
44 +DESCRIPTION="Hackage security library"
45 +HOMEPAGE="https://github.com/well-typed/hackage-security"
46 +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
47 +
48 +LICENSE="BSD"
49 +SLOT="0/${PV}"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="+use-network-uri"
52 +
53 +RDEPEND=">=dev-haskell/base16-bytestring-0.1.1:=[profile?] <dev-haskell/base16-bytestring-0.2:=[profile?]
54 + >=dev-haskell/base64-bytestring-1.0:=[profile?] <dev-haskell/base64-bytestring-1.1:=[profile?]
55 + >=dev-haskell/cabal-1.14:=[profile?] <dev-haskell/cabal-1.26:=[profile?]
56 + >=dev-haskell/cryptohash-sha256-0.11:=[profile?] <dev-haskell/cryptohash-sha256-0.12:=[profile?]
57 + >=dev-haskell/ed25519-0.0:=[profile?] <dev-haskell/ed25519-0.1:=[profile?]
58 + >=dev-haskell/mtl-2.2:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
59 + >=dev-haskell/parsec-3.1:=[profile?] <dev-haskell/parsec-3.2:=[profile?]
60 + >=dev-haskell/tar-0.5:=[profile?] <dev-haskell/tar-0.6:=[profile?]
61 + >=dev-haskell/zlib-0.5:=[profile?] <dev-haskell/zlib-0.7:=[profile?]
62 + >=dev-lang/ghc-7.10.1:=
63 + >=dev-haskell/old-locale-1.0:=[profile?]
64 + use-network-uri? ( >=dev-haskell/network-2.6:=[profile?] <dev-haskell/network-2.7:=[profile?]
65 + >=dev-haskell/network-uri-2.6:=[profile?] <dev-haskell/network-uri-2.7:=[profile?] )
66 + !use-network-uri? ( >=dev-haskell/network-2.5:=[profile?] <dev-haskell/network-2.6:=[profile?] )
67 +"
68 +DEPEND="${RDEPEND}
69 + >=dev-haskell/cabal-1.22.2.0
70 + test? ( dev-haskell/hunit
71 + dev-haskell/quickcheck
72 + dev-haskell/tasty
73 + dev-haskell/tasty-hunit
74 + dev-haskell/tasty-quickcheck
75 + dev-haskell/temporary
76 + !use-network-uri? ( dev-haskell/network-uri ) )
77 +"
78 +
79 +src_prepare() {
80 + default
81 +
82 + cabal_chdeps \
83 + 'directory >= 1.1.0.2 && < 1.3' 'directory >= 1.1.0.2'
84 +}
85 +
86 +src_configure() {
87 + haskell-cabal_src_configure \
88 + $(cabal_flag use-network-uri use-network-uri)
89 +}
90
91 diff --git a/dev-haskell/hackage-security/metadata.xml b/dev-haskell/hackage-security/metadata.xml
92 new file mode 100644
93 index 0000000000..d08d62d98e
94 --- /dev/null
95 +++ b/dev-haskell/hackage-security/metadata.xml
96 @@ -0,0 +1,32 @@
97 +<?xml version="1.0" encoding="UTF-8"?>
98 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
99 +<pkgmetadata>
100 + <maintainer type="project">
101 + <email>haskell@g.o</email>
102 + <name>Gentoo Haskell</name>
103 + </maintainer>
104 + <use>
105 + <flag name="use-network-uri">Get Network.URI from the network-uri package.</flag>
106 + </use>
107 + <longdescription>
108 + The hackage security library provides both server and
109 + client utilities for securing the Hackage package server
110 + (&lt;http://hackage.haskell.org/&gt;). It is based on The Update
111 + Framework (&lt;http://theupdateframework.com/&gt;), a set of
112 + recommendations developed by security researchers at
113 + various universities in the US as well as developers on the
114 + Tor project (&lt;https://www.torproject.org/&gt;).
115 +
116 + The current implementation supports only index signing,
117 + thereby enabling untrusted mirrors. It does not yet provide
118 + facilities for author package signing.
119 +
120 + The library has two main entry points:
121 + &quot;Hackage.Security.Client&quot; is the main entry point for
122 + clients (the typical example being @cabal@), and
123 + &quot;Hackage.Security.Server&quot; is the main entry point for
124 + servers (the typical example being @hackage-server@).
125 +
126 + This is a beta release.
127 + </longdescription>
128 +</pkgmetadata>