Diff argon2-20171227 with a argon2-20171227-r1

/usr/portage/app-crypt/argon2/argon2-20171227-r1.ebuild 2019-07-31 12:09:00.000000000 +0300
1 1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=7
5

  
6
inherit toolchain-funcs
5 7

  
6 8
DESCRIPTION="Password hashing software that won the Password Hashing Competition (PHC)"
7 9
HOMEPAGE="https://github.com/P-H-C/phc-winner-argon2"
......
9 11

  
10 12
LICENSE="|| ( Apache-2.0 CC0-1.0 )"
11 13
SLOT="0/1"
12
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-fbsd"
14
KEYWORDS="alpha amd64 arm arm64 ~hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-fbsd"
13 15
IUSE="static-libs"
14 16

  
15 17
S="${WORKDIR}/phc-winner-${P}"
16 18

  
19
DOCS=( argon2-specs.pdf CHANGELOG.md README.md )
20

  
17 21
src_prepare() {
18 22
	default
19 23
	if ! use static-libs; then
20 24
		sed -i -e 's/LIBRARIES = \$(LIB_SH) \$(LIB_ST)/LIBRARIES = \$(LIB_SH)/' Makefile || die "sed failed!"
21 25
	fi
22 26
	sed -i -e 's/-O3 //' -e 's/-g //' -e "s/-march=\$(OPTTARGET) /${CFLAGS} /" -e 's/CFLAGS += -march=\$(OPTTARGET)//' Makefile || die "sed failed"
27

  
28
	sed -i -e "s/lib\/@HOST_MULTIARCH@/$(get_libdir)/" -e "s/@UPSTREAM_VER@/${PV}/" lib${PN}.pc || die
29

  
30
	tc-export CC
23 31
}
24 32

  
25 33
src_install() {
26
	emake DESTDIR="${ED}" LIBRARY_REL="$(get_libdir)" install || die
34
	emake DESTDIR="${ED}" LIBRARY_REL="$(get_libdir)" install
35
	einstalldocs
36
	doman man/${PN}.1
37

  
38
	insinto /usr/$(get_libdir)/pkgconfig
39
	doins lib${PN}.pc
27 40
}
Thank you!