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/ppx_pipebang/, dev-ml/ppx_pipebang/files/
Date: Sun, 02 Apr 2017 08:38:44
Message-Id: 1491122279.6f0a36a698e75cba55ca15b22bf2368561f6590d.aballier@gentoo
1 commit: 6f0a36a698e75cba55ca15b22bf2368561f6590d
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 1 16:49:32 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 2 08:37:59 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f0a36a6
7
8 dev-ml/ppx_pipebang: bump to 0.9.0
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-ml/ppx_pipebang/Manifest | 2 +-
13 dev-ml/ppx_pipebang/files/oc43.patch | 46 -----------------------
14 dev-ml/ppx_pipebang/ppx_pipebang-0.9.0.ebuild | 31 +++++++++++++++
15 dev-ml/ppx_pipebang/ppx_pipebang-113.33.00.ebuild | 44 ----------------------
16 4 files changed, 32 insertions(+), 91 deletions(-)
17
18 diff --git a/dev-ml/ppx_pipebang/Manifest b/dev-ml/ppx_pipebang/Manifest
19 index e68031d7ff8..e2a633025da 100644
20 --- a/dev-ml/ppx_pipebang/Manifest
21 +++ b/dev-ml/ppx_pipebang/Manifest
22 @@ -1 +1 @@
23 -DIST ppx_pipebang-113.33.00.tar.gz 51353 SHA256 6e43998c5161b87f71a38d197f9d5898ab8ac0e8f7612db64b5c848ee6709204 SHA512 9c057c756b3dbf0ad2306cfc61e9874cb11e050ade05ab2686cfd043fec5e52c17c197aaf6f3ba65c032aa66e810964c4c03b72af64f98e47bf8d532806f62e8 WHIRLPOOL 7a61889c3857591b7f596874d6665f55065d826ed1c6bf645c541816aeafbefec528826dfb48914d875ee9c6ce30f2709d9798aed4d46487827baa2a43eef920
24 +DIST ppx_pipebang-0.9.0.tar.gz 5964 SHA256 5e1021290a2c0514227cef2b34d3d78a199c51233225c8f04146914a10c7ef40 SHA512 d0e82152d257f7214e577e37046877a9c4129c6a9fd79f83912c6335455add4302d927e70117a1e9386c448686d271a7596b3fd2ef0b5f2bda8010cbb9157751 WHIRLPOOL 50d7d91e9be78efb0001d676698605768ec0001a1968d1bc247761d828e42957c8c2d0042c3832a4880f162d55076a354c7ef7e525c3acb31608f41ca921802c
25
26 diff --git a/dev-ml/ppx_pipebang/files/oc43.patch b/dev-ml/ppx_pipebang/files/oc43.patch
27 deleted file mode 100644
28 index 5f10fc02053..00000000000
29 --- a/dev-ml/ppx_pipebang/files/oc43.patch
30 +++ /dev/null
31 @@ -1,46 +0,0 @@
32 -diff -uNr ppx_pipebang-113.33.00/_oasis ppx_pipebang-113.33.00+4.03/_oasis
33 ---- ppx_pipebang-113.33.00/_oasis 2016-03-09 16:44:54.000000000 +0100
34 -+++ ppx_pipebang-113.33.00+4.03/_oasis 2016-03-22 15:13:51.000000000 +0100
35 -@@ -1,8 +1,8 @@
36 - OASISFormat: 0.4
37 --OCamlVersion: >= 4.02.3
38 -+OCamlVersion: >= 4.03.0
39 - FindlibVersion: >= 1.3.2
40 - Name: ppx_pipebang
41 --Version: 113.33.00
42 -+Version: 113.33.00+4.03
43 - Synopsis: A ppx rewriter that inlines reverse application operators `|>` and `|!`
44 - Authors: Jane Street Group, LLC <opensource@××××××××××.com>
45 - Copyrights: (C) 2015-2016 Jane Street Group LLC <opensource@××××××××××.com>
46 -diff -uNr ppx_pipebang-113.33.00/opam ppx_pipebang-113.33.00+4.03/opam
47 ---- ppx_pipebang-113.33.00/opam 2016-03-18 12:08:01.000000000 +0100
48 -+++ ppx_pipebang-113.33.00+4.03/opam 2016-03-22 17:51:37.000000000 +0100
49 -@@ -16,4 +16,4 @@
50 - "ppx_driver"
51 - "ppx_tools" {>= "0.99.3"}
52 - ]
53 --available: [ ocaml-version >= "4.02.3" ]
54 -+available: [ ocaml-version >= "4.03.0" ]
55 -diff -uNr ppx_pipebang-113.33.00/src/ppx_pipebang.ml ppx_pipebang-113.33.00+4.03/src/ppx_pipebang.ml
56 ---- ppx_pipebang-113.33.00/src/ppx_pipebang.ml 2016-03-09 16:44:54.000000000 +0100
57 -+++ ppx_pipebang-113.33.00+4.03/src/ppx_pipebang.ml 2016-03-22 15:13:51.000000000 +0100
58 -@@ -11,16 +11,16 @@
59 - let loc = e.pexp_loc in
60 - match e.pexp_desc with
61 - | Pexp_apply ({ pexp_desc = Pexp_ident { txt = Lident ("|!" | "|>"); _ }; _ },
62 -- [("", x); ("", y)]) -> begin
63 -+ [(Nolabel, x); (Nolabel, y)]) -> begin
64 - let x = self#expression x in
65 - let y = self#expression y in
66 - match y with
67 - | { pexp_desc = Pexp_construct (id, None); _ } ->
68 - { y with pexp_desc = Pexp_construct (id, Some x) }
69 - | { pexp_desc = Pexp_apply (f, args); pexp_attributes = []; _ } ->
70 -- { e with pexp_desc = Pexp_apply (f, args @ [("", x)]) }
71 -+ { e with pexp_desc = Pexp_apply (f, args @ [(Nolabel, x)]) }
72 - | _ ->
73 -- { e with pexp_desc = Pexp_apply (y, [("", x)]) }
74 -+ { e with pexp_desc = Pexp_apply (y, [(Nolabel, x)]) }
75 - end
76 - | Pexp_ident { txt = Lident ("|!" | "|>" as s); _ } ->
77 - Location.raise_errorf ~loc "%s must be applied to two arguments" s
78
79 diff --git a/dev-ml/ppx_pipebang/ppx_pipebang-0.9.0.ebuild b/dev-ml/ppx_pipebang/ppx_pipebang-0.9.0.ebuild
80 new file mode 100644
81 index 00000000000..8d864327b5a
82 --- /dev/null
83 +++ b/dev-ml/ppx_pipebang/ppx_pipebang-0.9.0.ebuild
84 @@ -0,0 +1,31 @@
85 +# Copyright 1999-2017 Gentoo Foundation
86 +# Distributed under the terms of the GNU General Public License v2
87 +
88 +EAPI=6
89 +
90 +DESCRIPTION="A ppx rewriter that inlines reverse application operators |> and |!"
91 +HOMEPAGE="https://github.com/janestreet/ppx_pipebang"
92 +SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
93 +
94 +LICENSE="Apache-2.0"
95 +SLOT="0/${PV}"
96 +KEYWORDS="~amd64"
97 +IUSE=""
98 +
99 +DEPEND="
100 + dev-lang/ocaml:=
101 + dev-ml/ppx_core:=
102 + dev-ml/ppx_driver:=
103 + dev-ml/ppx_metaquot:=
104 + dev-ml/ocaml-migrate-parsetree:=
105 +"
106 +RDEPEND="${DEPEND}"
107 +DEPEND="${DEPEND} dev-ml/opam dev-ml/jbuilder"
108 +
109 +src_install() {
110 + opam-installer -i \
111 + --prefix="${ED}/usr" \
112 + --libdir="${D}/$(ocamlc -where)" \
113 + --docdir="${ED}/usr/share/doc/${PF}" \
114 + ${PN}.install || die
115 +}
116
117 diff --git a/dev-ml/ppx_pipebang/ppx_pipebang-113.33.00.ebuild b/dev-ml/ppx_pipebang/ppx_pipebang-113.33.00.ebuild
118 deleted file mode 100644
119 index 5c92a8175ac..00000000000
120 --- a/dev-ml/ppx_pipebang/ppx_pipebang-113.33.00.ebuild
121 +++ /dev/null
122 @@ -1,44 +0,0 @@
123 -# Copyright 1999-2015 Gentoo Foundation
124 -# Distributed under the terms of the GNU General Public License v2
125 -
126 -EAPI="5"
127 -
128 -inherit oasis
129 -
130 -DESCRIPTION="A ppx rewriter that inlines reverse application operators |> and |!"
131 -HOMEPAGE="http://www.janestreet.com/ocaml"
132 -SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"
133 -
134 -LICENSE="Apache-2.0"
135 -SLOT="0/${PV}"
136 -KEYWORDS="~amd64"
137 -IUSE=""
138 -
139 -DEPEND="dev-ml/ppx_tools:=
140 - dev-ml/ppx_core:=
141 - dev-ml/ppx_driver:=
142 -"
143 -RDEPEND="${DEPEND}"
144 -DEPEND="${DEPEND} dev-ml/opam"
145 -
146 -src_prepare() {
147 - has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch"
148 -}
149 -
150 -src_configure() {
151 - emake setup.exe
152 - OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure
153 -}
154 -
155 -src_compile() {
156 - emake
157 -}
158 -
159 -src_install() {
160 - opam-installer -i \
161 - --prefix="${ED}/usr" \
162 - --libdir="${D}/$(ocamlc -where)" \
163 - --docdir="${ED}/usr/share/doc/${PF}" \
164 - ${PN}.install || die
165 - dodoc README.md
166 -}