summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-04-01 18:21:32 +0200
committerAlexis Ballier <aballier@gentoo.org>2017-04-02 10:37:51 +0200
commitbbc25575b11b46447c34a6f4ff92145205a69e4b (patch)
treec7fcccc7751c0fc5d0ebc9da1f44b11c96269df7
parentdev-ml/async_extra: Bump to 0.9.0 (diff)
downloadgentoo-bbc25575b11b46447c34a6f4ff92145205a69e4b.tar.gz
gentoo-bbc25575b11b46447c34a6f4ff92145205a69e4b.tar.bz2
gentoo-bbc25575b11b46447c34a6f4ff92145205a69e4b.zip
dev-ml/ppx_typerep_conv: bump to 0.9.0
Package-Manager: Portage-2.3.5, Repoman-2.3.2
-rw-r--r--dev-ml/ppx_typerep_conv/Manifest2
-rw-r--r--dev-ml/ppx_typerep_conv/files/oc43.patch61
-rw-r--r--dev-ml/ppx_typerep_conv/ppx_typerep_conv-0.9.0.ebuild33
-rw-r--r--dev-ml/ppx_typerep_conv/ppx_typerep_conv-113.33.00.ebuild46
4 files changed, 34 insertions, 108 deletions
diff --git a/dev-ml/ppx_typerep_conv/Manifest b/dev-ml/ppx_typerep_conv/Manifest
index fe3ab9a47e17..82f1c0dbb5a5 100644
--- a/dev-ml/ppx_typerep_conv/Manifest
+++ b/dev-ml/ppx_typerep_conv/Manifest
@@ -1 +1 @@
-DIST ppx_typerep_conv-113.33.00.tar.gz 56347 SHA256 b7e622fe0cec3e91096ed5b9a69e74689d580974caab579aa01bebcf8ca82d14 SHA512 419c76b6ba0ed1806760180a2ec84684901323209ca4af3d97e1894190090a73c4327686f6fb30769d8bea50a202eab3ca2326b79209a9d13164a4467f4b0644 WHIRLPOOL 7143b69d02950eef642a85989ff5e10781884cd8219365147993e6bac761fda46c115d6462b301157150e055812868b280324a1a0cbe7e6b45e7ed8e041cf140
+DIST ppx_typerep_conv-0.9.0.tar.gz 10844 SHA256 0527bf467b4d846f050d6f842d79710a45d2ca42c7ee79df1e5b93fd17b36ee3 SHA512 155838bf6dce45a043624845ce882eee374df344f76a9433a1170d89cc27856a634f4ca31ad28e46b28c5103d00c3d8d7d79692872c5dfc35d0b4a7eebdb3d1d WHIRLPOOL ff4b3305ebbe5f7041b343cdccbcb193fd24e7a09411e8a03a6faaa68b3c430aaa67f516b3a9ae15760c0c7ddea82612b09c454c6116eb1176a52f8f2f683713
diff --git a/dev-ml/ppx_typerep_conv/files/oc43.patch b/dev-ml/ppx_typerep_conv/files/oc43.patch
deleted file mode 100644
index 3f3a641df883..000000000000
--- a/dev-ml/ppx_typerep_conv/files/oc43.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-diff -uNr ppx_typerep_conv-113.33.00/_oasis ppx_typerep_conv-113.33.00+4.03/_oasis
---- ppx_typerep_conv-113.33.00/_oasis 2016-03-09 16:44:55.000000000 +0100
-+++ ppx_typerep_conv-113.33.00+4.03/_oasis 2016-03-22 15:13:51.000000000 +0100
-@@ -1,8 +1,8 @@
- OASISFormat: 0.4
--OCamlVersion: >= 4.02.3
-+OCamlVersion: >= 4.03.0
- FindlibVersion: >= 1.3.2
- Name: ppx_typerep_conv
--Version: 113.33.00
-+Version: 113.33.00+4.03
- Synopsis: Generation of runtime types from type declarations
- Authors: Jane Street Group, LLC <opensource@janestreet.com>
- Copyrights: (C) 2015-2016 Jane Street Group LLC <opensource@janestreet.com>
-diff -uNr ppx_typerep_conv-113.33.00/opam ppx_typerep_conv-113.33.00+4.03/opam
---- ppx_typerep_conv-113.33.00/opam 2016-03-18 12:08:01.000000000 +0100
-+++ ppx_typerep_conv-113.33.00+4.03/opam 2016-03-22 17:51:38.000000000 +0100
-@@ -17,4 +17,4 @@
- "ppx_type_conv"
- "typerep"
- ]
--available: [ ocaml-version >= "4.02.3" ]
-+available: [ ocaml-version >= "4.03.0" ]
-diff -uNr ppx_typerep_conv-113.33.00/src/ppx_typerep_conv.ml ppx_typerep_conv-113.33.00+4.03/src/ppx_typerep_conv.ml
---- ppx_typerep_conv-113.33.00/src/ppx_typerep_conv.ml 2016-03-09 16:44:55.000000000 +0100
-+++ ppx_typerep_conv-113.33.00+4.03/src/ppx_typerep_conv.ml 2016-03-22 15:13:51.000000000 +0100
-@@ -134,7 +134,7 @@
- let label = cd.pcd_name.txt in
- let loc = cd.pcd_loc in
- match cd.pcd_args with
-- | [] ->
-+ | Pcstr_tuple [] ->
- { label;
- ctyp = None;
- poly = false;
-@@ -142,7 +142,7 @@
- index;
- arity_index = no_arg ();
- }
-- | args ->
-+ | Pcstr_tuple args ->
- let arity = List.length args in
- let ctyp = ptyp_tuple ~loc args in
- { label;
-@@ -152,6 +152,7 @@
- index;
- arity_index = with_arg ();
- }
-+ | Pcstr_record _ -> failwith "Pcstr_record not supported"
- in
- List.mapi cds ~f:mapi
- end
-@@ -263,7 +264,7 @@
- [%stri let name = [%e estring ~loc full_type_name] ]
- in
- pmod_structure ~loc
-- [ pstr_type ~loc [td]
-+ [ pstr_type ~loc Nonrecursive [td]
- ; name_def
- ]
-
diff --git a/dev-ml/ppx_typerep_conv/ppx_typerep_conv-0.9.0.ebuild b/dev-ml/ppx_typerep_conv/ppx_typerep_conv-0.9.0.ebuild
new file mode 100644
index 000000000000..1d4adf4562b2
--- /dev/null
+++ b/dev-ml/ppx_typerep_conv/ppx_typerep_conv-0.9.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Generation of runtime types from type declarations"
+HOMEPAGE="https://github.com/janestreet/ppx_typerep_conv"
+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/typerep:=
+ 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_typerep_conv/ppx_typerep_conv-113.33.00.ebuild b/dev-ml/ppx_typerep_conv/ppx_typerep_conv-113.33.00.ebuild
deleted file mode 100644
index 037a8f218255..000000000000
--- a/dev-ml/ppx_typerep_conv/ppx_typerep_conv-113.33.00.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit oasis
-
-DESCRIPTION="Generation of runtime types from type declarations"
-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_core:=
- dev-ml/ppx_tools:=
- dev-ml/ppx_type_conv:=
- dev-ml/typerep:=
- "
-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
-}