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 3F308139694 for ; Thu, 13 Jul 2017 22:09:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB902E0D3C; Thu, 13 Jul 2017 22:09:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9CE0BE0D3C for ; Thu, 13 Jul 2017 22:09:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5483B341A26 for ; Thu, 13 Jul 2017 22:09:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DA32974B0 for ; Thu, 13 Jul 2017 22:09:50 +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: <1499983774.10768b6889a776304c9d7a6be30338237ab85f16.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/ocaml-cstruct/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ml/ocaml-cstruct/Manifest dev-ml/ocaml-cstruct/ocaml-cstruct-3.1.0.ebuild X-VCS-Directories: dev-ml/ocaml-cstruct/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: 10768b6889a776304c9d7a6be30338237ab85f16 X-VCS-Branch: master Date: Thu, 13 Jul 2017 22:09:50 +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: 94263f05-56fe-47c5-8be3-0e5abe727184 X-Archives-Hash: 6b19723868bc59d2effb1783e846b917 commit: 10768b6889a776304c9d7a6be30338237ab85f16 Author: Alexis Ballier gentoo org> AuthorDate: Thu Jul 13 21:58:46 2017 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Thu Jul 13 22:09:34 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10768b68 dev-ml/ocaml-cstruct: bump to 3.1.0 Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-ml/ocaml-cstruct/Manifest | 1 + dev-ml/ocaml-cstruct/ocaml-cstruct-3.1.0.ebuild | 71 +++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/dev-ml/ocaml-cstruct/Manifest b/dev-ml/ocaml-cstruct/Manifest index 8476b9ebf6e..f5504580082 100644 --- a/dev-ml/ocaml-cstruct/Manifest +++ b/dev-ml/ocaml-cstruct/Manifest @@ -1,2 +1,3 @@ DIST ocaml-cstruct-3.0.1.tar.gz 205663 SHA256 1e1c731c8970a82f5947ab0ee73ec2d160df3cd0f5e752a25c2689448e13a7e2 SHA512 355f97f1b3a6e7812b9210e348e4544e0ae6f01bef6536808cdcfe32153f9e3b711d1e869990cbd0205d433a51c7463c10f410b59aae33c32dab7f35f5413c27 WHIRLPOOL 54daaf26d0882fd7c782102c0fb84f683497a6acfee04649e19b9c5c330d24192e710fcbf8dede9b5128474fa314109a87894d99b6f44349dbbca52a68f7a10b DIST ocaml-cstruct-3.0.2.tar.gz 205713 SHA256 86dc71140eae007c540cec982211ef48ec776232f2b23dd0b639e0e82099d60b SHA512 041ff15c102036f1162a870534e4bf83477f988344cbf420d21cf589100ba8f2fa2ae5c7de7c16ef36e88a10d6bfac43f3a63c929b6d6d90ae12ad0027d1c76d WHIRLPOOL a249e394c868f916ec243e702bf3eed38fdb2a7f60649b3d1be46bbc1308b4c9a3ac9e5d58ca35726f5fa3320d1773952a8105c34725345854da6837c38c2ff2 +DIST ocaml-cstruct-3.1.0.tar.gz 208552 SHA256 7392fd6e6f79229003511d004466fd4079970aa0f6963d94e9b21f2fe409f00b SHA512 90ce3b093e50e077b66ff15b8f2f756d66b278598c01dc46def5a660eeab38b54edf62e93d4dad6cfc801b264def77158c27c7a8582d68c9690956c517820cae WHIRLPOOL 0e6642a7ced461f89ade09ab83c8e097d554d92e661765ab631014bbeb16af7c49434ca1918d08223eb972922f638628be93851f7b08cd4cea96860c1e380b2a diff --git a/dev-ml/ocaml-cstruct/ocaml-cstruct-3.1.0.ebuild b/dev-ml/ocaml-cstruct/ocaml-cstruct-3.1.0.ebuild new file mode 100644 index 00000000000..39b192f16a3 --- /dev/null +++ b/dev-ml/ocaml-cstruct/ocaml-cstruct-3.1.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit findlib + +DESCRIPTION="Map OCaml arrays onto C-like structs" +HOMEPAGE="https://github.com/mirage/ocaml-cstruct https://mirage.io" +SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="async +lwt +ppx test" + +RDEPEND=" + async? ( + dev-ml/async_kernel:= + dev-ml/async_unix:= + dev-ml/core_kernel:= + ) + lwt? ( dev-ml/lwt:= ) + ppx? ( + dev-ml/ppx_tools:= + dev-ml/ocaml-migrate-parsetree:= + >=dev-ml/ppx_tools_versioned-5.0.1:= + ) + >=dev-lang/ocaml-4.01:= + dev-ml/ocplib-endian:= + dev-ml/sexplib:= + dev-ml/type-conv:= +" +DEPEND=" + dev-ml/jbuilder + dev-ml/opam + test? ( dev-ml/ounit ) + ${RDEPEND} +" + +get_targets() { + local tgt="cstruct,cstruct-unix" + use lwt && tgt+=",cstruct-lwt" + use async && tgt+=",cstruct-async" + use ppx && tgt+=",ppx_cstruct" + echo "${tgt}" +} + +src_compile() { + jbuilder build -p $(get_targets) || die +} + +src_test() { + jbuilder runtest -p $(get_targets) || die +} + +oinstall() { + opam-installer -i \ + --prefix="${ED}/usr" \ + --libdir="${D}/$(ocamlc -where)" \ + --docdir="${ED}/usr/share/doc/${PF}" \ + ${1}.install || die +} + +src_install() { + oinstall cstruct + oinstall cstruct-unix + use lwt && oinstall cstruct-lwt + use async && oinstall cstruct-async + use ppx && oinstall ppx_cstruct +}