diff options
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/Manifest.gz | bin | 9395 -> 9568 bytes | |||
-rw-r--r-- | app-office/libreoffice-voikko/Manifest | 3 | ||||
-rw-r--r-- | app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild | 56 | ||||
-rw-r--r-- | app-office/libreoffice-voikko/metadata.xml | 8 |
4 files changed, 67 insertions, 0 deletions
diff --git a/app-office/Manifest.gz b/app-office/Manifest.gz Binary files differindex c598deee15cb..337b4e874a2b 100644 --- a/app-office/Manifest.gz +++ b/app-office/Manifest.gz diff --git a/app-office/libreoffice-voikko/Manifest b/app-office/libreoffice-voikko/Manifest new file mode 100644 index 000000000000..bd841d5a04a3 --- /dev/null +++ b/app-office/libreoffice-voikko/Manifest @@ -0,0 +1,3 @@ +DIST libreoffice-voikko-5.0.tar.gz 51882 BLAKE2B c4d33f469821b3d3ee15f71c21a2e3fd5474939dda204873e85d9e52aee0d1cd9c01f660d63fdbef87786dbb0b8a88ba4fd45b8aff07b0b35588c9933d4c9cef SHA512 58f139c190acf5c56a8506365c296d06efd95b4422bb66c50e8058231bd10410b202d2a01ad0a2bf82dc0f41565c1e3a07ed86a4ae070d32af8cfd0e56d7eec0 +EBUILD libreoffice-voikko-5.0.ebuild 1414 BLAKE2B 09aafaa560e94a1f8ab9e91829fb28307ab6ae4fa6d7a0026f5878e55ff37223fc93cffe63661c66db3ebcff27b67f7f74f8b08009a093236397c4b1735a64d9 SHA512 054ff39abf9507e70c645f32880a2741613795cfeaaaafed7c833ddccd871986099b28f19ea000e5c3f5d965427b9453bdf9c63a9a1d50ca5bef063a2200e0f1 +MISC metadata.xml 254 BLAKE2B 938f68b7b21ad386a35540a09e4bb956e241dfc963d4823c3c0cd46d3449ff4fb5a1cead67ad7c35a460503d30bdbde35822535f1c2d46f2939ee190f328b846 SHA512 26047ebb40fc49bfb4393121c5c5af69caee617a1d75676be84b0f5af75564828aeeef4503c7681eaaf7e48f6c662574874336296c18e002dca8e925162a1d4c diff --git a/app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild b/app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild new file mode 100644 index 000000000000..407d34087ed9 --- /dev/null +++ b/app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Free Finnish spell checking and hyphenation for LibreOffice" +HOMEPAGE="https://voikko.puimula.org/" +SRC_URI="https://www.puimula.org/voikko-sources/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="app-office/libreoffice[odk] + dev-libs/voikko-fi" +RDEPEND="${DEPEND} + dev-libs/libvoikko" + +src_compile() { + emake oxt +} + +src_install() { + einstalldocs + + emake DESTDIR="${D}/usr/$(get_libdir)/${P}" install-unpacked + + insinto /usr/$(get_libdir)/libreoffice/share/extension/install/ + doins build/voikko.oxt +} + +pkg_postinst() { + # Register voikko with libreoffice + COMPONENT="${ROOT}/usr/$(get_libdir)/libreoffice/share/extension/install/voikko.oxt" + + einfo "Trying to register ${COMPONENT} ..." + unopkg add --shared "${COMPONENT}" + if [[ $? == 0 ]] ; then + einfo "${PN} registered succesfully with LibreOffice." + else + eerror "Couldn’t register ${PN} with LibreOffice." + fi +} + +pkg_prerm() { + # Remove voikko registration from libreoffice + unopkg remove --shared org.puimula.ooovoikko + if [[ $? == 0 ]] ; then + einfo "${PN} removed succesfully from LibreOffice." + else + eerror "Couldn't remove ${PN} from LibreOffice, " + eerror "manual removal might be needed with " + eerror " unopkg list --shared" + eerror " unopkg remove --shared VOIKKO-IDENTIFIER" + fi +} diff --git a/app-office/libreoffice-voikko/metadata.xml b/app-office/libreoffice-voikko/metadata.xml new file mode 100644 index 000000000000..6b0a0fb3a729 --- /dev/null +++ b/app-office/libreoffice-voikko/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>juippis@gentoo.org</email> + <name>Joonas Niilola</name> + </maintainer> +</pkgmetadata> |