mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-10 00:10:19 +03:00
Update done using: ``` git grep -l zlib app-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c VisibilityCheck --exit error ``` Signed-off-by: Michał Górny <mgorny@gentoo.org>
58 lines
1.0 KiB
Bash
58 lines
1.0 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{11..13} )
|
|
|
|
inherit bash-completion-r1 cmake python-any-r1
|
|
|
|
DESCRIPTION="Platform-independent tool for Authenticode signing of EXE/CAB files"
|
|
HOMEPAGE="https://github.com/mtrojnar/osslsigncode"
|
|
SRC_URI="
|
|
https://github.com/mtrojnar/${PN}/archive/refs/tags/${PV}.tar.gz
|
|
-> ${P}.tar.gz
|
|
"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
virtual/zlib:=
|
|
>=dev-libs/openssl-3:=
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
test? (
|
|
$(python_gen_any_dep '
|
|
dev-python/cryptography[${PYTHON_USEDEP}]
|
|
')
|
|
)
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-missing-import.patch"
|
|
)
|
|
|
|
python_check_deps() {
|
|
use test || return 0
|
|
python_has_version "dev-python/cryptography[${PYTHON_USEDEP}]"
|
|
}
|
|
|
|
pkg_setup() {
|
|
use test && python-any-r1_pkg_setup
|
|
}
|
|
|
|
src_test() {
|
|
cmake_src_test -j1
|
|
}
|
|
|
|
src_install() {
|
|
cmake_src_install
|
|
|
|
mv "${D}$(get_bashcompdir)/${PN}"{.bash,} || die #927196
|
|
}
|