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 CC8E9138334 for ; Fri, 17 May 2019 20:49:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11522E0855; Fri, 17 May 2019 20:49:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 DD28BE0855 for ; Fri, 17 May 2019 20:49:33 +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 9F337344188 for ; Fri, 17 May 2019 20:49:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C1425E6 for ; Fri, 17 May 2019 20:49:30 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1558126164.fb8f20ad48b08e666e62fb4c7f5835d568f2f23c.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/libb2/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/libb2/Manifest app-crypt/libb2/libb2-0.98.1.ebuild X-VCS-Directories: app-crypt/libb2/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: fb8f20ad48b08e666e62fb4c7f5835d568f2f23c X-VCS-Branch: master Date: Fri, 17 May 2019 20:49:30 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 376f0a53-fe19-4203-99b3-eaa2639b6678 X-Archives-Hash: 26c73bc6abbf4ee4d87a739c3f3d6b45 commit: fb8f20ad48b08e666e62fb4c7f5835d568f2f23c Author: Fabian Groffen gentoo org> AuthorDate: Fri May 17 20:48:56 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Fri May 17 20:49:24 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb8f20ad app-crypt/libb2: version bump Signed-off-by: Fabian Groffen gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 app-crypt/libb2/Manifest | 1 + app-crypt/libb2/libb2-0.98.1.ebuild | 56 +++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/app-crypt/libb2/Manifest b/app-crypt/libb2/Manifest index 44054d6b967..6d30097c471 100644 --- a/app-crypt/libb2/Manifest +++ b/app-crypt/libb2/Manifest @@ -1 +1,2 @@ +DIST libb2-0.98.1.tar.gz 280826 BLAKE2B aa8c3dee3032f457410479be12d00c79a6ca6a7c0376a5c70265d30ff25b50663171f7096141834d4faa4dd5027f38b23b774e59be63475a3ecba855337fb1aa SHA512 a666fdbd1efa9cfff3028e953c62f21ba092c6733ccd12d4d04f1f836fc9747fc90053bc9166510d251d332b91e133853d2cc9b61c279517bd65b05e8483250b DIST libb2-0.98.tar.gz 275076 BLAKE2B 7c0aa473a58a5ceb6e913487cc6f0078e6cab661bd26cb1f5611473b430213521a23adbde227da6d7561b4d581369e268308ae6b2a10da5399c0d2d6ab288b26 SHA512 be400d16ab00b3006ec7412dcbf580427600f4997cee19c0448d849ff8bbbb58bbb7be3d49e4052cb1b6791b6bed9c9cc48b51da3ec77b2fdf3d197ccf0c8073 diff --git a/app-crypt/libb2/libb2-0.98.1.ebuild b/app-crypt/libb2/libb2-0.98.1.ebuild new file mode 100644 index 00000000000..2664bc570e7 --- /dev/null +++ b/app-crypt/libb2/libb2-0.98.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools ltprune toolchain-funcs + +DESCRIPTION="C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp" +HOMEPAGE="https://github.com/BLAKE2/libb2" +GITHASH="73d41c8255a991ed2adea41c108b388d9d14b449" +SRC_URI="https://github.com/BLAKE2/libb2/archive/${GITHASH}.tar.gz -> ${P}.tar.gz" + +LICENSE="CC0-1.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x64-macos ~sparc-solaris ~x64-solaris" +IUSE="static +native-cflags openmp" + +DEPEND=" + openmp? ( + || ( >=sys-devel/gcc-4.2:*[openmp] sys-devel/clang-runtime:*[openmp] ) + ) +" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${PN}-${GITHASH} + +pkg_setup() { + if [[ ${MERGE_TYPE} != "binary" ]] && use openmp && ! tc-has-openmp; then + ewarn "You are using a compiler without OpenMP support" + die "Need an OpenMP capable compiler" + fi +} + +src_prepare() { + default + # fix bashism + sed -i -e 's/ == / = /' configure.ac || die + eautoreconf # upstream doesn't make releases +} + +src_configure() { + econf \ + $(use_enable static) \ + $(use_enable native-cflags native) \ + $(use_enable openmp) +} + +src_compile() { + # respect our CFLAGS when native-cflags is not in effect + emake $(use native-cflags && echo no)CFLAGS="${CFLAGS}" +} + +src_install() { + default + prune_libtool_files +}