summaryrefslogtreecommitdiff
path: root/dev-util/hfstospell
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-20 20:21:39 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-20 20:21:39 +0000
commitdd03974882f85ca04e35cfbc97f7ff756f5d5c20 (patch)
tree4fabcc91c51083e19657dd0a557043e74468106e /dev-util/hfstospell
parentd542bd2ef95af892c7ef62be1489b0288b1df9e3 (diff)
gentoo auto-resync : 20:02:2023 - 20:21:39
Diffstat (limited to 'dev-util/hfstospell')
-rw-r--r--dev-util/hfstospell/Manifest4
-rw-r--r--dev-util/hfstospell/files/hfstospell-0.5.3-gcc-13-fix.patch21
-rw-r--r--dev-util/hfstospell/hfstospell-0.5.3-r1.ebuild52
-rw-r--r--dev-util/hfstospell/metadata.xml3
4 files changed, 79 insertions, 1 deletions
diff --git a/dev-util/hfstospell/Manifest b/dev-util/hfstospell/Manifest
index 8da63277083e..4bde01f3501d 100644
--- a/dev-util/hfstospell/Manifest
+++ b/dev-util/hfstospell/Manifest
@@ -1,3 +1,5 @@
+AUX hfstospell-0.5.3-gcc-13-fix.patch 505 BLAKE2B 96e97a6b2969759dd864e30f3beb9dad5eb97cb8682fd1fc91b97b578daa9a18c6e30eea174174d64bb186380ed6812e231f30cbc4a89b6bead4fa7ac2ea97b3 SHA512 3b6573c4fd3e27026f07f1c2a3abd22b788c682f759b25743c540c2b1bdb83f72db2e7d7bdc85f963acf789dacbdc68c1c5af71cc90f676aa4bdcd10b3df756e
DIST hfstospell-0.5.3.tar.gz 152654 BLAKE2B f77c86e18b9dcb098460bdaec2f6a148b4bf515670aad3d17002b3027026483658d0df924a5d71b12251128ba89bee3a9d7c1d03a5983830accf0340445a1331 SHA512 f25bae6c083894139ba1e3dbd24f010e1c4695bdfe4c2499d31f2f0bd2f5688b662ea15666b46f174fc75f0aa6f5cd114456f735b1d49bcf33322221b6f57ff5
+EBUILD hfstospell-0.5.3-r1.ebuild 1081 BLAKE2B 69f172c3d1afb4e425a94c45669cf0a3038e12243d722e246d0969e595b46d064f95401604f30ce25ef3779d1edcac9f3e3ca65e1b924d7bc84ca58ed5bdf375 SHA512 ac5459590bfeb90913718f33b5639afa10729394291a9d48c0944f33249da1fa58e55d7428999fb7f597d820d288a77244f367a8659d5c866114c09708118a9e
EBUILD hfstospell-0.5.3.ebuild 1018 BLAKE2B 73fe117faca691ad9558b4563feb2fcbb9efefec2dd5426c1b12b6e81c8bc22c85126038d953385006eb04c7e71651533bf580aa22a09cc4fef9753a1e460930 SHA512 51b2d0db29a9b2bd5f0ddad714aeeba9fea094369d0e8ba5665473f575d26bf209adff627dd940776a48b9147cac1c6a145adf8b94f2cbef5d2f0c3abef69020
-MISC metadata.xml 351 BLAKE2B 9cdc83b2e5d95339cda3177ecc3e365a30a1ebc43aadd34b455150adbb47103ea1bc5d45e05cbc6a6274f6bcbfd6cf81a4b7d46c8d144d4afc37d4d15f5c4a18 SHA512 678b8c4ded8d14c4a044ed866880e0bd3794a8456925e7e66ee610263ec347a0e28ce8f2f27be7f3f6b2217467b6e30218c4b2c29d9f133bca7cd8c730c48b8e
+MISC metadata.xml 436 BLAKE2B 3ed5583ea7f135568d9dcc00182ddde46c89ddb1923a03bc6f88606fecc5ff3956b768a1ca4de16b9e84179a3e57196d56b9789006cc1c6ea9482e5dd72b8e52 SHA512 9b902cff3f380d68348a756774f99ca4aafd807cb637ecb591d0f3a63d23fae6c688b542a6018fdbcce6e2dac34ef1d8e122b0bab671f31d99383ea4aa8f52bb
diff --git a/dev-util/hfstospell/files/hfstospell-0.5.3-gcc-13-fix.patch b/dev-util/hfstospell/files/hfstospell-0.5.3-gcc-13-fix.patch
new file mode 100644
index 000000000000..d5dc32d57a7e
--- /dev/null
+++ b/dev-util/hfstospell/files/hfstospell-0.5.3-gcc-13-fix.patch
@@ -0,0 +1,21 @@
+From 7481bffbf622bc9aee3547183fbe8db9cf8b22ce Mon Sep 17 00:00:00 2001
+From: Tino Didriksen <mail@tinodidriksen.com>
+Date: Sun, 3 Jul 2022 23:16:52 +0200
+Subject: [PATCH] Include cstdint (fixes #57)
+
+---
+ hfst-ol.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/hfst-ol.h b/hfst-ol.h
+index 0a83ec5..ee59b14 100644
+--- a/hfst-ol.h
++++ b/hfst-ol.h
+@@ -28,6 +28,7 @@
+ #include <climits>
+ #include <cstdio>
+ #include <cstdlib>
++#include <cstdint>
+ #include <iostream>
+ #include <cstring>
+ #include <set>
diff --git a/dev-util/hfstospell/hfstospell-0.5.3-r1.ebuild b/dev-util/hfstospell/hfstospell-0.5.3-r1.ebuild
new file mode 100644
index 000000000000..80b70860f0f0
--- /dev/null
+++ b/dev-util/hfstospell/hfstospell-0.5.3-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="HFST spell checker library and command line tool"
+HOMEPAGE="https://github.com/hfst/hfst-ospell"
+SRC_URI="https://github.com/hfst/hfst-ospell/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+IUSE="clang"
+
+DEPEND="app-arch/libarchive:=
+ dev-libs/icu:=
+ !clang? (
+ dev-cpp/glibmm:2
+ dev-cpp/libxmlpp:2.6
+ dev-libs/glib:2
+ dev-libs/libsigc++:2
+ dev-libs/libxml2
+ )"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}/hfst-ospell-${PV}"
+
+PATCHES=( "${FILESDIR}"/hfstospell-0.5.3-gcc-13-fix.patch )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # https://github.com/hfst/hfst-ospell/issues/48
+ if tc-is-clang; then
+ econf --without-libxmlpp --without-tinyxml2
+ elif use clang; then
+ econf --without-libxmlpp --without-tinyxml2
+ else
+ default
+ fi
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete -o -name '*.a' -delete || die
+}
diff --git a/dev-util/hfstospell/metadata.xml b/dev-util/hfstospell/metadata.xml
index a5bd9f8e3448..a75f124455fb 100644
--- a/dev-util/hfstospell/metadata.xml
+++ b/dev-util/hfstospell/metadata.xml
@@ -8,4 +8,7 @@
<use>
<flag name="clang">Use different logic in ebuild when clang is used</flag>
</use>
+ <upstream>
+ <remote-id type="github">hfst/hfst-ospell</remote-id>
+ </upstream>
</pkgmetadata>