Diff systemd-cron-1.16.7-r1 with a systemd-cron-2.1.3-r1

/usr/portage/sys-process/systemd-cron/systemd-cron-2.1.3-r1.ebuild 2023-10-09 14:52:35.584368504 +0300
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5
PYTHON_COMPAT=( pypy3 python3_{9..11} )
6
inherit python-single-r1 systemd
5
inherit systemd toolchain-funcs
7 6

  
8 7
DESCRIPTION="systemd units to create timers for cron directories and crontab"
9 8
HOMEPAGE="https://github.com/systemd-cron/systemd-cron/"
......
11 10

  
12 11
LICENSE="MIT"
13 12
SLOT="0"
14
KEYWORDS="amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
13
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
15 14
IUSE="cron-boot etc-crontab-systemd minutely +runparts setgid test yearly"
16 15
RESTRICT="!test? ( test )"
17 16

  
18
RDEPEND=">=sys-apps/systemd-217
19
	sys-apps/debianutils
17
BDEPEND="virtual/pkgconfig"
18

  
19
RDEPEND=">=sys-apps/systemd-253
20
	dev-libs/openssl
21
	runparts? ( sys-apps/debianutils )
20 22
	!sys-process/cronie[anacron]
21 23
	!etc-crontab-systemd? ( !sys-process/dcron )
22
	${PYTHON_DEPS}
23 24
	sys-process/cronbase
24 25
	acct-user/_cron-failure
25 26
	acct-group/_cron-failure"
26 27

  
27 28
DEPEND="sys-process/cronbase
28
	test? ( sys-apps/man-db dev-python/pyflakes )"
29

  
30
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
29
	test? ( sys-apps/man-db || ( dev-util/shellcheck dev-util/shellcheck-bin ) )"
31 30

  
32 31
pkg_pretend() {
33 32
	if use runparts && ! [ -x /usr/bin/run-parts ] ; then
......
38 37
}
39 38

  
40 39
src_prepare() {
41
	python_fix_shebang --force "${S}/src/bin"
42

  
43 40
	sed -i \
44 41
		-e 's/^crontab/crontab-systemd/' \
45 42
		-e 's/^CRONTAB/CRONTAB-SYSTEMD/' \
......
49 46
	then	sed -i \
50 47
			-e "s!/etc/crontab!/etc/crontab-systemd!" \
51 48
			-- "${S}/src/man/crontab."{1,5}".in" \
52
			"${S}/src/bin/systemd-crontab-generator.py" || die
49
			"${S}/src/bin/systemd-crontab-generator.cpp" \
50
			"${S}/test/test-generator" || die
53 51
	fi
54 52

  
53
	# https://github.com/systemd-cron/systemd-cron/issues/134
54
	# https://github.com/systemd-cron/systemd-cron/commit/acd77f59d58d9ec812f64c833a5e029b9dbae92a
55
	eapply "${FILESDIR}/${P}-MAYBE_DUPA_SIGABRT.patch"
55 56
	eapply_user
56 57
}
57 58

  
......
64 65
}
65 66

  
66 67
src_configure() {
68
	tc-export PKG_CONFIG CXX CC
69

  
67 70
	./configure \
68 71
		--prefix="${EPREFIX}/usr" \
69
		--confdir="${EPREFIX}/etc" \
70 72
		--mandir="${EPREFIX}/usr/share/man" \
71 73
		--unitdir="$(systemd_get_systemunitdir)" \
72 74
		--generatordir="$(systemd_get_systemgeneratordir)" \
......
75 77
		$(my_use_enable runparts) \
76 78
		$(my_use_enable yearly) \
77 79
		$(my_use_enable yearly quarterly) \
78
		$(my_use_enable yearly semi_annually) \
79
		$(my_use_enable setgid) || die
80
		$(my_use_enable yearly semi_annually) || die
80 81

  
81 82
		export CRONTAB=crontab-systemd
82 83
}
......
86 87
	rm -f "${ED}"/usr/lib/sysusers.d/systemd-cron.conf
87 88
}
88 89

  
90
src_test() {
91
	emake test-nounshare
92
}
93

  
89 94
pkg_postinst() {
90 95
	elog "This package now supports USE=runparts which is enabled by default."
91 96
	elog "This enables the traditional run-parts behavior."
Thank you!