dev-ml/ppx_inline_test: Bump to 0.9.0
authorAlexis Ballier <aballier@gentoo.org>
Sat, 1 Apr 2017 16:22:00 +0000 (18:22 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 2 Apr 2017 08:37:51 +0000 (10:37 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-ml/ppx_inline_test/Manifest
dev-ml/ppx_inline_test/files/oc43.patch [deleted file]
dev-ml/ppx_inline_test/ppx_inline_test-0.9.0.ebuild [new file with mode: 0644]
dev-ml/ppx_inline_test/ppx_inline_test-113.33.00.ebuild [deleted file]

index 371d78fa3fcc8dd211d0e1b1a11fa20f05990776..d3a7f4885b678135871efdd1c34f3057b5eca19e 100644 (file)
@@ -1 +1 @@
-DIST ppx_inline_test-113.33.00.tar.gz 62558 SHA256 30236e689413f85c6b68ce1d41776c0cddb8e67a030ebd08ec1d76c1cae9cc92 SHA512 94af36ca1f8e77d8e2b1834efaf6e4a1c2aaa89afc4b24265650df79bf4c1da057fa22d2f618aa240e59c37379923205f8de292255d891c364277bc7b93dd399 WHIRLPOOL 490d28575923f3db9783d71605f2b5b46ac26f2f3d07fc57f90715cd6cb7ea69ecb567afbeda0c940b456d40ce0a1b61f9fd750d10ed23e8b204c95e88481e93
+DIST ppx_inline_test-0.9.0.tar.gz 19059 SHA256 c69968b180d524a13712bba3869078fe224f4214fa65a8713cc3e309075af9bf SHA512 639614beaeb4aedd5450062f90a42898db24347f94f1595fc9adad2a837a54723e6f92e72b16709cb15a18c0b9ae3eb7089cc92bb239266a0d6d7e82f5f9e642 WHIRLPOOL 796dac694898c26ebb5d727de82cabcd8391ab01748a2f8ce725965b50b0cf1ee394ce3a5cb0c8f228379852ee76cea5897272bd1857e3f597936608311d3461
diff --git a/dev-ml/ppx_inline_test/files/oc43.patch b/dev-ml/ppx_inline_test/files/oc43.patch
deleted file mode 100644 (file)
index b5fbe11..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-diff -uNr ppx_inline_test-113.33.00/_oasis ppx_inline_test-113.33.00+4.03/_oasis
---- ppx_inline_test-113.33.00/_oasis   2016-03-09 16:44:54.000000000 +0100
-+++ ppx_inline_test-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_inline_test
--Version:          113.33.00
-+Version:          113.33.00+4.03
- Synopsis:         Syntax extension for writing in-line tests in ocaml code
- Authors:          Jane Street Group, LLC <opensource@janestreet.com>
- Copyrights:       (C) 2015-2016 Jane Street Group LLC <opensource@janestreet.com>
-diff -uNr ppx_inline_test-113.33.00/opam ppx_inline_test-113.33.00+4.03/opam
---- ppx_inline_test-113.33.00/opam     2016-03-18 12:08:01.000000000 +0100
-+++ ppx_inline_test-113.33.00+4.03/opam        2016-03-22 17:51:37.000000000 +0100
-@@ -16,4 +16,4 @@
-   "ppx_driver"
-   "ppx_tools"  {>= "0.99.3"}
- ]
--available: [ ocaml-version >= "4.02.3" ]
-+available: [ ocaml-version >= "4.03.0" ]
-diff -uNr ppx_inline_test-113.33.00/src/ppx_inline_test.ml ppx_inline_test-113.33.00+4.03/src/ppx_inline_test.ml
---- ppx_inline_test-113.33.00/src/ppx_inline_test.ml   2016-03-09 16:44:54.000000000 +0100
-+++ ppx_inline_test-113.33.00+4.03/src/ppx_inline_test.ml      2016-03-22 15:13:50.000000000 +0100
-@@ -96,18 +96,18 @@
- let expand_test ~loc ~path:_ id e =
-   assert_enabled loc;
--  apply_to_descr "test" ~loc (Some e) id (pexp_fun ~loc "" None (punit ~loc) e)
-+  apply_to_descr "test" ~loc (Some e) id (pexp_fun ~loc Nolabel None (punit ~loc) e)
- ;;
- let expand_test_unit ~loc ~path:_ id e =
-   assert_enabled loc;
--  apply_to_descr "test_unit" ~loc (Some e) id (pexp_fun ~loc "" None (punit ~loc) e)
-+  apply_to_descr "test_unit" ~loc (Some e) id (pexp_fun ~loc Nolabel None (punit ~loc) e)
- ;;
- let expand_test_module ~loc ~path:_ id m =
-   assert_enabled loc;
-   apply_to_descr "test_module" ~loc ~inner_loc:m.pmod_loc None id
--    (pexp_fun ~loc "" None (punit ~loc)
-+    (pexp_fun ~loc Nolabel None (punit ~loc)
-        (pexp_letmodule ~loc (Located.mk ~loc "M")
-           m
-           (eunit ~loc)))
-@@ -120,9 +120,8 @@
-     pstr ((
-       pstr_value nonrecursive (
-         value_binding
--          ~pat:(map (pstring __) ~f:(fun f x -> f (Some x)))
-+          ~pat:(alt_option (pstring __) ppat_any)
-           ~expr ^:: nil)
--      ||| map (pstr_eval expr nil) ~f:(fun f -> f None)
-     ) ^:: nil)
-   let test =
diff --git a/dev-ml/ppx_inline_test/ppx_inline_test-0.9.0.ebuild b/dev-ml/ppx_inline_test/ppx_inline_test-0.9.0.ebuild
new file mode 100644 (file)
index 0000000..573ce0f
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Syntax extension for writing in-line tests in ocaml code"
+HOMEPAGE="https://github.com/janestreet/ppx_inline_test"
+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/base:=
+       dev-ml/ppx_core:=
+       dev-ml/ppx_driver:=
+       dev-ml/ppx_metaquot:=
+       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_inline_test/ppx_inline_test-113.33.00.ebuild b/dev-ml/ppx_inline_test/ppx_inline_test-113.33.00.ebuild
deleted file mode 100644 (file)
index d9d1d1e..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit oasis eutils
-
-MY_P=${PN/-/_}-${PV}
-DESCRIPTION="Syntax extension for writing in-line tests in ocaml code"
-HOMEPAGE="http://www.janestreet.com/ocaml"
-SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${MY_P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0/${PV}"
-KEYWORDS="~amd64"
-IUSE=""
-
-DEPEND="dev-ml/ppx_tools:=
-       dev-ml/ppx_driver:=
-       dev-ml/ppx_core:="
-
-RDEPEND="${DEPEND}"
-DEPEND="${DEPEND} dev-ml/opam"
-
-S="${WORKDIR}/${MY_P}"
-
-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
-}