blob: fdad8cdba6a675caa8ee15d25b7fe61305be0f67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 2021-2026 Liguros Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A software PKCS#11 implementation"
HOMEPAGE="https://www.softhsm.org/ https://github.com/softhsm/SoftHSMv2"
SRC_URI="https://github.com/softhsm/SoftHSMv2/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="bindist gost libressl migration-tool test"
RESTRICT="!test? ( test )"
SLOT="2"
LICENSE="BSD"
RDEPEND="migration-tool? ( dev-db/sqlite:3= )
!libressl? ( dev-libs/openssl:= )
libressl? ( dev-libs/botan:2 )
!~dev-libs/softhsm-2.0.0:0"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig
sys-devel/gcc:=[cxx]
test? ( dev-util/cppunit )"
DOCS=(
NEWS
README.md
)
S=${WORKDIR}/SoftHSMv2-${PV}
PATCHES="${FILESDIR}/OSSLECDSA.patch"
src_configure() {
local mycmakeargs=(
-DENABLE_STATIC=off
-DWITH_CRYPTO_BACKEND=$(usex libressl botan openssl)
-DENABLE_P11_KIT=off
-DCMAKE_INSTALL_LOCALSTATEDIR="${EROOT}/var"
-DENABLE_ECC=$(use_x !bindist on off)
-DENABLE_GOST=$(use_x gost on off)
-DWITH_MIGRATE=$(use_x migration-tool on off)
)
cmake_src_configure
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
keepdir "${EROOT}/var/lib/softhsm/tokens"
}
|