Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/libb2/
Date: Mon, 27 Nov 2017 12:02:56
Message-Id: 1511784151.50ab272753360d11d418d7108b2f98c9e6bfbf6c.grobian@gentoo
1 commit: 50ab272753360d11d418d7108b2f98c9e6bfbf6c
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 27 12:02:08 2017 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 27 12:02:31 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50ab2727
7
8 app-crypt/libb2: initial version, ebuild by me
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.3
11
12 app-crypt/libb2/Manifest | 1 +
13 app-crypt/libb2/libb2-0.98.ebuild | 42 +++++++++++++++++++++++++++++++++++++++
14 app-crypt/libb2/metadata.xml | 13 ++++++++++++
15 3 files changed, 56 insertions(+)
16
17 diff --git a/app-crypt/libb2/Manifest b/app-crypt/libb2/Manifest
18 new file mode 100644
19 index 00000000000..44054d6b967
20 --- /dev/null
21 +++ b/app-crypt/libb2/Manifest
22 @@ -0,0 +1 @@
23 +DIST libb2-0.98.tar.gz 275076 BLAKE2B 7c0aa473a58a5ceb6e913487cc6f0078e6cab661bd26cb1f5611473b430213521a23adbde227da6d7561b4d581369e268308ae6b2a10da5399c0d2d6ab288b26 SHA512 be400d16ab00b3006ec7412dcbf580427600f4997cee19c0448d849ff8bbbb58bbb7be3d49e4052cb1b6791b6bed9c9cc48b51da3ec77b2fdf3d197ccf0c8073
24
25 diff --git a/app-crypt/libb2/libb2-0.98.ebuild b/app-crypt/libb2/libb2-0.98.ebuild
26 new file mode 100644
27 index 00000000000..08bf237662f
28 --- /dev/null
29 +++ b/app-crypt/libb2/libb2-0.98.ebuild
30 @@ -0,0 +1,42 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit autotools ltprune
37 +
38 +DESCRIPTION="C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp"
39 +HOMEPAGE="https://github.com/BLAKE2/libb2"
40 +GITHASH="0d7015f6a640a63bc6c68562328e112445ea9d5c"
41 +SRC_URI="https://github.com/BLAKE2/libb2/archive/${GITHASH}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="CC0-1.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~ppc64"
46 +IUSE="static"
47 +
48 +DEPEND=""
49 +RDEPEND="${DEPEND}"
50 +
51 +S=${WORKDIR}/${PN}-${GITHASH}
52 +
53 +src_prepare() {
54 + default
55 + # fix bashism
56 + sed -i -e 's/ == / = /' configure.ac || die
57 + eautoreconf # upstream doesn't make releases
58 +}
59 +
60 +src_configure() {
61 + econf $(use_enable static)
62 +}
63 +
64 +src_compile() {
65 + # respect our CFLAGS
66 + emake CFLAGS="${CFLAGS}"
67 +}
68 +
69 +src_install() {
70 + default
71 + prune_libtool_files
72 +}
73
74 diff --git a/app-crypt/libb2/metadata.xml b/app-crypt/libb2/metadata.xml
75 new file mode 100644
76 index 00000000000..5ef83e989e9
77 --- /dev/null
78 +++ b/app-crypt/libb2/metadata.xml
79 @@ -0,0 +1,13 @@
80 +<?xml version="1.0" encoding="UTF-8"?>
81 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
82 +<pkgmetadata>
83 + <maintainer type="person">
84 + <email>grobian@g.o</email>
85 + <name>Fabian Groffen</name>
86 + </maintainer>
87 + <longdescription lang="en">
88 + C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp
89 +
90 + Official implementations from BLAKE2 project.
91 + </longdescription>
92 +</pkgmetadata>