Diff osslsigncode-2.0 with a osslsigncode-2.5
/usr/portage/app-crypt/osslsigncode/osslsigncode-2.5.ebuild 2023-10-09 14:52:28.240368319 +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 |
inherit autotools |
|
6 |
PYTHON_COMPAT=( python3_{9..11} ) |
|
7 |
OSSLSIGNCODE_TEST_FILES=( unsigned.{cat,ex_,exe,msi} ) |
|
8 |
inherit cmake python-any-r1 |
|
7 | 9 | |
8 | 10 |
DESCRIPTION="Platform-independent tool for Authenticode signing of EXE/CAB files" |
9 | 11 |
HOMEPAGE="https://github.com/mtrojnar/osslsigncode" |
10 |
SRC_URI="https://github.com/mtrojnar/osslsigncode/archive/${PV}.tar.gz -> ${P}.tar.gz" |
|
12 |
SRC_URI="https://github.com/mtrojnar/osslsigncode/releases/download/${PV}/${P}.tar.gz" |
|
13 | ||
14 |
for test_file in "${OSSLSIGNCODE_TEST_FILES[@]}" ; do |
|
15 |
SRC_URI+=" test? ( https://github.com/mtrojnar/osslsigncode/raw/${PV}/tests/files/${test_file} -> ${PN}-test-${test_file} )" |
|
16 |
done |
|
17 |
unset test_file |
|
11 | 18 | |
12 | 19 |
LICENSE="GPL-3" |
13 | 20 |
SLOT="0" |
14 | 21 |
KEYWORDS="~amd64 ~x86" |
15 |
IUSE="curl" |
|
22 |
IUSE="curl test" |
|
23 |
RESTRICT="!test? ( test )" |
|
16 | 24 | |
17 | 25 |
RDEPEND=" |
18 |
dev-libs/openssl:0= |
|
19 |
curl? ( net-misc/curl )" |
|
20 |
DEPEND="${RDEPEND} |
|
21 |
virtual/pkgconfig" |
|
26 |
dev-libs/openssl:= |
|
27 |
curl? ( net-misc/curl ) |
|
28 |
" |
|
29 |
DEPEND="${RDEPEND}" |
|
30 |
BDEPEND="test? ( ${PYTHON_DEPS} )" |
|
31 | ||
32 |
pkg_setup() { |
|
33 |
use test && python-any-r1_pkg_setup |
|
34 |
} |
|
22 | 35 | |
23 | 36 |
src_prepare() { |
24 |
eautoreconf |
|
25 |
eapply_user |
|
37 |
if use test ; then |
|
38 |
local test_file |
|
39 |
for test_file in "${OSSLSIGNCODE_TEST_FILES[@]}" ; do |
|
40 |
cp "${DISTDIR}"/${PN}-test-${test_file} tests/files/${test_file} || die |
|
41 |
done |
|
42 |
unset test_file |
|
43 |
fi |
|
44 | ||
45 |
cmake_src_prepare |
|
26 | 46 |
} |
27 | 47 | |
28 | 48 |
src_configure() { |
29 |
econf $(use_with curl) |
|
49 |
local mycmakeargs=( |
|
50 |
$(cmake_use_find_package curl CURL) |
|
51 |
) |
|
52 | ||
53 |
cmake_src_configure |
|
54 |
} |
|
55 | ||
56 |
src_test() { |
|
57 |
cmake_src_test -j1 |
|
30 | 58 |
} |