diff options
author | Simon Levermann <simon@slevermann.de> | 2018-01-02 15:20:02 +0100 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2018-01-02 10:50:39 -0500 |
commit | 1ade9cbd223a4d7f6237e5fe3d22c37a08edbab3 (patch) | |
tree | ea3ac1d594b28895b2f22ffc8fae8e2dcb472a04 /app-crypt/argon2/argon2-20171227.ebuild | |
parent | media-sound/pamix: Removed old. (diff) | |
download | gentoo-1ade9cbd223a4d7f6237e5fe3d22c37a08edbab3.tar.gz gentoo-1ade9cbd223a4d7f6237e5fe3d22c37a08edbab3.tar.bz2 gentoo-1ade9cbd223a4d7f6237e5fe3d22c37a08edbab3.zip |
app-crypt/argon2: Version bump to 20171227
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Closes: https://bugs.gentoo.org/641390
Diffstat (limited to 'app-crypt/argon2/argon2-20171227.ebuild')
-rw-r--r-- | app-crypt/argon2/argon2-20171227.ebuild | 27 |
1 files changed, 27 insertions, 0 deletions
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 +} |