diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-09-26 14:47:10 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-09-26 17:03:08 +0200 |
commit | b318da7883e9d6351f1bcb0acc03b50a07d0165c (patch) | |
tree | 581211637f5e27a903e3a9dbdce5725ebffb8032 /dev-ml | |
parent | media-sound/qsampler: remove old (diff) | |
download | gentoo-b318da7883e9d6351f1bcb0acc03b50a07d0165c.tar.gz gentoo-b318da7883e9d6351f1bcb0acc03b50a07d0165c.tar.bz2 gentoo-b318da7883e9d6351f1bcb0acc03b50a07d0165c.zip |
dev-ml/ppx_deriving: bump to 4.1
Package-Manager: portage-2.3.1
Diffstat (limited to 'dev-ml')
-rw-r--r-- | dev-ml/ppx_deriving/Manifest | 1 | ||||
-rw-r--r-- | dev-ml/ppx_deriving/ppx_deriving-4.1.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-ml/ppx_deriving/Manifest b/dev-ml/ppx_deriving/Manifest index bfd7ada0cd45..fb30a7d5117f 100644 --- a/dev-ml/ppx_deriving/Manifest +++ b/dev-ml/ppx_deriving/Manifest @@ -1,2 +1,3 @@ DIST ppx_deriving-3.3.tar.gz 43707 SHA256 6e7424f36cc35d1266acc3dcec0371913fec432d1fd5b4892a009e2db26140c8 SHA512 d8c4a289c62f4b2e4a1affcf6225c5929dd45fb705714b7071b0c01609c0bf833b0367d35f95cac344ad9d06a954f86b8c440729193112d723442f790a5c2af3 WHIRLPOOL 121ffbafd1314ffdcbc593808e691f5c3e370c62bc4bac3608eac565fabe8af1a55522b3e79dfafbf5b65f497486851c1d5aaa15d44fe6f3e8e56504353deb65 DIST ppx_deriving-4.0.tar.gz 45941 SHA256 df2cc4d752e70cbb13ceadae620fbb25e94913a50633f1829e6a8a2c57c278b2 SHA512 1487650ca70b5e7402f49d533aa9d6fb7d2dbf84d8c0e2a12b22659814e7c003577a793376f3848047423e6502e50e5be3714c8fca10bd518818e64c8a09f660 WHIRLPOOL 0952372e94021827fe4c959a9d50e8418efc7252d6085d269affba0d8fdc7c48d5e7905ace06ac9882e3741c3469b0ffcfaa009ef6723c01e76fbc7f209d5540 +DIST ppx_deriving-4.1.tar.gz 46502 SHA256 74831b9688140f27304c55e82f930d47107f4587f4e7cbb88ddfc820c23321bb SHA512 5191565254edd036ebe4d1eae1c660bcac293c000ce1f3eb12aeb1fb05b82d93bb28ddb88ab31967f98827838ce1c57e6f83f767f4dfe41eb265bad6dfaa5e8a WHIRLPOOL ca7860a918384de36fd3b3f6c259117f654357dd78193fe23d1d3324b61e08df8792984cb93801a92e80100140f0fdae999040cf0965237c9faba4d3f0a46ee0 diff --git a/dev-ml/ppx_deriving/ppx_deriving-4.1.ebuild b/dev-ml/ppx_deriving/ppx_deriving-4.1.ebuild new file mode 100644 index 000000000000..342f5d799f52 --- /dev/null +++ b/dev-ml/ppx_deriving/ppx_deriving-4.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit findlib + +DESCRIPTION="Type-driven code generation for OCaml" +HOMEPAGE="https://github.com/whitequark/ppx_deriving" +SRC_URI="https://github.com/whitequark/ppx_deriving/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="doc +ocamlopt test" + +DEPEND="dev-ml/ppx_tools:= + >=dev-lang/ocaml-4.02.3:=[ocamlopt?]" +RDEPEND="${DEPEND}" +DEPEND="${RDEPEND} + dev-ml/cppo + dev-ml/opam + test? ( dev-ml/ounit )" + +src_compile() { + cp pkg/META.in pkg/META || die + ocaml pkg/build.ml \ + native=$(usex ocamlopt true false) \ + native-dynlink=$(usex ocamlopt true false) \ + || die + use doc && emake doc +} + +src_test() { + ocamlbuild -j 0 -use-ocamlfind -classic-display \ + src_test/test_ppx_deriving.byte -- || die + if use ocamlopt; then + ocamlbuild -j 0 -use-ocamlfind -classic-display \ + src_test/test_ppx_deriving.native -- || die + fi +} + +src_install() { + opam-installer -i \ + --prefix="${ED}/usr" \ + --libdir="${D}/$(ocamlc -where)" \ + --docdir="${ED}/usr/share/doc/${PF}" \ + ${PN}.install || die + mv "${ED}/usr/lib/ppx_deriving/ppx_deriving" "${D}/$(ocamlc -where)/ppx_deriving/" || die + + use doc && dohtml api.docdir/* + + dodoc CHANGELOG.md README.md +} |