You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
905 B
28 lines
905 B
# 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/1"
|
|
KEYWORDS="amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd"
|
|
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="${ED}" LIBRARY_REL="$(get_libdir)" install || die
|
|
}
|