diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-04-01 18:22:00 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-04-02 10:37:51 +0200 |
commit | ed1cdd4deebe8b6493ff8896eb1982189a81c44a (patch) | |
tree | af41366f55056fa5659b79914a5e979968accc80 /dev-ml/ppx_inline_test | |
parent | dev-ml/ppx_typerep_conv: bump to 0.9.0 (diff) | |
download | gentoo-ed1cdd4deebe8b6493ff8896eb1982189a81c44a.tar.gz gentoo-ed1cdd4deebe8b6493ff8896eb1982189a81c44a.tar.bz2 gentoo-ed1cdd4deebe8b6493ff8896eb1982189a81c44a.zip |
dev-ml/ppx_inline_test: Bump to 0.9.0
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-ml/ppx_inline_test')
-rw-r--r-- | dev-ml/ppx_inline_test/Manifest | 2 | ||||
-rw-r--r-- | dev-ml/ppx_inline_test/files/oc43.patch | 59 | ||||
-rw-r--r-- | dev-ml/ppx_inline_test/ppx_inline_test-0.9.0.ebuild | 33 | ||||
-rw-r--r-- | dev-ml/ppx_inline_test/ppx_inline_test-113.33.00.ebuild | 47 |
4 files changed, 34 insertions, 107 deletions
diff --git a/dev-ml/ppx_inline_test/Manifest b/dev-ml/ppx_inline_test/Manifest index 371d78fa3fcc..d3a7f4885b67 100644 --- a/dev-ml/ppx_inline_test/Manifest +++ b/dev-ml/ppx_inline_test/Manifest @@ -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 index b5fbe1178e95..000000000000 --- a/dev-ml/ppx_inline_test/files/oc43.patch +++ /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 index 000000000000..573ce0ffcdf1 --- /dev/null +++ b/dev-ml/ppx_inline_test/ppx_inline_test-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="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 index d9d1d1e3cd81..000000000000 --- a/dev-ml/ppx_inline_test/ppx_inline_test-113.33.00.ebuild +++ /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 -} |