2020-04-14 13:21:56 +02:00
|
|
|
# Copyright 2020 Gentoo Authors
|
2020-04-13 23:21:40 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit desktop gnome2-utils multilib unpacker xdg-utils
|
|
|
|
|
|
|
|
MY_PN="ONLYOFFICE-DesktopEditors"
|
|
|
|
MY_P="${MY_PN}-${PVR//r}"
|
|
|
|
|
|
|
|
DESCRIPTION="onlyoffice is an office productivity suite (binary version)"
|
|
|
|
HOMEPAGE="https://www.onlyoffice.com/"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
|
|
|
SRC_URI="
|
|
|
|
amd64? (
|
|
|
|
https://github.com/ONLYOFFICE/DesktopEditors/releases/download/${MY_P}/${PN/bin/desktopeditors}_amd64.deb -> ${MY_P}_amd64.deb
|
|
|
|
)
|
|
|
|
"
|
|
|
|
|
|
|
|
SLOT="0"
|
|
|
|
RESTRICT="mirror strip"
|
|
|
|
LICENSE="AGPL-3"
|
|
|
|
IUSE=""
|
|
|
|
|
2020-04-14 13:21:56 +02:00
|
|
|
DEPEND="
|
2020-04-13 23:21:40 +02:00
|
|
|
app-arch/bzip2
|
|
|
|
dev-libs/expat
|
|
|
|
dev-libs/glib:2
|
|
|
|
dev-libs/libffi
|
|
|
|
dev-libs/libxml2:2
|
|
|
|
dev-libs/nss
|
|
|
|
dev-libs/atk
|
|
|
|
dev-qt/qtgui:5
|
|
|
|
dev-qt/qtcore:5
|
|
|
|
dev-qt/qtdbus:5
|
|
|
|
dev-qt/qtmultimedia:5
|
|
|
|
dev-qt/qtwidgets:5
|
|
|
|
dev-qt/qtx11extras:5
|
|
|
|
dev-qt/qtsvg:5
|
|
|
|
dev-qt/qtnetwork:5
|
|
|
|
dev-qt/qtopengl:5
|
|
|
|
media-libs/fontconfig:1.0
|
|
|
|
media-libs/freetype:2
|
|
|
|
media-libs/glu
|
|
|
|
media-libs/gst-plugins-base
|
|
|
|
media-libs/gstreamer
|
|
|
|
net-misc/curl
|
|
|
|
virtual/opengl
|
|
|
|
media-libs/tiff
|
|
|
|
sys-apps/util-linux
|
|
|
|
sys-libs/zlib
|
|
|
|
x11-libs/libdrm
|
|
|
|
x11-libs/libICE
|
|
|
|
x11-libs/libSM
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXau
|
|
|
|
x11-libs/libxcb
|
|
|
|
x11-libs/libXdamage
|
|
|
|
x11-libs/libXdmcp
|
|
|
|
x11-libs/libXext
|
|
|
|
x11-libs/libXfixes
|
|
|
|
x11-libs/libXrender
|
|
|
|
x11-libs/libXxf86vm
|
|
|
|
media-libs/libmng
|
|
|
|
media-fonts/dejavu
|
|
|
|
media-fonts/crosextrafonts-carlito
|
|
|
|
net-print/cups
|
|
|
|
net-misc/wget
|
|
|
|
x11-libs/cairo
|
|
|
|
x11-libs/gtk+:2
|
|
|
|
"
|
|
|
|
RDEPEND="
|
2020-04-14 13:21:56 +02:00
|
|
|
${DEPEND}
|
2020-04-13 23:21:40 +02:00
|
|
|
dev-db/sqlite:3
|
|
|
|
net-libs/libcurl-gnutls
|
|
|
|
!app-office/onlyoffice
|
|
|
|
"
|
|
|
|
|
|
|
|
S="${WORKDIR}"
|
|
|
|
|
|
|
|
src_unpack(){
|
2020-04-14 13:21:56 +02:00
|
|
|
unpack_deb ${A}
|
2020-04-13 23:21:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2020-04-13 23:39:10 +02:00
|
|
|
mkdir -p "${D}"
|
|
|
|
cp -r . "${D}"
|
2020-04-13 23:21:40 +02:00
|
|
|
local res
|
|
|
|
for res in 16 24 32 48 64 128 256; do
|
|
|
|
doicon -s ${res} opt/onlyoffice/desktopeditors/asc-de-${res}.png
|
|
|
|
done
|
|
|
|
dosym "${EPREFIX}/usr/$(get_libdir)/libcurl-gnutls.so.4" "${EPREFIX}/opt/onlyoffice/desktopeditors/libcurl-gnutls.so.4"
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_preinst(){
|
|
|
|
gnome2_gconf_savelist
|
|
|
|
xdg_environment_reset
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
gnome2_gconf_install
|
|
|
|
xdg_desktop_database_update
|
|
|
|
xdg_mimeinfo_database_update
|
|
|
|
xdg_icon_cache_update
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
gnome2_gconf_uninstall
|
|
|
|
xdg_desktop_database_update
|
|
|
|
xdg_mimeinfo_database_update
|
|
|
|
xdg_icon_cache_update
|
|
|
|
}
|