From 1ade9cbd223a4d7f6237e5fe3d22c37a08edbab3 Mon Sep 17 00:00:00 2001 From: Simon Levermann Date: Tue, 2 Jan 2018 15:20:02 +0100 Subject: app-crypt/argon2: Version bump to 20171227 Package-Manager: Portage-2.3.19, Repoman-2.3.6 Closes: https://bugs.gentoo.org/641390 --- app-crypt/argon2/Manifest | 1 + app-crypt/argon2/argon2-20171227.ebuild | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 app-crypt/argon2/argon2-20171227.ebuild diff --git a/app-crypt/argon2/Manifest b/app-crypt/argon2/Manifest index 4ba3d5eb2e20..6bc6809f343a 100644 --- a/app-crypt/argon2/Manifest +++ b/app-crypt/argon2/Manifest @@ -1,2 +1,3 @@ DIST argon2-20160821.tar.gz 1170019 BLAKE2B c69e918376ec064702fc59dd92f1b240c66686932db7fcbf0b475307cd96e2354aaa06dfa5493744b71749b90d5935265990bea93ab6734a51085fbe74f1a48d SHA512 e5b7484a2f3212d78481e7994457d69e5f42d6132b31f86d8de106e8e3fa8ffa3b7244fd74b63d15846be3a0fd407e6c57c6f766cdfa0ee1e3d7706124853b5f DIST argon2-20161029.tar.gz 1506864 BLAKE2B fbb0588439e811666af027710d1e5ef182b4d1c9012ca2c60d22ce103ceca14bb392dd8916b37c1c07799dc97f9401aa66d3bd08b250dd48314aa57a8599dff5 SHA512 e1f947a97e8b5f292dd32a6f1ea0ef3f2e411629218653821886ec4e1d5f8289d5b8f4b8bf0a37e69c344a83b975c695947d6b49fd2001a0e4273bebd4792892 +DIST argon2-20171227.tar.gz 1503745 BLAKE2B 70171ce1b446974e18e6f7077f436c6b78f29fd3eb075314014219280fd984e51b00137d901175da5fcb8a8472df0cbb16ff0333a2f2f098e52d3e0ea496e2cc SHA512 9c9e1a3905e61ac6913d1e073c104477e419ddd0506adc4487e88e98d19165ed8901fe8bb11246ed0cc71b3523c190da9692d5926642f86be09c3e67510afe4d diff --git a/app-crypt/argon2/argon2-20171227.ebuild b/app-crypt/argon2/argon2-20171227.ebuild new file mode 100644 index 000000000000..93273567ab39 --- /dev/null +++ b/app-crypt/argon2/argon2-20171227.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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 ~arm64 ~x86" +IUSE="static-libs" + +S="${WORKDIR}/phc-winner-${P}" + +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 //' -e 's/-g //' -e "s/-march=\$(OPTTARGET) /${CFLAGS} /" -e 's/CFLAGS += -march=\$(OPTTARGET)//' Makefile || die "sed failed" +} + +src_install() { + emake DESTDIR="${D}" LIBRARY_REL="$(get_libdir)" install || die +} -- cgit v1.2.3-65-gdbad