From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9D8CD158094 for ; Tue, 27 Sep 2022 11:47:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D94DEE096F; Tue, 27 Sep 2022 11:47:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B9360E0923 for ; Tue, 27 Sep 2022 11:47:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9BC5834110B for ; Tue, 27 Sep 2022 11:47:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 00FE35C0 for ; Tue, 27 Sep 2022 11:47:07 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1664278959.12027621555a33241b3d3c9280af332dff9ec67c.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-dicts/myspell-fr/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-dicts/myspell-fr/Manifest app-dicts/myspell-fr/metadata.xml app-dicts/myspell-fr/myspell-fr-7.0-r1.ebuild X-VCS-Directories: app-dicts/myspell-fr/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 12027621555a33241b3d3c9280af332dff9ec67c X-VCS-Branch: master Date: Tue, 27 Sep 2022 11:47:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 070187c9-637c-4fe1-9a79-3ad399a472eb X-Archives-Hash: 6d1faacbed3e7b2eff011e4bb93b2861 commit: 12027621555a33241b3d3c9280af332dff9ec67c Author: Erik Quaeghebeur e3q eu> AuthorDate: Mon Sep 26 04:50:41 2022 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Sep 27 11:42:39 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12027621 app-dicts/myspell-fr: add corrected 7.0 version as r1 revision Signed-off-by: Erik Quaeghebeur e3q.eu> Closes: https://bugs.gentoo.org/607084 Closes: https://github.com/gentoo/gentoo/pull/27469 Signed-off-by: Joonas Niilola gentoo.org> app-dicts/myspell-fr/Manifest | 1 + app-dicts/myspell-fr/metadata.xml | 6 ++- app-dicts/myspell-fr/myspell-fr-7.0-r1.ebuild | 73 +++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 1 deletion(-) diff --git a/app-dicts/myspell-fr/Manifest b/app-dicts/myspell-fr/Manifest index 6a469d2ba26b..d9945bc8f2d6 100644 --- a/app-dicts/myspell-fr/Manifest +++ b/app-dicts/myspell-fr/Manifest @@ -1 +1,2 @@ +DIST lo-oo-ressources-linguistiques-fr-v7.0.oxt 3231859 BLAKE2B 779ab784e8c654a09ad54a166ae61b6eb61a5e5ba81828e33db9d7980c7ebe03f4b80bdcbbf52f9a448e550c4ffa918221933935f4893860887e5fc78d4c1b59 SHA512 ef4828660839f238efeb6092ae8a0735383d4b88015bab2f26b150ce21c3bee92442bf5d6e9fd08fea3d4ece3afbc97057b0d126dac666611cfae12c1bada703 DIST myspell-fr-7.0.tar.gz 3537269 BLAKE2B 4ed449860ed5c62ebe0669c513160c9380cb791f4eb0a4b9b8fb21ee6a0a845aabf3af1533a540d1697a2b9d980fc42a6ee60841da8149ba970eb34edd2f4e8a SHA512 af96495d8970d79283908226adc638a4cd387c94361bc9533df309a063eef53b625650ef5d899604b39cf6a2e97fcdc2200c914a252af425d55e4d076ce14ea7 diff --git a/app-dicts/myspell-fr/metadata.xml b/app-dicts/myspell-fr/metadata.xml index c3bda71eefca..70e5090ff2f8 100644 --- a/app-dicts/myspell-fr/metadata.xml +++ b/app-dicts/myspell-fr/metadata.xml @@ -2,5 +2,9 @@ - + + + https://grammalecte.net/documentation.php?prj=fr + https://grammalecte.net/forum.php?prj=fr + 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..c62d63e493b9 --- /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="http://www.dicollecte.org/home.php?prj=fr" +SRC_URI="http://www.dicollecte.org/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 + # , + # 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 )