Diff lirc-0.10.1-r4 with a lirc-0.10.1_p7

/usr/portage/app-misc/lirc/lirc-0.10.1_p7.ebuild 2023-10-09 14:52:28.808368333 +0300
1 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
PYTHON_COMPAT=( python3_{9,10} )
6
PYTHON_COMPAT=( python3_{9..10} )
7 7

  
8
inherit flag-o-matic linux-info python-single-r1 systemd xdg-utils
8
inherit linux-info python-single-r1 xdg-utils
9 9

  
10 10
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
11 11
HOMEPAGE="https://www.lirc.org/"
......
13 13
LIRC_DRIVER_DEVICE="/dev/lirc0"
14 14

  
15 15
MY_P=${PN}-${PV/_/-}
16
S="${WORKDIR}/${MY_P}"
16 17

  
17
if [[ "${PV/_pre/}" = "${PV}" ]]; then
18
	SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
19
else
18
if [[ ${PV} == *_pre* ]] ; then
20 19
	SRC_URI="https://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
20
elif [[ ${PV} == *_p* ]] ; then
21
	inherit autotools
22
	SRC_URI="mirror://sourceforge/lirc/${PN}-$(ver_cut 1-3).tar.bz2"
23
	SRC_URI+=" mirror://debian/pool/main/l/${PN}/${PN}_$(ver_cut 1-3)-$(ver_cut 5-).debian.tar.xz"
24
	S="${WORKDIR}"/${PN}-$(ver_cut 1-3)
25
else
26
	SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
21 27
fi
22 28

  
23 29
LICENSE="GPL-2+"
......
30 36
	gtk? ( X )
31 37
"
32 38

  
33
S="${WORKDIR}/${MY_P}"
34

  
35 39
COMMON_DEPEND="
36 40
	${PYTHON_DEPS}
37 41
	audio? (
......
74 78
"
75 79

  
76 80
PATCHES=(
77
	"${FILESDIR}/${P}-unsafe-load.patch"
78
	"${FILESDIR}/${P}-runtimedirectory.patch"
81
	"${FILESDIR}/${PN}-0.10.1-unsafe-load.patch"
82
	"${FILESDIR}/${PN}-0.10.1-runtimedirectory.patch"
79 83
)
80 84

  
81 85
MAKEOPTS+=" -j1"
......
86 90
	linux-info_pkg_setup
87 91
}
88 92

  
93
src_prepare() {
94
	default
95

  
96
	# Keep eautoreconf until a new release to fix Python macros
97
	# bug #849788
98
	if [[ -d "${WORKDIR}"/debian/patches ]] ; then
99
		eapply $(sed -e 's:^:../debian/patches/:' ../debian/patches/series || die)
100
		eautoreconf
101
	fi
102
}
103

  
89 104
src_configure() {
90 105
	xdg_environment_reset
91 106
	econf \
Thank you!