diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-03-16 19:29:44 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-03-16 19:29:44 +0100 |
commit | 655f57e731060246d915717d8df31ad8a0e2d958 (patch) | |
tree | ecf712a815b819304ba42adc95ba8319e4aea97b | |
parent | profiles/package.mask: update dev-ml/ppx_tools mask to match current versionn... (diff) | |
download | gentoo-655f57e731060246d915717d8df31ad8a0e2d958.tar.gz gentoo-655f57e731060246d915717d8df31ad8a0e2d958.tar.bz2 gentoo-655f57e731060246d915717d8df31ad8a0e2d958.zip |
dev-ml/ppx_deriving: bump to 3.3
Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
-rw-r--r-- | dev-ml/ppx_deriving/Manifest | 1 | ||||
-rw-r--r-- | dev-ml/ppx_deriving/ppx_deriving-3.3.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-ml/ppx_deriving/Manifest b/dev-ml/ppx_deriving/Manifest index 3c6b3b1ce790..f4db9447260a 100644 --- a/dev-ml/ppx_deriving/Manifest +++ b/dev-ml/ppx_deriving/Manifest @@ -2,3 +2,4 @@ DIST ppx_deriving-3.0.tar.gz 38560 SHA256 1998607e68b35b6c61e1fb33c03b523f3bf88f DIST ppx_deriving-3.1.tar.gz 40720 SHA256 19babff7706753d24d4859a24d7303555dd1af125d6ca8a0589b8fac3c110fa7 SHA512 ef3174f4fbecea9c613deb62aebb45de2b2abf640d557973f0621575a391cc11fc4135c782dc3d202012ddbeaadb3c7dd84f42d08aef0ba668bd169dedfeedf0 WHIRLPOOL cdace363540346f3660811c57f7c10757dd09011fed1300fe29e3746297cae9ed3567e2b865c20dda6061404bb10c5b1e3350acfa8ad7f92bb20199f0a8052ea DIST ppx_deriving-3.2-ocaml403.patch.bz2 23241 SHA256 2ef8fe4346283151d2af6385473d1b78c7a8da40b83386357d894e38b8f96cf9 SHA512 2f43bd7ed3c34f3f1f41780eb11f552313e0ed36ef553fd00acce04e16caef2588c8ed171f8f63e00fc5d43a42ab2dfcc1085071a2dddd6a3adc46d993522239 WHIRLPOOL 5b926588237393bdc061b28499de3728d415cf0f6af902affad9714bf86024f56f2b29f6786d6e89b3d62ebd8e558d52a7851092d652638d400e986c85b25147 DIST ppx_deriving-3.2.tar.gz 41202 SHA256 9328c7bfbdc78463a302b45f7a8102bc164f345c5d1582dd51c4e77fd38997e3 SHA512 dd25ddbe812524b3035333c16e62d6423cb20fff2160b18cf20260dfbf214afc7ee3bbe6275ba6d1f357c686d738bc2bdb96d413896d970942592ac971398ad9 WHIRLPOOL 47e9be6a8a2528c429b7c615240f374f988b8a21aba759539bfbe54f08abfff2e336b4b37692b204b77a4ff6b1a76e7864d1834ae32c6afa9d18119ff83c9c41 +DIST ppx_deriving-3.3.tar.gz 43707 SHA256 6e7424f36cc35d1266acc3dcec0371913fec432d1fd5b4892a009e2db26140c8 SHA512 d8c4a289c62f4b2e4a1affcf6225c5929dd45fb705714b7071b0c01609c0bf833b0367d35f95cac344ad9d06a954f86b8c440729193112d723442f790a5c2af3 WHIRLPOOL 121ffbafd1314ffdcbc593808e691f5c3e370c62bc4bac3608eac565fabe8af1a55522b3e79dfafbf5b65f497486851c1d5aaa15d44fe6f3e8e56504353deb65 diff --git a/dev-ml/ppx_deriving/ppx_deriving-3.3.ebuild b/dev-ml/ppx_deriving/ppx_deriving-3.3.ebuild new file mode 100644 index 000000000000..0099ce56db76 --- /dev/null +++ b/dev-ml/ppx_deriving/ppx_deriving-3.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 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/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 +} |