1 |
commit: 60c0897b68f5e4a80e733a7ef0716b4bba421762 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 16 04:51:26 2019 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 16 04:55:31 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60c0897b |
7 |
|
8 |
app-crypt/argon2: revision bump |
9 |
|
10 |
* Port to EAPI 7 |
11 |
* Install documentation |
12 |
* Respect CC |
13 |
* Install pkg-config file |
14 |
|
15 |
Closes: https://bugs.gentoo.org/674918 |
16 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
17 |
Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org> |
18 |
|
19 |
app-crypt/argon2/argon2-20171227-r1.ebuild | 40 ++++++++++++++++++++++++++++++ |
20 |
1 file changed, 40 insertions(+) |
21 |
|
22 |
diff --git a/app-crypt/argon2/argon2-20171227-r1.ebuild b/app-crypt/argon2/argon2-20171227-r1.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..c7176327af1 |
25 |
--- /dev/null |
26 |
+++ b/app-crypt/argon2/argon2-20171227-r1.ebuild |
27 |
@@ -0,0 +1,40 @@ |
28 |
+# Copyright 1999-2019 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=7 |
32 |
+ |
33 |
+inherit toolchain-funcs |
34 |
+ |
35 |
+DESCRIPTION="Password hashing software that won the Password Hashing Competition (PHC)" |
36 |
+HOMEPAGE="https://github.com/P-H-C/phc-winner-argon2" |
37 |
+SRC_URI="https://github.com/P-H-C/phc-winner-argon2/archive/${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="|| ( Apache-2.0 CC0-1.0 )" |
40 |
+SLOT="0/1" |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd" |
42 |
+IUSE="static-libs" |
43 |
+ |
44 |
+S="${WORKDIR}/phc-winner-${P}" |
45 |
+ |
46 |
+DOCS=( argon2-specs.pdf CHANGELOG.md README.md ) |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ default |
50 |
+ if ! use static-libs; then |
51 |
+ sed -i -e 's/LIBRARIES = \$(LIB_SH) \$(LIB_ST)/LIBRARIES = \$(LIB_SH)/' Makefile || die "sed failed!" |
52 |
+ fi |
53 |
+ sed -i -e 's/-O3 //' -e 's/-g //' -e "s/-march=\$(OPTTARGET) /${CFLAGS} /" -e 's/CFLAGS += -march=\$(OPTTARGET)//' Makefile || die "sed failed" |
54 |
+ |
55 |
+ sed -i -e "s/lib\/@HOST_MULTIARCH@/$(get_libdir)/" -e "s/@UPSTREAM_VER@/${PV}/" lib${PN}.pc || die |
56 |
+ |
57 |
+ tc-export CC |
58 |
+} |
59 |
+ |
60 |
+src_install() { |
61 |
+ emake DESTDIR="${ED}" LIBRARY_REL="$(get_libdir)" install |
62 |
+ einstalldocs |
63 |
+ doman man/${PN}.1 |
64 |
+ |
65 |
+ insinto /usr/$(get_libdir)/pkgconfig |
66 |
+ doins lib${PN}.pc |
67 |
+} |