mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
editors/r7-office: + Russian office suite.
Sponsored by: Serenity Cybersecurity, LLC
This commit is contained in:
parent
abbbdf0e6c
commit
21b9dea150
@ -239,6 +239,7 @@
|
||||
SUBDIR += py-pynvim
|
||||
SUBDIR += py-vim-bridge
|
||||
SUBDIR += quilter
|
||||
SUBDIR += r7-office
|
||||
SUBDIR += rehex
|
||||
SUBDIR += retext
|
||||
SUBDIR += rubygem-neovim
|
||||
|
53
editors/r7-office/Makefile
Normal file
53
editors/r7-office/Makefile
Normal file
@ -0,0 +1,53 @@
|
||||
PORTNAME= r7-office
|
||||
PORTVERSION= 7.2.2
|
||||
CATEGORIES= editors russian
|
||||
MASTER_SITES= https://download.r7-office.ru/ubuntu/
|
||||
DISTNAME= r7-office
|
||||
EXTRACT_SUFX= .deb
|
||||
|
||||
MAINTAINER= arrowd@FreeBSD.org
|
||||
COMMENT= Russian office suite
|
||||
WWW= https://r7-office.ru
|
||||
|
||||
LICENSE= commercial
|
||||
LICENSE_NAME= commercial
|
||||
LICENSE_TEXT= Commercial software with 30 days trial period
|
||||
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
|
||||
|
||||
ONLY_FOR_ARCHS= amd64
|
||||
|
||||
USES= desktop-file-utils linux shebangfix tar:xz
|
||||
|
||||
USE_LINUX= alsalib base cups-libs gtk3 pulseaudio-libs systemd-libs nss \
|
||||
xorglibs
|
||||
|
||||
SHEBANG_FILES= opt/r7-office/desktopeditors/converter/.system/check.sh
|
||||
|
||||
WRKSRC= ${WRKDIR}
|
||||
NO_BUILD= yes
|
||||
PLIST_SUB= LINUXBASE=${LINUXBASE}
|
||||
STRIP=
|
||||
|
||||
post-extract:
|
||||
cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} data.tar.xz ${EXTRACT_AFTER_ARGS}
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} 's|/opt/r7-office/|${DATADIR}/|' ${WRKDIR}/usr/bin/r7-office-*
|
||||
${RM} ${WRKDIR}/usr/bin/*.bak
|
||||
${REINPLACE_CMD} 's|/usr/bin/|${PREFIX}/|' ${WRKDIR}/usr/share/applications/*.desktop
|
||||
${RM} ${WRKDIR}/usr/share/applications/*.bak
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/usr/bin/r7-office-* ${STAGEDIR}${PREFIX}/bin/
|
||||
${RLN} ${STAGEDIR}${PREFIX}/bin/r7-office-desktopeditors ${STAGEDIR}${PREFIX}/bin/r7-office
|
||||
cd ${WRKDIR}/opt && ${CP} -r r7-office ${STAGEDIR}${PREFIX}/share
|
||||
cd ${WRKDIR}/usr/share && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/share
|
||||
|
||||
${RM} ${STAGEDIR}${PREFIX}/share/flyfm/templates/.source/*
|
||||
.for f in new.docx new.pptx new.xlsx
|
||||
${RLN} ${STAGEDIR}${DATADIR}/desktopeditors/converter/empty/${f} \
|
||||
${STAGEDIR}${PREFIX}/share/flyfm/templates/.source/${f}
|
||||
.endfor
|
||||
${MKDIR} ${STAGEDIR}${LINUXBASE}/etc/r7-office
|
||||
|
||||
.include <bsd.port.mk>
|
3
editors/r7-office/distinfo
Normal file
3
editors/r7-office/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1676999432
|
||||
SHA256 (r7-office.deb) = 2a0b8162eab6daeac762bb50f692f3496f69dc0d3a472e7f50465cde8eb45dc3
|
||||
SIZE (r7-office.deb) = 243536212
|
@ -0,0 +1,17 @@
|
||||
--- usr/bin/r7-office-desktopeditors.orig 2022-12-11 00:52:25 UTC
|
||||
+++ usr/bin/r7-office-desktopeditors
|
||||
@@ -82,7 +82,7 @@ check_templates() {
|
||||
echo "system template's folder isn't found"
|
||||
return 0
|
||||
fi
|
||||
-
|
||||
+
|
||||
TEMPLATE_DOCX="$TEMPLATE_DIR/$NEW_DOCX_NAME.docx"
|
||||
TEMPLATE_XLSX="$TEMPLATE_DIR/$NEW_XLSX_NAME.xlsx"
|
||||
TEMPLATE_PPTX="$TEMPLATE_DIR/$NEW_PPTX_NAME.pptx"
|
||||
@@ -111,4 +111,5 @@ export VLC_PLUGIN_PATH=$DIR_MV/plugins
|
||||
DIR_MV=/opt/r7-office/mediaviewer
|
||||
export LD_LIBRARY_PATH=$DIR:$DIR/converter:$DIR_MV:$LD_LIBRARY_PATH
|
||||
export VLC_PLUGIN_PATH=$DIR_MV/plugins
|
||||
+export LANG=
|
||||
exec $DIR/DesktopEditors "$@"
|
3
editors/r7-office/pkg-descr
Normal file
3
editors/r7-office/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
R7 Office is a cross-platform Russian office suite accessible via cloud, mobile
|
||||
and desktop interfaces. R7 allows collaborative editing of documents,
|
||||
spreadsheets and presentations.
|
6046
editors/r7-office/pkg-plist
Normal file
6046
editors/r7-office/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user