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 17E201396D0 for ; Mon, 21 Aug 2017 02:20:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 566C6E0E5E; Mon, 21 Aug 2017 02:20:41 +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 31CDDE0E5E for ; Mon, 21 Aug 2017 02:20:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 DC749341A5B for ; Mon, 21 Aug 2017 02:20:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A5F97CFF for ; Mon, 21 Aug 2017 02:20:38 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1503282011.7aef8f2d5e64dd0b00a16a81601fddc6f08e6cc4.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/argon2/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/argon2/argon2-20161029-r1.ebuild X-VCS-Directories: app-crypt/argon2/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7aef8f2d5e64dd0b00a16a81601fddc6f08e6cc4 X-VCS-Branch: master Date: Mon, 21 Aug 2017 02:20:38 +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: 3d1bdf8a-3b16-4bee-9faf-7bfd8b21d014 X-Archives-Hash: c3840523b34822d0300d99e896c86a43 commit: 7aef8f2d5e64dd0b00a16a81601fddc6f08e6cc4 Author: Simon Levermann slevermann de> AuthorDate: Mon Aug 14 17:59:47 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Aug 21 02:20:11 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7aef8f2d app-crypt/argon2: Fix build under multilib-strict Bug: https://bugs.gentoo.org/627856 Closes: https://github.com/gentoo/gentoo/pull/5418 Package-Manager: Portage-2.3.6, Repoman-2.3.3 app-crypt/argon2/argon2-20161029-r1.ebuild | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/app-crypt/argon2/argon2-20161029-r1.ebuild b/app-crypt/argon2/argon2-20161029-r1.ebuild new file mode 100644 index 00000000000..6a2ac3f2695 --- /dev/null +++ b/app-crypt/argon2/argon2-20161029-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib + +DESCRIPTION="Password hashing software that won the Password Hashing Competition (PHC)" +HOMEPAGE="https://github.com/P-H-C/phc-winner-argon2" +SRC_URI="https://github.com/P-H-C/phc-winner-argon2/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( Apache-2.0 CC0-1.0 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs" + +S="${WORKDIR}/phc-winner-${P}" +PATCHES=( + "${FILESDIR}/${P}-makefile-soname-symlinks.patch" + ) +src_prepare() { + default + if ! use static-libs; then + sed -i -e 's/LIBRARIES = \$(LIB_SH) \$(LIB_ST)/LIBRARIES = \$(LIB_SH)/' Makefile || die "sed failed!" + fi + sed -i -e 's/-O3 //' Makefile || die "sed failed" + sed -i -e 's/-g //' Makefile || die "sed failed" + sed -i -e "s/-march=\$(OPTTARGET) /${CFLAGS} /" Makefile || die "sed failed" + sed -i -e 's/CFLAGS += -march=\$(OPTTARGET)//' Makefile || die "sed failed" +} + +src_install() { + emake DESTDIR="${D}" LIBRARY_REL=$(get_libdir) install || die +}