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 68F24139694 for ; Wed, 8 Mar 2017 08:55:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9769121C028; Wed, 8 Mar 2017 08:55:52 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 652CA21C028 for ; Wed, 8 Mar 2017 08:55:52 +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 CDF3B341691 for ; Wed, 8 Mar 2017 08:55:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3810260DC for ; Wed, 8 Mar 2017 08:55:49 +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: <1488963336.45735cf35399b1944ad4eeb90a85196962d6613d.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/uutf/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ml/uutf/Manifest dev-ml/uutf/uutf-1.0.1.ebuild X-VCS-Directories: dev-ml/uutf/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: 45735cf35399b1944ad4eeb90a85196962d6613d X-VCS-Branch: master Date: Wed, 8 Mar 2017 08:55:49 +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: 57f29fbb-1b38-4ce4-9e25-aafc6e03062d X-Archives-Hash: e0106c3f4703e332a64c7811d36a36de commit: 45735cf35399b1944ad4eeb90a85196962d6613d Author: Alexis Ballier gentoo org> AuthorDate: Wed Mar 8 07:15:44 2017 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Wed Mar 8 08:55:36 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45735cf3 dev-ml/uutf: Bump to 1.0.1 Package-Manager: Portage-2.3.4, Repoman-2.3.2 dev-ml/uutf/Manifest | 1 + dev-ml/uutf/uutf-1.0.1.ebuild | 55 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/dev-ml/uutf/Manifest b/dev-ml/uutf/Manifest index d555c3e0162..522ca90b855 100644 --- a/dev-ml/uutf/Manifest +++ b/dev-ml/uutf/Manifest @@ -1 +1,2 @@ DIST uutf-1.0.0.tbz 22182 SHA256 67dc4bd7ef6c8ab23ca62d34eb8c861a1f30624f3b009d45ac84772600672022 SHA512 ca033175aeaf2dafac9a7d2ad846f128d728bfbd7688c2c95d0db1d2a9b92a781d82c37d7bbfbede8934bbb6fa59a2df7530db0f0006032994971a7e4570999c WHIRLPOOL ad6e86cb3bc30cb4a139f6bfd081a256ea5a7054bd4fa06f2a8017b26a77265c352389961deb19f5affc3e6c6a72f5ad6cbfe9435b0a4d0b1adb9aba53a82ee4 +DIST uutf-1.0.1.tbz 22215 SHA256 123b26e7a471f2c5bd0fce454ccf515d299610ec356e321241fae0f75833e9be SHA512 35cbee8c82a566f2fe4fcd549936d4c4dc67f5b71bfd3ea97ff25d7cf21cfb77cb5ee313c95ad26a2a61bb84aa48c300bbb79a1a7128c6161e9abe9c390a7d18 WHIRLPOOL 31fe4dd2e7b9011e1788559d1e366c216921a5c65ec8f4b42788a2d3e65c8cf4b7870861f917932937dc132be75ef15fc4ecdd69791dbf651ff7c8585e133581 diff --git a/dev-ml/uutf/uutf-1.0.1.ebuild b/dev-ml/uutf/uutf-1.0.1.ebuild new file mode 100644 index 00000000000..e8b1a1e0b2d --- /dev/null +++ b/dev-ml/uutf/uutf-1.0.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit findlib + +DESCRIPTION="Non-blocking streaming Unicode codec for OCaml" +HOMEPAGE="http://erratique.ch/software/uutf" +SRC_URI="http://erratique.ch/software/uutf/releases/${P}.tbz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="doc utftrip +ocamlopt test" + +RDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?] + dev-ml/uchar:= + utftrip? ( dev-ml/cmdliner:= )" +DEPEND="${RDEPEND} + dev-ml/ocamlbuild + dev-ml/topkg + test? ( dev-ml/cmdliner )" + +src_compile() { + ocaml pkg/pkg.ml build \ + --with-cmdliner "$(usex utftrip true false)" \ + || die +} + +src_test() { + if use ocamlopt ; then + ocamlbuild -use-ocamlfind tests.otarget || die + pushd _build/test || die + ./test.native || die + #Rebuild to avoid mismatches between installed files, bug #604674 + popd || die + ocaml pkg/pkg.ml build \ + --with-cmdliner "$(usex utftrip true false)" \ + || die + else + ewarn "Sorry, ${PN} tests require native support (ocamlopt)" + fi +} + +src_install() { + # Can't use opam-installer here as it is an opam dep... + findlib_src_preinst + local nativelibs="" + use ocamlopt && nativelibs="$(echo _build/src/uutf.cm{x,xa,xs} _build/src/uutf.a)" + ocamlfind install uutf _build/pkg/META _build/src/uutf.mli _build/src/uutf.cm{a,i} ${nativelibs} || die + use utftrip && newbin utftrip.$(usex ocamlopt native byte) utftrip + dodoc CHANGES.md README.md + use doc && dohtml -r doc/* +}