app-text/enchant: Version bump to 2.3.3

- Bump to EAPI=8
- Add nuspell support (bug #750290)
- Move enchant:2's enchant/enchant.ordering to /usr/share, and
  move enchant:1's enchant/enchant.ordering to /usr/share/enchant-1.
  Previously it was the other way around, and this causes enchant:2's
  test suite to fail.
- Enable dev-libs/unittest++ test dependency in enchant:1, since it now
  ships a pkgconfig file

Closes: https://bugs.gentoo.org/750290
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2022-04-17 14:02:38 -07:00
parent 1d2700aa5e
commit 81df4e9c88
13 changed files with 150 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST enchant-1.6.1.tar.gz 642124 BLAKE2B d41aa9b313e7fe8b0887728b55f3c5218e270c7359b4edcdc8d9180af68687230bcc9f7d1abb9f85ac673478530e5674366c9bc7d08b983e7226725b2cdd73d3 SHA512 26c62dfa89ee40150db502651a2f876fba00569b7015f205dae27a029557effacff335bbe36124dbe6686537da2305bcab02592179d03e95fdf9741d54b98036
DIST enchant-2.3.2.tar.gz 991782 BLAKE2B ece8c4cbac2c242c23b4b8c5ab2daf1037705dbf58ad29b4863dd01cb30b2d98e11828f2b9d1ce3823aec419c871cc3dd1092e4659e10ef3e3cd2df867255be4 SHA512 886635bb55c5f0c774445e4a0f14d39e2d08eeb964257037062c2e97c2cf3348be8c631ff5e7a13144936127761964bdc60ff1e0dd6f63b292a655626f91ef62
DIST enchant-2.3.3.tar.gz 990877 BLAKE2B 310b66931e803ccb643a47c1476122a558de7a192b50f532d4cdababe55d398268bf5bfcc0ed556d665af88f6c183c1871147d302ad39a7ebd4fc29e1ab16967 SHA512 c97764a8f219033b440cbfb820624f54993b19ba1f38b56f20336889304f753c7c513008bb92cd1424bfbf528c2d473f35bef93d9140063612e3a270fd000deb

View File

@@ -0,0 +1,60 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PV="${PV//./-}"
DESCRIPTION="Spellchecker wrapping library"
HOMEPAGE="https://abiword.github.io/enchant/"
SRC_URI="https://github.com/AbiWord/enchant/releases/download/${PN}-${MY_PV}/${P}.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
IUSE="aspell +hunspell test"
RESTRICT="!test? ( test )"
REQUIRED_USE="|| ( aspell hunspell )"
COMMON_DEPEND="
>=dev-libs/glib-2.6:2
aspell? ( app-text/aspell )
hunspell? ( >=app-text/hunspell-1.2.1:0= )
"
RDEPEND="${COMMON_DEPEND}
!<app-text/enchant-2.3.3:2
"
DEPEND="${COMMON_DEPEND}
test? ( >=dev-libs/unittest++-2.0.0-r2 )
"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-1.6.0-hunspell150_fix.patch
)
src_prepare() {
default
sed -e "s/build_zemberek=yes//" -i "${S}"/configure{.ac,} || die # bug 662484
}
src_configure() {
local myconf=(
--datadir="${EPREFIX}"/usr/share/enchant-1
--disable-static
$(use_enable aspell)
$(use_enable hunspell myspell)
--disable-hspell
--disable-ispell
--disable-uspell
--disable-voikko
--disable-zemberek
--with-myspell-dir="${EPREFIX}"/usr/share/myspell/
)
econf "${myconf[@]}"
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
}

View File

@@ -0,0 +1,52 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Spellchecker wrapping library"
HOMEPAGE="https://abiword.github.io/enchant/"
SRC_URI="https://github.com/AbiWord/enchant/releases/download/v${PV}/${P}.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="2"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
IUSE="aspell +hunspell nuspell test voikko"
RESTRICT="!test? ( test )"
REQUIRED_USE="|| ( aspell hunspell nuspell )"
COMMON_DEPEND="
>=dev-libs/glib-2.6:2
aspell? ( app-text/aspell )
hunspell? ( >=app-text/hunspell-1.2.1:0= )
nuspell? ( >=app-text/nuspell-5.1.0:0= )
voikko? ( dev-libs/libvoikko )
"
RDEPEND="${COMMON_DEPEND}
!<app-text/enchant-1.6.1-r2:1
"
DEPEND="${COMMON_DEPEND}
test? ( >=dev-libs/unittest++-2.0.0-r2 )
"
BDEPEND="virtual/pkgconfig"
src_configure() {
local myconf=(
--disable-static
$(use_enable test relocatable)
$(use_with aspell)
$(use_with hunspell)
$(use_with nuspell)
$(use_with voikko)
--without-hspell
--without-applespell
--without-zemberek
--with-hunspell-dir="${EPREFIX}"/usr/share/hunspell/
)
econf "${myconf[@]}"
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
}

View File

@@ -8,6 +8,7 @@
<use>
<flag name="aspell">Adds support for <pkg>app-text/aspell</pkg> spell checker</flag>
<flag name="hunspell">Adds support for <pkg>app-text/hunspell</pkg> spell checker</flag>
<flag name="nuspell">Adds support for <pkg>app-text/nuspell</pkg> spell checker</flag>
<flag name="voikko">Adds support for <pkg>dev-libs/libvoikko</pkg> spell checker</flag>
</use>
</pkgmetadata>

View File

@@ -1,6 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Matt Turner <mattst88@gentoo.org> (2022-04-18)
# app-text/nuspell is not keyworded
app-text/enchant nuspell
# Matt Turner <mattst88@gentoo.org> (2022-04-16)
# sys-auth/seatd is not keyworded
dev-libs/weston seatd

View File

@@ -1,6 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Matt Turner <mattst88@gentoo.org> (2022-04-18)
# app-text/nuspell is not keyworded
app-text/enchant nuspell
# Adel Kara Slimane <adel.ks@zegrapher.com> (2022-03-14)
# Untested useflag on other arches, needs keywording
media-video/ffmpeg vmaf

View File

@@ -1,6 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Matt Turner <mattst88@gentoo.org> (2022-04-18)
# app-text/nuspell is not keyworded
app-text/enchant nuspell
# Adel Kara Slimane <adel.ks@zegrapher.com> (2022-03-14)
# Untested useflag on other arches, needs keywording
media-video/ffmpeg vmaf

View File

@@ -4,6 +4,10 @@
# NOTE: When masking a USE flag due to missing keywords, please file a keyword
# request bug for the hppa arch.
# Matt Turner <mattst88@gentoo.org> (2022-04-18)
# app-text/nuspell is not keyworded
app-text/enchant nuspell
# Lars Wendler <polynomial-c@gentoo.org> (2022-04-01)
# gnome-base/librsvg missing keywords
media-libs/freetype svg

View File

@@ -1,6 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Matt Turner <mattst88@gentoo.org> (2022-04-18)
# app-text/nuspell is not keyworded
app-text/enchant nuspell
# Matt Turner <mattst88@gentoo.org> (2022-04-16)
# net-misc/freerdp is not keyworded
dev-libs/weston rdp

View File

@@ -1,6 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Matt Turner <mattst88@gentoo.org> (2022-04-18)
# app-text/nuspell is not keyworded
app-text/enchant nuspell
# Adel Kara Slimane <adel.ks@zegrapher.com> (2022-03-14)
# Untested useflag on other arches, needs keywording
media-video/ffmpeg vmaf

View File

@@ -1,6 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Matt Turner <mattst88@gentoo.org> (2022-04-18)
# app-text/nuspell is not keyworded
app-text/enchant nuspell
# Adel Kara Slimane <adel.ks@zegrapher.com> (2022-03-14)
# Untested useflag on other arches, needs keywording
media-video/ffmpeg vmaf

View File

@@ -1,6 +1,10 @@
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Matt Turner <mattst88@gentoo.org> (2022-04-18)
# app-text/nuspell is not keyworded
app-text/enchant nuspell
# Jakov Smolić <jsmolic@gentoo.org> (2022-04-07)
# Depends on sys-cluster/ceph which pulls in valgrind, which is
# unavailable on riscv currently

View File

@@ -1,6 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Matt Turner <mattst88@gentoo.org> (2022-04-18)
# app-text/nuspell is not keyworded
app-text/enchant nuspell
# Matt Turner <mattst88@gentoo.org> (2022-04-16)
# net-misc/freerdp is not keyworded
dev-libs/weston rdp