diff options
Diffstat (limited to 'app-dicts/myspell-fr')
-rw-r--r-- | app-dicts/myspell-fr/Manifest | 5 | ||||
-rw-r--r-- | app-dicts/myspell-fr/metadata.xml | 9 | ||||
-rw-r--r-- | app-dicts/myspell-fr/myspell-fr-4.5-r1.ebuild | 54 | ||||
-rw-r--r-- | app-dicts/myspell-fr/myspell-fr-7.0-r1.ebuild | 73 |
4 files changed, 81 insertions, 60 deletions
diff --git a/app-dicts/myspell-fr/Manifest b/app-dicts/myspell-fr/Manifest index 2fb854d7348b..a31e91f65242 100644 --- a/app-dicts/myspell-fr/Manifest +++ b/app-dicts/myspell-fr/Manifest @@ -1,4 +1 @@ -DIST ooo-dictionnaire-fr-classique-reforme1990-v4.5.oxt 2271004 BLAKE2B 80c5c43a096c595e8cf5687336e69df5300bf52a84dbd331da6bada5b8bd430d94ac608cd51569ffceb63e3f4ee1f20ac3c7c2583ae02389805a6c1a841ce47b SHA512 7cfec4838551ff8a14db97cea08ae5280de4cd35ac1b49346484790dff18f156ef5cf2f05e90d61d1809e91780d77cfff3cf59d01f91f949580244e257a1c17b -DIST ooo-dictionnaire-fr-classique-v4.5.oxt 2251909 BLAKE2B 3ea0901efcee126b2702efebe279cb32b0e496d6b92b8e2a9dd16671bd999b6357086faf99ced6db5f4babe726ee933f3f85858c84a80c8b656b945b23d2aaa7 SHA512 f45b1e12b24e2ef2a9e3944b310631ee5c52ef7cd94a9d2d461ec91b320b40e6d380db7820d386ad75627873b6033e80451b2371f0a42817ead77ce5f03edf77 -DIST ooo-dictionnaire-fr-moderne-v4.5.oxt 2248032 BLAKE2B 4e935186b621810f468e6915e61c7389aa95f8d8e00d8960bd1a9cb8622521669c6147c0b535fffa85a36abb9fcb739a45c00bd9036e5d019953c5b7d13321d5 SHA512 b493f0c57d3d48b93a2c0d9fbd065728ed011c68d11286def203a0b798fe02381acdb2927805475c69c1ff7d0a7ff53469e84581c4724dd57bf0211d85c52655 -DIST ooo-dictionnaire-fr-reforme1990-v4.5.oxt 2255388 BLAKE2B d804bb80698f1ffb8b77dc8c3efa0841437de1389a7fda870fbb4a71914c42055153ff92629481b3e669bec2fa00258b43ff3d92acf08335e11559bb5dec6fae SHA512 39630fb67ecd4afd528a8c255c405945d866e57fb2becc0e79b6c16ec0e0510101d106c0342dd43f26befd3dd0ca3e4094360aaa0d91a090ecdea49158383ed5 +DIST lo-oo-ressources-linguistiques-fr-v7.0.oxt 3231859 BLAKE2B 779ab784e8c654a09ad54a166ae61b6eb61a5e5ba81828e33db9d7980c7ebe03f4b80bdcbbf52f9a448e550c4ffa918221933935f4893860887e5fc78d4c1b59 SHA512 ef4828660839f238efeb6092ae8a0735383d4b88015bab2f26b150ce21c3bee92442bf5d6e9fd08fea3d4ece3afbc97057b0d126dac666611cfae12c1bada703 diff --git a/app-dicts/myspell-fr/metadata.xml b/app-dicts/myspell-fr/metadata.xml index 6f49eba8f496..70e5090ff2f8 100644 --- a/app-dicts/myspell-fr/metadata.xml +++ b/app-dicts/myspell-fr/metadata.xml @@ -1,5 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<!-- maintainer-needed --> + <!-- maintainer-needed --> + <stabilize-allarches /> + <upstream> + <doc lang="fr">https://grammalecte.net/documentation.php?prj=fr</doc> + <bugs-to>https://grammalecte.net/forum.php?prj=fr</bugs-to> + </upstream> </pkgmetadata> diff --git a/app-dicts/myspell-fr/myspell-fr-4.5-r1.ebuild b/app-dicts/myspell-fr/myspell-fr-4.5-r1.ebuild deleted file mode 100644 index ca8a709cf52b..000000000000 --- a/app-dicts/myspell-fr/myspell-fr-4.5-r1.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -MYSPELL_DICT=( - "fr-moderne.aff" - "fr-moderne.dic" - "fr-classique.aff" - "fr-classique.dic" - "fr_FR.aff" - "fr_FR.dic" - "fr-reforme1990.aff" - "fr-reforme1990.dic" -) - -MYSPELL_HYPH=( - "hyph_fr_FR_v3.dic" -) - -MYSPELL_THES=( - "th_fr_FR_v3.dat" - "th_fr_FR_v3.idx" -) - -inherit myspell-r2 - -DESCRIPTION="French dictionaries for myspell/hunspell" -HOMEPAGE="http://extensions.libreoffice.org/extension-center/dictionnaires-francais" -SRC_URI=" - http://extensions.libreoffice.org/extension-center/dictionnaires-francais/releases/${PV}/ooo-dictionnaire-fr-moderne-v${PV}.oxt - http://extensions.libreoffice.org/extension-center/dictionnaires-francais/releases/${PV}/ooo-dictionnaire-fr-classique-v${PV}.oxt - http://extensions.libreoffice.org/extension-center/dictionnaires-francais/releases/${PV}/ooo-dictionnaire-fr-classique-reforme1990-v${PV}.oxt - http://extensions.libreoffice.org/extension-center/dictionnaires-francais/releases/${PV}/ooo-dictionnaire-fr-reforme1990-v${PV}.oxt -" - -LICENSE="GPL-2 LGPL-2.1 MPL-1.1" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~x86-linux ~x86-macos" -IUSE="" - -src_prepare() { - default - # the default should be classique+reforme1990 - # renaming to fr_FR - mv fr-classique+reforme1990.aff fr_FR.aff || die - mv fr-classique+reforme1990.dic fr_FR.dic || die - - # move the hyphen/thes to common used name - # versions determined from README files - mv hyph_fr.dic hyph_fr_FR_v3.dic || die - mv thes_fr.dat th_fr_FR_v3.dat || die - mv thes_fr.idx th_fr_FR_v3.idx || die -} diff --git a/app-dicts/myspell-fr/myspell-fr-7.0-r1.ebuild b/app-dicts/myspell-fr/myspell-fr-7.0-r1.ebuild new file mode 100644 index 000000000000..677a2f38828f --- /dev/null +++ b/app-dicts/myspell-fr/myspell-fr-7.0-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MYSPELL_DICT=( + # Classique (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="https://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 arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~x86-linux" +IUSE="" + +src_prepare() { + # 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-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 + + eapply_user +} + +DOCS=( package-description.txt README_dict_fr.txt README_hyph_fr-2.9.txt README_hyph_fr-3.0.txt README_thes_fr.txt ) |