public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-ml/ppx_enumerate/, dev-ml/ppx_enumerate/files/
@ 2016-05-03 17:44 Alexis Ballier
  0 siblings, 0 replies; 2+ messages in thread
From: Alexis Ballier @ 2016-05-03 17:44 UTC (permalink / raw
  To: gentoo-commits

commit:     22b4d5b0c22cc0a4bc87165b21c3d158976cd677
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue May  3 17:22:29 2016 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue May  3 17:44:22 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22b4d5b0

dev-ml/ppx_enumerate: fix build with ocaml 4.03

Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 dev-ml/ppx_enumerate/files/oc43.patch              | 40 ++++++++++++++++++++++
 .../ppx_enumerate/ppx_enumerate-113.33.00.ebuild   |  4 +++
 2 files changed, 44 insertions(+)

diff --git a/dev-ml/ppx_enumerate/files/oc43.patch b/dev-ml/ppx_enumerate/files/oc43.patch
new file mode 100644
index 0000000..b04635f
--- /dev/null
+++ b/dev-ml/ppx_enumerate/files/oc43.patch
@@ -0,0 +1,40 @@
+diff -uNr ppx_enumerate-113.33.00/_oasis ppx_enumerate-113.33.00+4.03/_oasis
+--- ppx_enumerate-113.33.00/_oasis	2016-03-09 16:44:54.000000000 +0100
++++ ppx_enumerate-113.33.00+4.03/_oasis	2016-03-22 15:13:50.000000000 +0100
+@@ -1,8 +1,8 @@
+ OASISFormat:      0.4
+-OCamlVersion:     >= 4.02.3
++OCamlVersion:     >= 4.03.0
+ FindlibVersion:   >= 1.3.2
+ Name:             ppx_enumerate
+-Version:          113.33.00
++Version:          113.33.00+4.03
+ Synopsis:         Generate a list containing all values of a finite type
+ Authors:          Jane Street Group, LLC <opensource@janestreet.com>
+ Copyrights:       (C) 2015-2016 Jane Street Group LLC <opensource@janestreet.com>
+diff -uNr ppx_enumerate-113.33.00/opam ppx_enumerate-113.33.00+4.03/opam
+--- ppx_enumerate-113.33.00/opam	2016-03-18 12:08:01.000000000 +0100
++++ ppx_enumerate-113.33.00+4.03/opam	2016-03-22 17:51:36.000000000 +0100
+@@ -16,4 +16,4 @@
+   "ppx_tools"     {>= "0.99.3"}
+   "ppx_type_conv"
+ ]
+-available: [ ocaml-version >= "4.02.3" ]
++available: [ ocaml-version >= "4.03.0" ]
+diff -uNr ppx_enumerate-113.33.00/src/ppx_enumerate.ml ppx_enumerate-113.33.00+4.03/src/ppx_enumerate.ml
+--- ppx_enumerate-113.33.00/src/ppx_enumerate.ml	2016-03-09 16:44:54.000000000 +0100
++++ ppx_enumerate-113.33.00+4.03/src/ppx_enumerate.ml	2016-03-22 15:13:50.000000000 +0100
+@@ -226,10 +226,11 @@
+ 
+ and constructor_case loc cd =
+   match cd.pcd_args with
+-  | [] -> [%expr [ [%e econstruct cd None ] ] ]
+-  | tps ->
++  | Pcstr_tuple [] -> [%expr [ [%e econstruct cd None ] ] ]
++  | Pcstr_tuple tps ->
+     product loc tps (fun x ->
+       econstruct cd (Some (pexp_tuple ~loc x)))
++  | Pcstr_record _ -> failwith "Pcstr_record not supported"
+ 
+ and product loc tps f =
+     let all = List.map tps ~f:(fun tp -> enum ~main_type:tp tp) in

diff --git a/dev-ml/ppx_enumerate/ppx_enumerate-113.33.00.ebuild b/dev-ml/ppx_enumerate/ppx_enumerate-113.33.00.ebuild
index 1f0f377..ac7565e 100644
--- a/dev-ml/ppx_enumerate/ppx_enumerate-113.33.00.ebuild
+++ b/dev-ml/ppx_enumerate/ppx_enumerate-113.33.00.ebuild
@@ -22,6 +22,10 @@ DEPEND="dev-ml/ppx_tools:=
 RDEPEND="${DEPEND}"
 DEPEND="${DEPEND} dev-ml/opam"
 
+src_prepare() {
+	has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch"
+}
+
 src_configure() {
 	emake setup.exe
 	OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ml/ppx_enumerate/, dev-ml/ppx_enumerate/files/
@ 2017-04-02  8:38 Alexis Ballier
  0 siblings, 0 replies; 2+ messages in thread
From: Alexis Ballier @ 2017-04-02  8:38 UTC (permalink / raw
  To: gentoo-commits

commit:     03ee331c683b178b7ddfffc3c9c2149c41d3ceed
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  1 16:40:47 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sun Apr  2 08:37:58 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03ee331c

dev-ml/ppx_enumerate: Bump to 0.9.0

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-ml/ppx_enumerate/Manifest                      |  2 +-
 dev-ml/ppx_enumerate/files/oc43.patch              | 40 --------------------
 dev-ml/ppx_enumerate/ppx_enumerate-0.9.0.ebuild    | 32 ++++++++++++++++
 .../ppx_enumerate/ppx_enumerate-113.33.00.ebuild   | 44 ----------------------
 4 files changed, 33 insertions(+), 85 deletions(-)

diff --git a/dev-ml/ppx_enumerate/Manifest b/dev-ml/ppx_enumerate/Manifest
index 0e9288aa18d..d43aff91a37 100644
--- a/dev-ml/ppx_enumerate/Manifest
+++ b/dev-ml/ppx_enumerate/Manifest
@@ -1 +1 @@
-DIST ppx_enumerate-113.33.00.tar.gz 56173 SHA256 9eaa3804b1553594d3422bc86aecd13b91a69b879b8e2a826a2862beb4e91973 SHA512 9792f991a570a7a636ca528e4ff400cde147a8a034e54dda853b9df677aa3a7e8d2c570045c11d4beb3ce6ef827116a65f8ac0ceda969b53fb99dbba8ce99bf9 WHIRLPOOL 416690f9f7153bacbb086fe1ab3394585b4be878f4be1e706df11bdcfba6471ee6d724b89ba9b2880c1c74a9e3486ff8b5e59d8608e1d445c1b082dd60fbd244
+DIST ppx_enumerate-0.9.0.tar.gz 10967 SHA256 294cf49af97bfae335f7edbe64eb0e97bda736af949ff57ca9c4d195e54e9dfb SHA512 46e979528af75313fcbfee4d1437156ded90d46f7608271a77ad41bb7e087e2ea4f61f534624b23679c4edf812d2fcfe26b9b634c3fcb691e2da2388ae04950c WHIRLPOOL 6c33184295d1f8e4d13dc5d619b3d9df3981e8e7f8042e129b316f4cfab2a0ef8224eca7b716bec68d75bf86bf4027eded73a035c02e2bacc95ec49ea18f1785

diff --git a/dev-ml/ppx_enumerate/files/oc43.patch b/dev-ml/ppx_enumerate/files/oc43.patch
deleted file mode 100644
index b04635f9790..00000000000
--- a/dev-ml/ppx_enumerate/files/oc43.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-diff -uNr ppx_enumerate-113.33.00/_oasis ppx_enumerate-113.33.00+4.03/_oasis
---- ppx_enumerate-113.33.00/_oasis	2016-03-09 16:44:54.000000000 +0100
-+++ ppx_enumerate-113.33.00+4.03/_oasis	2016-03-22 15:13:50.000000000 +0100
-@@ -1,8 +1,8 @@
- OASISFormat:      0.4
--OCamlVersion:     >= 4.02.3
-+OCamlVersion:     >= 4.03.0
- FindlibVersion:   >= 1.3.2
- Name:             ppx_enumerate
--Version:          113.33.00
-+Version:          113.33.00+4.03
- Synopsis:         Generate a list containing all values of a finite type
- Authors:          Jane Street Group, LLC <opensource@janestreet.com>
- Copyrights:       (C) 2015-2016 Jane Street Group LLC <opensource@janestreet.com>
-diff -uNr ppx_enumerate-113.33.00/opam ppx_enumerate-113.33.00+4.03/opam
---- ppx_enumerate-113.33.00/opam	2016-03-18 12:08:01.000000000 +0100
-+++ ppx_enumerate-113.33.00+4.03/opam	2016-03-22 17:51:36.000000000 +0100
-@@ -16,4 +16,4 @@
-   "ppx_tools"     {>= "0.99.3"}
-   "ppx_type_conv"
- ]
--available: [ ocaml-version >= "4.02.3" ]
-+available: [ ocaml-version >= "4.03.0" ]
-diff -uNr ppx_enumerate-113.33.00/src/ppx_enumerate.ml ppx_enumerate-113.33.00+4.03/src/ppx_enumerate.ml
---- ppx_enumerate-113.33.00/src/ppx_enumerate.ml	2016-03-09 16:44:54.000000000 +0100
-+++ ppx_enumerate-113.33.00+4.03/src/ppx_enumerate.ml	2016-03-22 15:13:50.000000000 +0100
-@@ -226,10 +226,11 @@
- 
- and constructor_case loc cd =
-   match cd.pcd_args with
--  | [] -> [%expr [ [%e econstruct cd None ] ] ]
--  | tps ->
-+  | Pcstr_tuple [] -> [%expr [ [%e econstruct cd None ] ] ]
-+  | Pcstr_tuple tps ->
-     product loc tps (fun x ->
-       econstruct cd (Some (pexp_tuple ~loc x)))
-+  | Pcstr_record _ -> failwith "Pcstr_record not supported"
- 
- and product loc tps f =
-     let all = List.map tps ~f:(fun tp -> enum ~main_type:tp tp) in

diff --git a/dev-ml/ppx_enumerate/ppx_enumerate-0.9.0.ebuild b/dev-ml/ppx_enumerate/ppx_enumerate-0.9.0.ebuild
new file mode 100644
index 00000000000..7e943ef8c74
--- /dev/null
+++ b/dev-ml/ppx_enumerate/ppx_enumerate-0.9.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Generate a list containing all values of a finite type"
+HOMEPAGE="https://github.com/janestreet/ppx_enumerate"
+SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+	dev-lang/ocaml:=
+	dev-ml/ppx_core:=
+	dev-ml/ppx_driver:=
+	dev-ml/ppx_metaquot:=
+	dev-ml/ppx_type_conv:=
+	dev-ml/ocaml-migrate-parsetree:=
+"
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND} dev-ml/opam dev-ml/jbuilder"
+
+src_install() {
+	opam-installer -i \
+		--prefix="${ED}/usr" \
+		--libdir="${D}/$(ocamlc -where)" \
+		--docdir="${ED}/usr/share/doc/${PF}" \
+		${PN}.install || die
+}

diff --git a/dev-ml/ppx_enumerate/ppx_enumerate-113.33.00.ebuild b/dev-ml/ppx_enumerate/ppx_enumerate-113.33.00.ebuild
deleted file mode 100644
index 5f291ae3013..00000000000
--- a/dev-ml/ppx_enumerate/ppx_enumerate-113.33.00.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit oasis
-
-DESCRIPTION="Generate a list containing all values of a finite type"
-HOMEPAGE="http://www.janestreet.com/ocaml"
-SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0/${PV}"
-KEYWORDS="~amd64"
-IUSE=""
-
-DEPEND="dev-ml/ppx_tools:=
-	dev-ml/ppx_core:=
-	dev-ml/ppx_type_conv:=
-"
-RDEPEND="${DEPEND}"
-DEPEND="${DEPEND} dev-ml/opam"
-
-src_prepare() {
-	has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch"
-}
-
-src_configure() {
-	emake setup.exe
-	OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure
-}
-
-src_compile() {
-	emake
-}
-
-src_install() {
-	opam-installer -i \
-		--prefix="${ED}/usr" \
-		--libdir="${D}/$(ocamlc -where)" \
-		--docdir="${ED}/usr/share/doc/${PF}" \
-		${PN}.install || die
-	dodoc CHANGES.md
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-02  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-02  8:38 [gentoo-commits] repo/gentoo:master commit in: dev-ml/ppx_enumerate/, dev-ml/ppx_enumerate/files/ Alexis Ballier
  -- strict thread matches above, loose matches on Subject: below --
2016-05-03 17:44 Alexis Ballier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox