Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libtpms/
Date: Wed, 19 Feb 2020 13:32:37
Message-Id: 1582119134.42f7a28c7231bb4e3d17c73eace7989eae533c20.juippis@gentoo
1 commit: 42f7a28c7231bb4e3d17c73eace7989eae533c20
2 Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com>
3 AuthorDate: Mon Jan 13 05:50:43 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 19 13:32:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42f7a28c
7
8 dev-libs/libtpms: Add libressl support
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Salah Coronya <salah.coronya <AT> gmail.com>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 dev-libs/libtpms/libtpms-0.7.0-r1.ebuild | 34 ++++++++++++++++++++++++++++++++
15 1 file changed, 34 insertions(+)
16
17 diff --git a/dev-libs/libtpms/libtpms-0.7.0-r1.ebuild b/dev-libs/libtpms/libtpms-0.7.0-r1.ebuild
18 new file mode 100644
19 index 00000000000..b13d07d5023
20 --- /dev/null
21 +++ b/dev-libs/libtpms/libtpms-0.7.0-r1.ebuild
22 @@ -0,0 +1,34 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +inherit autotools
29 +
30 +DESCRIPTION="Library providing software emultion of a TPM"
31 +HOMEPAGE="https://github.com/stefanberger/libtpms"
32 +SRC_URI="https://github.com/stefanberger/libtpms/archive/v${PV}.tar.gz -> ${P}.tar.gz"
33 +LICENSE="BSD"
34 +SLOT="0"
35 +KEYWORDS="~amd64"
36 +IUSE="libressl"
37 +
38 +DEPEND=" !libressl? ( dev-libs/openssl:0= )
39 + libressl? ( dev-libs/libressl:0= )"
40 +RDEPEND="${DEPEND}"
41 +
42 +src_prepare() {
43 + default
44 + eautoreconf
45 +}
46 +
47 +src_configure() {
48 + econf \
49 + --with-openssl \
50 + --with-tpm2
51 +}
52 +
53 +src_install() {
54 + default
55 + find "${D}" -name '*.la' -delete || die
56 +}