Browse Source

app-dicts/myspell-fr: bump and fix

Thanks for the work of Erik Quaeghebeur in his overlay
https://github.com/equaeghe/gentoo-overlay

Package-Manager: Portage-3.0.19, Repoman-3.0.3
master
Guillaume Castagnino 1 year ago
parent
commit
32559e60f0
  1. 3
      app-dicts/myspell-fr/Manifest
  2. 6
      app-dicts/myspell-fr/metadata.xml
  3. 71
      app-dicts/myspell-fr/myspell-fr-7.0.ebuild

3
app-dicts/myspell-fr/Manifest

@ -0,0 +1,3 @@
DIST lo-oo-ressources-linguistiques-fr-v7.0.oxt 3231859 BLAKE2B 779ab784e8c654a09ad54a166ae61b6eb61a5e5ba81828e33db9d7980c7ebe03f4b80bdcbbf52f9a448e550c4ffa918221933935f4893860887e5fc78d4c1b59 SHA512 ef4828660839f238efeb6092ae8a0735383d4b88015bab2f26b150ce21c3bee92442bf5d6e9fd08fea3d4ece3afbc97057b0d126dac666611cfae12c1bada703
EBUILD myspell-fr-7.0.ebuild 2264 BLAKE2B 80e57429813b31cd251d987d75ac005f41124751b5b47e322d7aca8905a10ef2ec527d481785ea8d6bac261ee5f3ab5df8f7ff964e76ed9be14ebbf7b281d6b6 SHA512 a5921339970156abdd1f5e2c0dcb26562380623dcebf4adfd77c9962250f13cc36090aadcb10c7728f03fb33da0b74f4f99cf6e06bfbed9c405b9a3f25127b34
MISC metadata.xml 191 BLAKE2B 8bff04ca02f4930d6f77dd32df009c145cacaad2d1cf271d91ae928f85acdccb0d73b0202a41aa3e60470ba6c7853e41ef76587601b2163f9ec249b7fa1c5274 SHA512 da06af54ba93db06f717082e3f09bbca9e17adad4b070a28131f2ffec15d0dfc82c79a3b2fb045fa33d6756c6df85254733622b0b7b1952b33d5590a71865c62

6
app-dicts/myspell-fr/metadata.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<stabilize-allarches/>
</pkgmetadata>

71
app-dicts/myspell-fr/myspell-fr-7.0.ebuild

@ -0,0 +1,71 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MYSPELL_DICT=(
# Classique = Moderne + more classical word variants (the recommended variant)
# FR region hack to deal with LibreOffice bug, see src_prepare
"fr_FR.aff"
"fr_FR.dic"
# Reforme 1990 = the reformed orthography
"fr-1990.aff"
"fr-1990.dic"
# Toutes variantes = Classique + Reforme
"fr-ttsvars.aff"
"fr-ttsvars.dic"
)
MYSPELL_HYPH=(
# FR region hack to deal with LibreOffice bug, see src_prepare
"hyph_fr_FR.dic"
)
MYSPELL_THES=(
# FR region hack to deal with LibreOffice bug, see src_prepare
"th_fr_FR_v2.dat"
"th_fr_FR_v2.idx"
)
inherit myspell-r2
DESCRIPTION="French dictionaries for myspell/hunspell"
HOMEPAGE="https://grammalecte.net/home.php?prj=fr"
SRC_URI="http://grammalecte.net/grammalecte/oxt/lo-oo-ressources-linguistiques-fr-v${PV}.oxt"
LICENSE="MPL-2.0 LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
src_prepare() {
default
# Renaming so that variant subtags follow bcp47 rules
# <https://tools.ietf.org/html/rfc5646#section-2.1>,
# as this gives a nicer presentation in Firefox
# (due to it following bcp47 rules)
#
# fr-moderne is already OK
# fr-classique is recommended so rename to fr
mv fr-classique.aff fr.aff || die
mv fr-classique.dic fr.dic || die
# fr-reforme1990 changed to fr-1990 similarly to de-1901 and de-1996
mv fr-reforme1990.aff fr-1990.aff || die
mv fr-reforme1990.dic fr-1990.dic || die
# fr-toutesvariantes changed to fr-ttsvars until we find something better
mv fr-toutesvariantes.aff fr-ttsvars.aff || die
mv fr-toutesvariantes.dic fr-ttsvars.dic || die
# To deal with LibreOffice bug
# https://bugs.documentfoundation.org/show_bug.cgi?id=64830
# we need dictionary/thesaurus/hyphenation files named fr_FR
# (or should that be fr-FR?), so we rename the recommended one fr here.
# This is hopefully temporary, so we keep this separate from
# the bcp47-ification above.
mv fr.aff fr_FR.aff || die
mv fr.dic fr_FR.dic || die
mv hyph_fr.dic hyph_fr_FR.dic || die
# thes -> th and extra v2 suffix, again to appease LibreOffice
mv thes_fr.dat th_fr_FR_v2.dat || die
mv thes_fr.idx th_fr_FR_v2.idx || die
}
Loading…
Cancel
Save