Diff re2c-2.1.1-r1 with a re2c-2.2

/usr/portage/dev-util/re2c/re2c-2.2.ebuild 2023-10-09 14:52:30.992368388 +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
inherit autotools
6
PYTHON_COMPAT=( python3_{9..11} )
7 7

  
8
DESCRIPTION="tool for generating C-based recognizers from regular expressions"
9
HOMEPAGE="http://re2c.org/"
8
inherit python-any-r1
9

  
10
DESCRIPTION="Tool for generating C-based recognizers from regular expressions"
11
HOMEPAGE="https://re2c.org/"
10 12
SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.xz"
11 13

  
12 14
LICENSE="public-domain"
13 15
SLOT="0"
14
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
15
IUSE="debug"
16
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
17
IUSE="debug test"
16 18

  
17
PATCHES=("${FILESDIR}"/${P}-sh.patch)
19
RESTRICT="!test? ( test )"
18 20

  
19
src_prepare() {
20
	default
21
# python is used only as a test driver
22
BDEPEND="test? ( ${PYTHON_DEPS} )"
21 23

  
22
	# Only needed for the sh patch
23
	# Despite the patch modifying the configure directly,
24
	# this is sometimes fragile and triggers maintainer mode anyway.
25
	# bug #779187
26
	eautoreconf
24
pkg_setup() {
25
	use test && python-any-r1_pkg_setup
27 26
}
28 27

  
29 28
src_configure() {
Thank you!