blob: 7a3ce63d28a381c0ba822406b8cc761c7b918e4e (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit cmake python-any-r1
MY_P="trrntzip-${PV}"
DESCRIPTION="Create identical zip archives over multiple systems"
HOMEPAGE="https://github.com/0-wiz-0/trrntzip"
SRC_URI="https://github.com/0-wiz-0/trrntzip/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2+ ZLIB"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
sys-libs/zlib:=
"
DEPEND="
${RDEPEND}
"
BDEPEND="
test? (
${RDEPEND}
${PYTHON_DEPS}
>=dev-util/nihtest-1.5.0
)
"
DOCS=(AUTHORS NEWS.md README.md)
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_configure() {
if use test; then
local mycmakeargs=( -DPYTHONBIN="${EPYTHON}" )
else
local mycmakeargs=( -DRUN_REGRESS=NO )
fi
cmake_src_configure
}
|