Сравнение apertium-3.2.0 с apertium-3.8.3

/usr/portage/sci-misc/apertium/apertium-3.8.3.ebuild 2023-10-09 14:52:35.248368495 +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
inherit autotools
6
PYTHON_COMPAT=( python3_{9..11} )
7
inherit autotools python-any-r1
7 8

  
8 9
DESCRIPTION="Shallow-transfer machine Translation engine and toolbox"
9 10
HOMEPAGE="https://apertium.sourceforge.net/"
10
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
SRC_URI="https://github.com/apertium/apertium/releases/download/v${PV}/${P}.tar.bz2"
11 12

  
12 13
LICENSE="GPL-2"
13
SLOT="0"
14
# PKG_VERSION_ABI in configure.ac
15
SLOT="0/3"
14 16
KEYWORDS="~amd64 ~x86"
17
IUSE="test"
18
# TODO: test_null_flush fails
19
RESTRICT="!test? ( test ) test"
15 20

  
16 21
RDEPEND="
17
	dev-libs/libxslt
18
	dev-libs/libpcre[cxx]
19
	>=sci-misc/lttoolbox-3.2
20
	virtual/libiconv"
22
	dev-libs/icu:=
23
	>=dev-libs/libxml2-2.6.17
24
	dev-libs/utfcpp
25
	>=sci-misc/lttoolbox-3.7.1:=
26
	virtual/libiconv
27
"
21 28
DEPEND="${RDEPEND}"
22
BDEPEND="virtual/pkgconfig"
29
BDEPEND="
30
	virtual/pkgconfig
31
	test? (
32
		${PYTHON_DEPS}
33
		dev-libs/libzip[tools]
34
	)
35
"
23 36

  
24 37
PATCHES=(
25
	"${FILESDIR}"/${PV}-flags.patch
26
	"${FILESDIR}"/${PV}-datadir.patch
27
	"${FILESDIR}"/${P}-libpcre.patch
28
	"${FILESDIR}"/${P}-autotools.patch
38
	"${FILESDIR}"/${PN}-3.8.3-bashism.patch
29 39
)
30 40

  
41
pkg_setup() {
42
	use test && python-any-r1_pkg_setup
43
}
44

  
31 45
src_prepare() {
32 46
	default
47

  
48
	# Requires shellcheck, not useful for us in Gentoo
49
	cat <<-EOF > tests/sh/run || die
50
	#!/usr/bin/env bash
51
	exit 77
52
	EOF
53

  
33 54
	eautoreconf
34 55
}
35 56

  
36 57
src_configure() {
37
	econf --disable-static
38
}
39

  
40
src_compile() {
41
	emake -j1
58
	econf --disable-python-bindings
42 59
}
43 60

  
44 61
src_install() {
45 62
	default
46 63

  
47
	# no static archives
48 64
	find "${ED}" -name '*.la' -delete || die
49 65
}
Спасибо!