Diff cgit-1.2.3-r100 with a cgit-1.2.3-r201

/usr/portage/www-apps/cgit/cgit-1.2.3-r201.ebuild 2023-10-09 14:52:35.868368511 +0300
1
# Copyright 1999-2021 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 6
LUA_COMPAT=( lua5-{1..2} luajit )
7

  
8
PYTHON_COMPAT=( python3_{9..11} )
9

  
7 10
WEBAPP_MANUAL_SLOT="yes"
8 11

  
9
inherit lua-single toolchain-funcs webapp
12
inherit lua-single python-single-r1 toolchain-funcs webapp
10 13

  
11 14
[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/"
12 15

  
......
19 22

  
20 23
LICENSE="GPL-2"
21 24
SLOT="0"
22
KEYWORDS="amd64 arm x86"
25
KEYWORDS="amd64 arm ~riscv x86"
23 26
IUSE="doc +highlight +lua test"
24
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
27
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} ) ${PYTHON_REQUIRED_USE}"
25 28
RESTRICT="!test? ( test )"
26 29

  
27 30
RDEPEND="
31
	${PYTHON_DEPS}
28 32
	acct-group/cgit
29 33
	acct-user/cgit
30
	dev-vcs/git
31
	highlight? ( || ( dev-python/pygments app-text/highlight ) )
32 34
	dev-libs/openssl:0=
35
	dev-vcs/git
36
	highlight? (
37
		$(python_gen_cond_dep 'dev-python/pygments[${PYTHON_USEDEP}]' )
38
	)
33 39
	lua? ( ${LUA_DEPS} )
34 40
	sys-libs/zlib
35 41
	virtual/httpd-cgi
36 42
"
37 43
# ebuilds without WEBAPP_MANUAL_SLOT="yes" are broken
38
DEPEND="${RDEPEND}
39
	doc? ( app-text/docbook-xsl-stylesheets
40
		>=app-text/asciidoc-8.5.1 )
44
DEPEND="${RDEPEND}"
45
BDEPEND="
46
	doc? (
47
		app-text/docbook-xsl-stylesheets
48
		>=app-text/asciidoc-8.5.1
49
	)
41 50
"
42 51

  
43 52
pkg_setup() {
53
	python_setup
44 54
	webapp_pkg_setup
45 55
	use lua && lua-single_pkg_setup
46 56
}
47 57

  
48
src_prepare() {
58
src_configure() {
49 59
	rmdir git || die
50 60
	mv "${WORKDIR}"/git-"${GIT_V}" git || die
51 61

  
52
	echo "prefix = ${EPREFIX}/usr" >> cgit.conf
53
	echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf
54
	echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf
55
	echo "CGIT_DATA_PATH = ${MY_HTDOCSDIR}" >> cgit.conf
56
	echo "CACHE_ROOT = ${CGIT_CACHEDIR}" >> cgit.conf
57
	echo "DESTDIR = ${D}" >> cgit.conf
62
	echo "prefix = ${EPREFIX}/usr" >> cgit.conf || die "echo prefix failed"
63
	echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf || die "echo libdir failed"
64
	echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf || die "echo CGIT_SCRIPT_PATH failed"
65
	echo "CGIT_DATA_PATH = ${MY_HTDOCSDIR}" >> cgit.conf || die "echo CGIT_DATA_PATH failed"
66
	echo "CACHE_ROOT = ${CGIT_CACHEDIR}" >> cgit.conf || die "echo CACHE_ROOT failed"
67
	echo "DESTDIR = ${D}" >> cgit.conf || die "echo DESTDIR failed"
58 68
	if use lua; then
59
		echo "LUA_PKGCONFIG = ${ELUA}" >> cgit.conf
69
		echo "LUA_PKGCONFIG = ${ELUA}" >> cgit.conf || die "echo LUA_PKGCONFIG failed"
60 70
	else
61
		echo "NO_LUA = 1" >> cgit.conf
71
		echo "NO_LUA = 1" >> cgit.conf || die "echo NO_LUA failed"
62 72
	fi
63

  
64
	eapply_user
65 73
}
66 74

  
67 75
src_compile() {
......
86 94
	keepdir "${CGIT_CACHEDIR}"
87 95
	fowners ${PN}:${PN} "${CGIT_CACHEDIR}"
88 96
	fperms 700 "${CGIT_CACHEDIR}"
97
	python_fix_shebang .
89 98
}
90 99

  
91 100
src_test() {
Thank you!