diff options
| author | Petr Vaněk <arkamar@gentoo.org> | 2024-09-01 16:23:03 +0200 |
|---|---|---|
| committer | Petr Vaněk <arkamar@gentoo.org> | 2024-09-01 22:46:35 +0200 |
| commit | 088dd0cdd0a1d7cbd7be290510f17018a8f98b6f (patch) | |
| tree | c996cbc75709f29a67347a313be5f34282d6c424 /app-crypt/osslsigncode/osslsigncode-2.9.ebuild | |
| parent | 7d1bbb3e2d39f38f800b17d178f63a08e8061d0d (diff) | |
| download | gentoo-088dd0cdd0a1d7cbd7be290510f17018a8f98b6f.tar.gz gentoo-088dd0cdd0a1d7cbd7be290510f17018a8f98b6f.tar.bz2 gentoo-088dd0cdd0a1d7cbd7be290510f17018a8f98b6f.zip | |
app-crypt/osslsigncode: add 2.9
Closes: https://bugs.gentoo.org/927196
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'app-crypt/osslsigncode/osslsigncode-2.9.ebuild')
| -rw-r--r-- | app-crypt/osslsigncode/osslsigncode-2.9.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-crypt/osslsigncode/osslsigncode-2.9.ebuild b/app-crypt/osslsigncode/osslsigncode-2.9.ebuild new file mode 100644 index 000000000000..7974b492fea1 --- /dev/null +++ b/app-crypt/osslsigncode/osslsigncode-2.9.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..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=" + sys-libs/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 +} |
