public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-dicts/myspell-fr/
Date: Tue, 27 Sep 2022 11:47:07 +0000 (UTC)	[thread overview]
Message-ID: <1664278959.12027621555a33241b3d3c9280af332dff9ec67c.juippis@gentoo> (raw)

commit:     12027621555a33241b3d3c9280af332dff9ec67c
Author:     Erik Quaeghebeur <gentoo <AT> e3q <DOT> eu>
AuthorDate: Mon Sep 26 04:50:41 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> 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 <gentoo <AT> e3q.eu>
Closes: https://bugs.gentoo.org/607084
Closes: https://github.com/gentoo/gentoo/pull/27469
Signed-off-by: Joonas Niilola <juippis <AT> 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 @@
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 	<!-- maintainer-needed -->
-	<stabilize-allarches/>
+	<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-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
+	# <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 )


             reply	other threads:[~2022-09-27 11:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-27 11:47 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-07  7:13 [gentoo-commits] repo/gentoo:master commit in: app-dicts/myspell-fr/ Joonas Niilola
2022-12-01 20:46 Arthur Zamarin
2022-09-27 11:47 Joonas Niilola
2021-12-17 14:44 Arthur Zamarin
2021-10-26  6:08 Joonas Niilola
2021-10-26  6:08 Joonas Niilola
2021-07-05  6:57 Agostino Sarubbo
2021-06-10  6:40 Joonas Niilola
2021-01-06 12:57 Fabian Groffen
2019-04-23 21:39 Aaron Bauman
2018-03-27 22:30 Aaron Bauman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1664278959.12027621555a33241b3d3c9280af332dff9ec67c.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox