From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 140F9138330 for ; Thu, 8 Sep 2016 14:57:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CF99E0AC3; Thu, 8 Sep 2016 14:57:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C1696E0AAA for ; Thu, 8 Sep 2016 14:57:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 94EAD340940 for ; Thu, 8 Sep 2016 14:57:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4768B247E for ; Thu, 8 Sep 2016 14:57:03 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1473346613.43cb834e17678031554ade901a24c038bd7b211c.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/ppx_deriving_yojson/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ml/ppx_deriving_yojson/Manifest dev-ml/ppx_deriving_yojson/metadata.xml dev-ml/ppx_deriving_yojson/ppx_deriving_yojson-3.0.ebuild X-VCS-Directories: dev-ml/ppx_deriving_yojson/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: 43cb834e17678031554ade901a24c038bd7b211c X-VCS-Branch: master Date: Thu, 8 Sep 2016 14:57:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1644bd98-aba1-494a-b8c3-ec35aadbb384 X-Archives-Hash: 419e3b0c209be60e7506e1597c9f8242 commit: 43cb834e17678031554ade901a24c038bd7b211c Author: Alexis Ballier gentoo org> AuthorDate: Thu Sep 8 08:48:02 2016 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Thu Sep 8 14:56:53 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43cb834e dev-ml/ppx_deriving_yojson: initial import; ebuild by me Package-Manager: portage-2.3.0 dev-ml/ppx_deriving_yojson/Manifest | 1 + dev-ml/ppx_deriving_yojson/metadata.xml | 8 ++++ .../ppx_deriving_yojson-3.0.ebuild | 48 ++++++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/dev-ml/ppx_deriving_yojson/Manifest b/dev-ml/ppx_deriving_yojson/Manifest new file mode 100644 index 00000000..58b2ce4 --- /dev/null +++ b/dev-ml/ppx_deriving_yojson/Manifest @@ -0,0 +1 @@ +DIST ppx_deriving_yojson-3.0.tar.gz 18111 SHA256 28264562fa87fe0ae3484fa434126c02a7770f0324fa6a64ba8132ab10ae5143 SHA512 70c690d880ff652f9f92e95af047e87726bab48100e9325406eef7a9ed80f439df7292324de56cd17a93c6ad6bc9c1e7ce6edcd7c3b336352f0df4bfa7c7b81c WHIRLPOOL 7fac84e8faa78a9c362453098a2e73d1902ec9272f45ee32c9710bea527faeae55274ecfa257ad1eadbe4aa24d623e33b5ca73c122548efc0fe951061b1dc268 diff --git a/dev-ml/ppx_deriving_yojson/metadata.xml b/dev-ml/ppx_deriving_yojson/metadata.xml new file mode 100644 index 00000000..ffac4d7 --- /dev/null +++ b/dev-ml/ppx_deriving_yojson/metadata.xml @@ -0,0 +1,8 @@ + + + + + ml@gentoo.org + Gentoo ML Project + + diff --git a/dev-ml/ppx_deriving_yojson/ppx_deriving_yojson-3.0.ebuild b/dev-ml/ppx_deriving_yojson/ppx_deriving_yojson-3.0.ebuild new file mode 100644 index 00000000..8b0dcc2 --- /dev/null +++ b/dev-ml/ppx_deriving_yojson/ppx_deriving_yojson-3.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="A Yojson codec generator for OCaml" +HOMEPAGE="A Yojson codec generator for OCaml" +SRC_URI="https://github.com/whitequark/ppx_deriving_yojson/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="+ocamlopt test" + +DEPEND=" + dev-lang/ocaml:=[ocamlopt?] + dev-ml/yojson:= + dev-ml/result:= + >=dev-ml/ppx_deriving-4:= + dev-ml/cppo:= +" +RDEPEND="${DEPEND}" +DEPEND="${DEPEND} + dev-ml/findlib + dev-ml/ocamlbuild + test? ( dev-ml/ounit dev-ml/ppx_import )" + +src_compile() { + cp pkg/META.in pkg/META + ocaml pkg/build.ml \ + native=$(usex ocamlopt true false) \ + native-dynlink=$(usex ocamlopt true false) \ + || die +} + +src_test() { + ocamlbuild -j 0 -use-ocamlfind -classic-display src_test/test_ppx_yojson.byte -- || die +} + +src_install() { + opam-installer -i \ + --prefix="${ED}/usr" \ + --libdir="${D}/$(ocamlc -where)" \ + --docdir="${T}/dontinstallit" \ + ${PN}.install || die + dodoc CHANGELOG.md README.md +}