From 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 14 Dec 2020 13:26:14 +0000 Subject: gentoo resync : 14.12.2020 --- app-office/libreoffice-voikko/Manifest | 2 +- .../libreoffice-voikko-5.0-r1.ebuild | 65 ++++++++++++++++++++++ .../libreoffice-voikko-5.0.ebuild | 62 --------------------- 3 files changed, 66 insertions(+), 63 deletions(-) create mode 100644 app-office/libreoffice-voikko/libreoffice-voikko-5.0-r1.ebuild delete mode 100644 app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild (limited to 'app-office/libreoffice-voikko') diff --git a/app-office/libreoffice-voikko/Manifest b/app-office/libreoffice-voikko/Manifest index 492cdb25a0dd..a81dad3d5175 100644 --- a/app-office/libreoffice-voikko/Manifest +++ b/app-office/libreoffice-voikko/Manifest @@ -1,4 +1,4 @@ DIST libreoffice-voikko-5.0.tar.gz 51882 BLAKE2B c4d33f469821b3d3ee15f71c21a2e3fd5474939dda204873e85d9e52aee0d1cd9c01f660d63fdbef87786dbb0b8a88ba4fd45b8aff07b0b35588c9933d4c9cef SHA512 58f139c190acf5c56a8506365c296d06efd95b4422bb66c50e8058231bd10410b202d2a01ad0a2bf82dc0f41565c1e3a07ed86a4ae070d32af8cfd0e56d7eec0 DIST libreoffice-voikko-5.0.tar.gz.asc 819 BLAKE2B 4305cd6cfccce6ee832cbda6c3b10a7676e94fa968c71f1894c178a3715ec00b477e745ef22b284b06190291748ac71dad2b43ea5d15e49833b0dcb53eabb7ca SHA512 7df7317018904700957691785ba80f1fcb390891fdbf6210a8eb06db5ac4ae1721b8175777685d062af08b52168dd94d5bb4b851c9405501781f1b1257a32cc3 -EBUILD libreoffice-voikko-5.0.ebuild 1653 BLAKE2B ed32915f2400d2f8620dc07636e8847c39e334e7a6d80face9c897cb8df52f7ed2f561cdfe9253978f146ca83ddab932603b6e83afdc5a5a6cc72cf6784ba94d SHA512 11a7bd6713a0cc0c53d0e0c7bcd42e2752791d2704d509ddc5ff07eb3216eb1a6539e0308b5fae1c912492f4edad89df51738154b1b9be51a943aa99ce01e42f +EBUILD libreoffice-voikko-5.0-r1.ebuild 1705 BLAKE2B 970bdad38d6edcf1d051345b3246648528aebb620b3016f901c888fb2d932d49d81323ecf1eced0f2a54b62b90044783bf87b868300b8f4954d99613465fe5e8 SHA512 f62a89fb74bb02fe79ee0ee68ff8a83a8161a42aed7d16fb6c49f23258580dabde28718c5b92d2a25f02388ca6ffe6d2acff35d578327c8ad4757a7332792d5d MISC metadata.xml 254 BLAKE2B 938f68b7b21ad386a35540a09e4bb956e241dfc963d4823c3c0cd46d3449ff4fb5a1cead67ad7c35a460503d30bdbde35822535f1c2d46f2939ee190f328b846 SHA512 26047ebb40fc49bfb4393121c5c5af69caee617a1d75676be84b0f5af75564828aeeef4503c7681eaaf7e48f6c662574874336296c18e002dca8e925162a1d4c diff --git a/app-office/libreoffice-voikko/libreoffice-voikko-5.0-r1.ebuild b/app-office/libreoffice-voikko/libreoffice-voikko-5.0-r1.ebuild new file mode 100644 index 000000000000..5a72ac24f936 --- /dev/null +++ b/app-office/libreoffice-voikko/libreoffice-voikko-5.0-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit verify-sig + +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 + verify-sig? ( https://www.puimula.org/voikko-sources/libreoffice-voikko/${P}.tar.gz.asc )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" + +DEPEND="|| ( + app-office/libreoffice[odk] + >=app-office/libreoffice-bin-6.4.7.2_p1 + ) + dev-libs/voikko-fi" +RDEPEND="${DEPEND} + dev-libs/libvoikko" +BDEPEND="verify-sig? ( app-crypt/openpgp-keys-voikko )" + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/voikko.asc + +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/libreoffice-voikko-5.0.ebuild b/app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild deleted file mode 100644 index a3f28fbbb567..000000000000 --- a/app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit verify-sig - -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 - verify-sig? ( https://www.puimula.org/voikko-sources/libreoffice-voikko/${P}.tar.gz.asc )" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="amd64 x86" - -DEPEND="app-office/libreoffice[odk] - dev-libs/voikko-fi" -RDEPEND="${DEPEND} - dev-libs/libvoikko" -BDEPEND="verify-sig? ( app-crypt/openpgp-keys-voikko )" - -VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/voikko.asc - -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 -} -- cgit v1.2.3