Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/opam/, dev-ml/opam/files/
Date: Tue, 24 Jan 2017 11:32:34
Message-Id: 1485257188.d485add3c0c9fb5884649242968418d59c9e8bcb.aballier@gentoo
1 commit: d485add3c0c9fb5884649242968418d59c9e8bcb
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 24 11:26:28 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 24 11:26:28 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d485add3
7
8 dev-ml/opam: remove old
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-ml/opam/Manifest | 1 -
13 dev-ml/opam/files/0001-Port-to-Dose3-4.0.1.patch | 77 ------------------------
14 dev-ml/opam/files/no-insecure.patch | 25 --------
15 dev-ml/opam/opam-1.2.2-r1.ebuild | 57 ------------------
16 4 files changed, 160 deletions(-)
17
18 diff --git a/dev-ml/opam/Manifest b/dev-ml/opam/Manifest
19 index e8ec3ff..9e786d9 100644
20 --- a/dev-ml/opam/Manifest
21 +++ b/dev-ml/opam/Manifest
22 @@ -1,2 +1 @@
23 -DIST opam-1.2.2.tar.gz 648951 SHA256 3e4a05df6ff8deecba019d885ebe902eb933acb6e2fc7784ffee1ee14871e36a SHA512 12105b5219a14d4c4cb29c387dd5af858d2b4a2a1bad7dcd70e4c284fc52848df82933396571b85251d904b3c14cdf02db55060c1ba29dc34b8bab3721d05f54 WHIRLPOOL 97d6ab75620a4ed18b45d80e88e77564af457606cbb8dd4591030574bfdbff5c16d508e81438b78198b87511151b1b030e6a51c2370e3110ae21216846f37836
24 DIST opam-1.3.0.tar.gz 669389 SHA256 9d50122940f44401c2dcee39b12a4e4afea851b2f2ab47d90b522f7395f10f7a SHA512 290535a1bb2e7eff6ab44126c5070d2bed94e68cee3bd5e47054f91ad81ed92e9a21f7888bd1dafcb397e3ac61589d4eaf7267305ac63d1aee08761701bdf647 WHIRLPOOL 64b8fc334b8dd193af1d4ae0d0bb445554f6afeb3007fefd4048816d1bd90363c7b18c4d44521da8162bc3ae49668d26b75ef811a4de4d5287597024d0b74ddd
25
26 diff --git a/dev-ml/opam/files/0001-Port-to-Dose3-4.0.1.patch b/dev-ml/opam/files/0001-Port-to-Dose3-4.0.1.patch
27 deleted file mode 100644
28 index a06733c..00000000
29 --- a/dev-ml/opam/files/0001-Port-to-Dose3-4.0.1.patch
30 +++ /dev/null
31 @@ -1,77 +0,0 @@
32 -From: Mehdi Dogguy <mehdi@××××××.org>
33 -Date: Mon, 14 Sep 2015 23:11:00 +0200
34 -Subject: Port to Dose3 4.0.1
35 -
36 ----
37 - src/core/opamCompiler.ml | 2 +-
38 - src/core/opamFilter.ml | 2 +-
39 - src/core/opamPackage.ml | 2 +-
40 - src/core/opamVersion.ml.in | 2 +-
41 - src/solver/opamCudf.ml | 2 +-
42 - 5 files changed, 5 insertions(+), 5 deletions(-)
43 -
44 -diff --git a/src/core/opamCompiler.ml b/src/core/opamCompiler.ml
45 -index 4178311..c7beb93 100644
46 ---- a/src/core/opamCompiler.ml
47 -+++ b/src/core/opamCompiler.ml
48 -@@ -30,7 +30,7 @@ module Version = struct
49 -
50 - type constr = (OpamFormula.relop * t) OpamFormula.formula
51 -
52 -- let compare v1 v2 = Debian.Version.compare (to_string v1) (to_string v2)
53 -+ let compare v1 v2 = Versioning.Debian.compare (to_string v1) (to_string v2)
54 -
55 - let eval_relop relop v1 v2 = OpamFormula.check_relop relop (compare v1 v2)
56 -
57 -diff --git a/src/core/opamFilter.ml b/src/core/opamFilter.ml
58 -index 0e919e7..ebce090 100644
59 ---- a/src/core/opamFilter.ml
60 -+++ b/src/core/opamFilter.ml
61 -@@ -203,7 +203,7 @@ let rec reduce_aux env = function
62 - | FUndef, _ | _, FUndef -> FUndef
63 - | e,f ->
64 - FBool (OpamFormula.check_relop relop
65 -- (Debian.Version.compare (value_string e) (value_string f))))
66 -+ (Versioning.Debian.compare (value_string e) (value_string f))))
67 - | FAnd (e,f) -> logop2 (&&) false (reduce env e) (reduce env f)
68 - | FOr (e,f) -> logop2 (||) true (reduce env e) (reduce env f)
69 - | FNot e -> logop1 not (reduce env e)
70 -diff --git a/src/core/opamPackage.ml b/src/core/opamPackage.ml
71 -index 56605bb..8390896 100644
72 ---- a/src/core/opamPackage.ml
73 -+++ b/src/core/opamPackage.ml
74 -@@ -29,7 +29,7 @@ module Version = struct
75 -
76 - let of_string x = x
77 -
78 -- let compare = Debian.Version.compare
79 -+ let compare = Versioning.Debian.compare
80 -
81 - let to_json x =
82 - `String (to_string x)
83 -diff --git a/src/core/opamVersion.ml.in b/src/core/opamVersion.ml.in
84 -index 3c9fc92..ead47b8 100644
85 ---- a/src/core/opamVersion.ml.in
86 -+++ b/src/core/opamVersion.ml.in
87 -@@ -27,7 +27,7 @@ let compare v w =
88 - let cut s = match OpamMisc.cut_at s '-' with
89 - | Some (s,_) -> s
90 - | None -> s in
91 -- Debian.Version.compare (cut v) (cut w)
92 -+ Versioning.Debian.compare (cut v) (cut w)
93 -
94 - module O = struct
95 - type t = string
96 -diff --git a/src/solver/opamCudf.ml b/src/solver/opamCudf.ml
97 -index 62ea551..f790352 100644
98 ---- a/src/solver/opamCudf.ml
99 -+++ b/src/solver/opamCudf.ml
100 -@@ -611,7 +611,7 @@ let check_cudf_version =
101 - `Compat
102 - | s::_ ->
103 - match OpamMisc.split s ' ' with
104 -- | "aspcud"::_::v::_ when Debian.Version.compare v "1.9" >= 0 ->
105 -+ | "aspcud"::_::v::_ when Versioning.Debian.compare v "1.9" >= 0 ->
106 - log "Solver is aspcud > 1.9: using latest version criteria";
107 - `Latest
108 - | _ ->
109
110 diff --git a/dev-ml/opam/files/no-insecure.patch b/dev-ml/opam/files/no-insecure.patch
111 deleted file mode 100644
112 index aebd5b2..00000000
113 --- a/dev-ml/opam/files/no-insecure.patch
114 +++ /dev/null
115 @@ -1,25 +0,0 @@
116 -Description: remove insecure / no-check-certificate flags (see mail on opam-devel, #55 #2006)
117 -Author: Hannes Mehnert <hannes@×××××××.org>
118 -Applied-Upstream: 3d43295df3bb9e67e60801d319bf82c2c8a84d24
119 ----
120 -This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
121 ---- a/src/core/opamSystem.ml
122 -+++ b/src/core/opamSystem.ml
123 -@@ -694,7 +694,7 @@
124 - let retry = string_of_int OpamGlobals.download_retry in
125 - let wget ~compress:_ ?checksum:_ dir src =
126 - let wget_args = [
127 -- "--content-disposition"; "--no-check-certificate";
128 -+ "--content-disposition";
129 - "-t"; retry;
130 - src
131 - ] in
132 -@@ -704,7 +704,7 @@
133 - in
134 - let curl command ~compress ?checksum:_ dir src =
135 - let curl_args = [
136 -- "--write-out"; "%{http_code}\\n"; "--insecure";
137 -+ "--write-out"; "%{http_code}\\n";
138 - "--retry"; retry; "--retry-delay"; "2";
139 - ] @ (if compress then ["--compressed"] else []) @ [
140 - "-OL"; src
141
142 diff --git a/dev-ml/opam/opam-1.2.2-r1.ebuild b/dev-ml/opam/opam-1.2.2-r1.ebuild
143 deleted file mode 100644
144 index 2b94b7e..00000000
145 --- a/dev-ml/opam/opam-1.2.2-r1.ebuild
146 +++ /dev/null
147 @@ -1,57 +0,0 @@
148 -# Copyright 1999-2015 Gentoo Foundation
149 -# Distributed under the terms of the GNU General Public License v2
150 -# $Id$
151 -
152 -EAPI=5
153 -
154 -inherit eutils
155 -
156 -DESCRIPTION="A source-based package manager for OCaml"
157 -HOMEPAGE="http://opam.ocaml.org/"
158 -LICENSE="LGPL-3-with-linking-exception"
159 -SLOT="0"
160 -KEYWORDS="~amd64"
161 -IUSE=""
162 -
163 -if [[ ${PV} != 9999 ]]; then
164 - SRC_URI="https://github.com/ocaml/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
165 -else
166 - inherit git-r3
167 - EGIT_REPO_URI="https://github.com/ocaml/opam.git"
168 -fi
169 -
170 -DEPEND="dev-lang/ocaml:=
171 - || ( net-misc/wget net-misc/curl )
172 - dev-ml/extlib:=
173 - dev-ml/ocaml-re:=
174 - dev-ml/ocamlgraph:=
175 - dev-ml/cmdliner:=
176 - dev-ml/cudf:=
177 - >=dev-ml/dose3-4:=
178 - dev-ml/uutf:=
179 - dev-ml/jsonm:=
180 -"
181 -RDEPEND="${DEPEND}
182 - dev-ml/findlib
183 -"
184 -
185 -src_prepare() {
186 - epatch \
187 - "${FILESDIR}/0001-Port-to-Dose3-4.0.1.patch" \
188 - "${FILESDIR}/no-insecure.patch"
189 -}
190 -
191 -src_compile() {
192 - emake -j1
193 - cd doc
194 - emake man
195 -}
196 -
197 -src_test() {
198 - EMAIL=foo@×××.com emake -j1 tests
199 -}
200 -
201 -src_install() {
202 - default
203 - emake DESTDIR="${D}" OPAMINSTALLER_FLAGS="--prefix=\"${ED}/usr\" --libdir=\"${D}/$(ocamlc -where)\"" libinstall
204 -}