Diff enchant-1.6.1-r2 with a enchant-2.5.0

/usr/portage/app-text/enchant/enchant-2.5.0.ebuild 2023-10-09 14:52:28.876368335 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
MY_PV="${PV//./-}"
7 6
DESCRIPTION="Spellchecker wrapping library"
8 7
HOMEPAGE="https://abiword.github.io/enchant/"
9
SRC_URI="https://github.com/AbiWord/enchant/releases/download/${PN}-${MY_PV}/${P}.tar.gz"
8
SRC_URI="https://github.com/AbiWord/enchant/releases/download/v${PV}/${P}.tar.gz"
10 9

  
11 10
LICENSE="LGPL-2.1+"
12
SLOT="0"
13
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
11
SLOT="2"
12
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
14 13

  
15
IUSE="aspell +hunspell test"
14
IUSE="aspell +hunspell nuspell test voikko"
16 15
RESTRICT="!test? ( test )"
17
REQUIRED_USE="|| ( aspell hunspell )"
16
REQUIRED_USE="|| ( aspell hunspell nuspell )"
18 17

  
19 18
COMMON_DEPEND="
20 19
	>=dev-libs/glib-2.6:2
21 20
	aspell? ( app-text/aspell )
22 21
	hunspell? ( >=app-text/hunspell-1.2.1:0= )
22
	nuspell? ( >=app-text/nuspell-5.1.0:0= )
23
	voikko? ( dev-libs/libvoikko:= )
23 24
"
24 25
RDEPEND="${COMMON_DEPEND}
25
	!<app-text/enchant-2.3.3:2
26
	!<app-text/enchant-1.6.1-r2:0
26 27
"
27 28
DEPEND="${COMMON_DEPEND}
28 29
	test? ( >=dev-libs/unittest++-2.0.0-r2 )
29 30
"
30
BDEPEND="virtual/pkgconfig"
31
BDEPEND="
32
	sys-apps/groff
33
	virtual/pkgconfig
34
"
31 35

  
32
PATCHES=(
33
	"${FILESDIR}"/${PN}-1.6.0-hunspell150_fix.patch
36
QA_CONFIG_IMPL_DECL_SKIP=(
37
	alignof
34 38
)
35 39

  
36
src_prepare() {
37
	default
38
	sed -e "s/build_zemberek=yes//" -i "${S}"/configure{.ac,} || die # bug 662484
39
}
40

  
41 40
src_configure() {
42 41
	local myconf=(
43
		--datadir="${EPREFIX}"/usr/share/enchant-1
44 42
		--disable-static
45
		$(use_enable aspell)
46
		$(use_enable hunspell myspell)
47
		--disable-hspell
48
		--disable-ispell
49
		--disable-uspell
50
		--disable-voikko
51
		--disable-zemberek
52
		--with-myspell-dir="${EPREFIX}"/usr/share/myspell/
43
		$(use_enable test relocatable)
44
		$(use_with aspell)
45
		$(use_with hunspell)
46
		$(use_with nuspell)
47
		$(use_with voikko)
48
		--without-hspell
49
		--without-applespell
50
		--without-zemberek
51
		--with-hunspell-dir="${EPREFIX}"/usr/share/hunspell/
53 52
	)
54 53
	econf "${myconf[@]}"
55 54
}
Thank you!