Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice-voikko/
Date: Sun, 08 Sep 2019 06:55:44
Message-Id: 1567925698.fc4d0b573010a14bc2f5e301185ef05b72b41a86.juippis@gentoo
1 commit: fc4d0b573010a14bc2f5e301185ef05b72b41a86
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 8 06:54:58 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 8 06:54:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc4d0b57
7
8 app-office/libreoffice-voikko: new package
9
10 - Free Finnish spell checking and hyphenation for LibreOffice
11
12 Package-Manager: Portage-2.3.75, Repoman-2.3.17
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 app-office/libreoffice-voikko/Manifest | 1 +
16 .../libreoffice-voikko-5.0.ebuild | 56 ++++++++++++++++++++++
17 app-office/libreoffice-voikko/metadata.xml | 8 ++++
18 3 files changed, 65 insertions(+)
19
20 diff --git a/app-office/libreoffice-voikko/Manifest b/app-office/libreoffice-voikko/Manifest
21 new file mode 100644
22 index 00000000000..aeec9c2c876
23 --- /dev/null
24 +++ b/app-office/libreoffice-voikko/Manifest
25 @@ -0,0 +1 @@
26 +DIST libreoffice-voikko-5.0.tar.gz 51882 BLAKE2B c4d33f469821b3d3ee15f71c21a2e3fd5474939dda204873e85d9e52aee0d1cd9c01f660d63fdbef87786dbb0b8a88ba4fd45b8aff07b0b35588c9933d4c9cef SHA512 58f139c190acf5c56a8506365c296d06efd95b4422bb66c50e8058231bd10410b202d2a01ad0a2bf82dc0f41565c1e3a07ed86a4ae070d32af8cfd0e56d7eec0
27
28 diff --git a/app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild b/app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild
29 new file mode 100644
30 index 00000000000..407d34087ed
31 --- /dev/null
32 +++ b/app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild
33 @@ -0,0 +1,56 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +DESCRIPTION="Free Finnish spell checking and hyphenation for LibreOffice"
40 +HOMEPAGE="https://voikko.puimula.org/"
41 +SRC_URI="https://www.puimula.org/voikko-sources/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="GPL-3"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +DEPEND="app-office/libreoffice[odk]
48 + dev-libs/voikko-fi"
49 +RDEPEND="${DEPEND}
50 + dev-libs/libvoikko"
51 +
52 +src_compile() {
53 + emake oxt
54 +}
55 +
56 +src_install() {
57 + einstalldocs
58 +
59 + emake DESTDIR="${D}/usr/$(get_libdir)/${P}" install-unpacked
60 +
61 + insinto /usr/$(get_libdir)/libreoffice/share/extension/install/
62 + doins build/voikko.oxt
63 +}
64 +
65 +pkg_postinst() {
66 + # Register voikko with libreoffice
67 + COMPONENT="${ROOT}/usr/$(get_libdir)/libreoffice/share/extension/install/voikko.oxt"
68 +
69 + einfo "Trying to register ${COMPONENT} ..."
70 + unopkg add --shared "${COMPONENT}"
71 + if [[ $? == 0 ]] ; then
72 + einfo "${PN} registered succesfully with LibreOffice."
73 + else
74 + eerror "Couldn’t register ${PN} with LibreOffice."
75 + fi
76 +}
77 +
78 +pkg_prerm() {
79 + # Remove voikko registration from libreoffice
80 + unopkg remove --shared org.puimula.ooovoikko
81 + if [[ $? == 0 ]] ; then
82 + einfo "${PN} removed succesfully from LibreOffice."
83 + else
84 + eerror "Couldn't remove ${PN} from LibreOffice, "
85 + eerror "manual removal might be needed with "
86 + eerror " unopkg list --shared"
87 + eerror " unopkg remove --shared VOIKKO-IDENTIFIER"
88 + fi
89 +}
90
91 diff --git a/app-office/libreoffice-voikko/metadata.xml b/app-office/libreoffice-voikko/metadata.xml
92 new file mode 100644
93 index 00000000000..6b0a0fb3a72
94 --- /dev/null
95 +++ b/app-office/libreoffice-voikko/metadata.xml
96 @@ -0,0 +1,8 @@
97 +<?xml version="1.0" encoding="UTF-8"?>
98 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
99 +<pkgmetadata>
100 + <maintainer type="person">
101 + <email>juippis@g.o</email>
102 + <name>Joonas Niilola</name>
103 + </maintainer>
104 +</pkgmetadata>