Diff libcacard-2.6.0 with a libcacard-2.8.1
/usr/portage/app-emulation/libcacard/libcacard-2.8.1.ebuild 2023-10-09 14:52:28.724368331 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 |
DESCRIPTION="virtual Common Access Card (CAC) library emulator" |
|
7 |
HOMEPAGE="https://www.spice-space.org/" |
|
6 |
inherit meson |
|
7 | ||
8 |
DESCRIPTION="Virtual Common Access Card (CAC) library emulator" |
|
9 |
HOMEPAGE="https://gitlab.freedesktop.org/spice/libcacard https://www.spice-space.org/" |
|
8 | 10 |
SRC_URI="https://www.spice-space.org/download/libcacard/${P}.tar.xz" |
9 | 11 | |
10 |
LICENSE="GPL-3" |
|
12 |
LICENSE="LGPL-2.1" |
|
11 | 13 |
SLOT="0" |
12 |
KEYWORDS="~alpha amd64 arm ~arm64 ~ia64 ~loong ppc ppc64 ~riscv sparc x86" |
|
13 |
IUSE="+passthrough static-libs" |
|
14 | ||
15 |
RDEPEND=">=dev-libs/nss-3.13 |
|
16 |
>=dev-libs/glib-2.22 |
|
17 |
passthrough? ( >=sys-apps/pcsc-lite-1.8 )" |
|
14 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" |
|
15 |
IUSE="+passthrough static-libs test" |
|
16 |
RESTRICT="!test? ( test )" |
|
17 | ||
18 |
RDEPEND=" |
|
19 |
>=dev-libs/nss-3.12.8 |
|
20 |
>=dev-libs/glib-2.32 |
|
21 |
passthrough? ( >=sys-apps/pcsc-lite-1.8 ) |
|
22 |
" |
|
18 | 23 |
DEPEND="${RDEPEND}" |
19 | 24 |
BDEPEND="virtual/pkgconfig" |
20 | 25 | |
21 |
PATCHES=( |
|
22 |
"${FILESDIR}/${P}-simpletlv-test-fix.patch" |
|
23 |
) |
|
24 | ||
25 |
src_prepare() { |
|
26 |
default |
|
27 | ||
28 |
# remove test requiring SoftHSMv2 which is not in the tree atm |
|
29 |
sed -i \ |
|
30 |
-e 's|tests/hwtests$(EXEEXT) \($(am__EXEEXT_1)\)|\1|' \ |
|
31 |
Makefile.in || die |
|
32 |
} |
|
33 | ||
34 | 26 |
src_configure() { |
35 |
econf \ |
|
36 |
$(use_enable passthrough pcsc) \ |
|
37 |
$(use_enable static-libs static) |
|
27 |
local emesonargs=( |
|
28 |
-Ddefault_library=$(usex static-libs both shared) |
|
29 |
$(meson_feature passthrough pcsc) |
|
30 |
$(meson_use !test disable_tests) |
|
31 |
) |
|
32 | ||
33 |
meson_src_configure |
|
38 | 34 |
} |
39 | 35 | |
40 | 36 |
src_install() { |
41 |
default |
|
37 |
meson_src_install |
|
38 | ||
42 | 39 |
dodoc docs/*.txt |
43 |
use static-libs || find "${ED}"/usr/ -name 'lib*.la' -delete |
|
44 | 40 |
} |