Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libvoikko/
Date: Sun, 08 Sep 2019 06:55:44
Message-Id: 1567925571.bf6905a0f7c9a15557833814a9352e6a9407d9d7.juippis@gentoo
1 commit: bf6905a0f7c9a15557833814a9352e6a9407d9d7
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 8 06:52:51 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 8 06:52:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf6905a0
7
8 dev-libs/libvoikko: new package
9
10 - Spell checking, hyphenation and morphological analysis tool for
11 Finnish language, dependency of libreoffice-voikko
12
13 Package-Manager: Portage-2.3.75, Repoman-2.3.17
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 dev-libs/libvoikko/Manifest | 1 +
17 dev-libs/libvoikko/libvoikko-4.2.ebuild | 44 +++++++++++++++++++++++++++++++++
18 dev-libs/libvoikko/metadata.xml | 12 +++++++++
19 3 files changed, 57 insertions(+)
20
21 diff --git a/dev-libs/libvoikko/Manifest b/dev-libs/libvoikko/Manifest
22 new file mode 100644
23 index 00000000000..af1e1f9445f
24 --- /dev/null
25 +++ b/dev-libs/libvoikko/Manifest
26 @@ -0,0 +1 @@
27 +DIST libvoikko-4.2.tar.gz 653769 BLAKE2B 6c0e665d7b5eca394b49dbebf38a0815b1fe1ea328efa305e9d1574b551c633be6b2326b5b402bbc454557a559a821a28c668a1845b21a71c378d0e97103ca53 SHA512 483d3c259a52ae772d52f708789c3df39a4857188c7b9035ce5db8b16bfa4ef144e2ffd557dd6a0655e4c9a6984529784e4098bc949a1bc8a0a50529fee49656
28
29 diff --git a/dev-libs/libvoikko/libvoikko-4.2.ebuild b/dev-libs/libvoikko/libvoikko-4.2.ebuild
30 new file mode 100644
31 index 00000000000..a376a0f4e3a
32 --- /dev/null
33 +++ b/dev-libs/libvoikko/libvoikko-4.2.ebuild
34 @@ -0,0 +1,44 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +PYTHON_COMPAT=( python{2_7,3_{5..7}} )
41 +
42 +inherit python-r1
43 +
44 +DESCRIPTION="Spell checking, hyphenation and morphological analysis tool for Finnish language"
45 +HOMEPAGE="https://voikko.puimula.org/"
46 +SRC_URI="https://www.puimula.org/voikko-sources/${PN}/${P}.tar.gz"
47 +LICENSE="GPL-2+"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +IUSE="+expvfst +hfst"
52 +
53 +RESTRICT="test"
54 +
55 +DEPEND="${PYTHON_DEPS}
56 + hfst? ( >=dev-util/hfstospell-0.5.0 )"
57 +RDEPEND="${DEPEND}"
58 +
59 +src_configure() {
60 + local myconf=(
61 + --prefix=/usr
62 + --with-dictionary-path=/usr/share/voikko
63 + $(use_enable expvfst)
64 + )
65 +
66 + if ! use hfst ; then
67 + myconf+=( --disable-hfst )
68 + fi
69 +
70 + econf "${myconf[@]}"
71 +}
72 +
73 +src_install() {
74 + python_setup
75 + default
76 +
77 + python_foreach_impl python_domodule python/libvoikko.py
78 +}
79
80 diff --git a/dev-libs/libvoikko/metadata.xml b/dev-libs/libvoikko/metadata.xml
81 new file mode 100644
82 index 00000000000..b61e52b54ad
83 --- /dev/null
84 +++ b/dev-libs/libvoikko/metadata.xml
85 @@ -0,0 +1,12 @@
86 +<?xml version="1.0" encoding="UTF-8"?>
87 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
88 +<pkgmetadata>
89 + <maintainer type="person">
90 + <email>juippis@g.o</email>
91 + <name>Joonas Niilola</name>
92 + </maintainer>
93 + <use>
94 + <flag name='expvfst'>Enable experimental features of VFST morphology backend</flag>
95 + <flag name='hfst'>Enable HFST morphology backend</flag>
96 + </use>
97 +</pkgmetadata>