aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2023-03-07 06:05:34 +0000
committerGleb Popov <arrowd@FreeBSD.org>2023-03-07 06:06:07 +0000
commita80ae88b4bfd5adbcc979b6e3ec26acc11c835ed (patch)
tree5d28e678a823367997c93fb2462c5148d5c20ade
parentee22f704e403a2061d26fb7d7d6416d6af9cc12b (diff)
downloadports-a80ae88b4bfd5adbcc979b6e3ec26acc11c835ed.tar.gz
ports-a80ae88b4bfd5adbcc979b6e3ec26acc11c835ed.zip
editors/linux-r7-office: Bring back ${LOCALBASE} substitution.
Reported by: fluffy Sponsored by: Serenity Cybersecurity, LLC
-rw-r--r--editors/linux-r7-office/Makefile1
-rw-r--r--editors/linux-r7-office/files/patch-usr_bin_r7-office-desktopeditors6
-rw-r--r--editors/linux-r7-office/files/patch-usr_bin_r7-office-imageviewer2
-rw-r--r--editors/linux-r7-office/files/patch-usr_bin_r7-office-videoplayer2
4 files changed, 6 insertions, 5 deletions
diff --git a/editors/linux-r7-office/Makefile b/editors/linux-r7-office/Makefile
index 4d242d6ef6e2..977ab79fbb9e 100644
--- a/editors/linux-r7-office/Makefile
+++ b/editors/linux-r7-office/Makefile
@@ -33,6 +33,7 @@ post-extract:
cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} data.tar.xz ${EXTRACT_AFTER_ARGS}
post-patch:
+ ${REINPLACE_CMD} -i '' 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKDIR}/usr/bin/r7-office-*
${REINPLACE_CMD} -i '' 's|/usr/bin/|${PREFIX}/bin/|' ${WRKDIR}/usr/share/applications/*.desktop
do-install:
diff --git a/editors/linux-r7-office/files/patch-usr_bin_r7-office-desktopeditors b/editors/linux-r7-office/files/patch-usr_bin_r7-office-desktopeditors
index 7de4e77687cc..75b72e5e421e 100644
--- a/editors/linux-r7-office/files/patch-usr_bin_r7-office-desktopeditors
+++ b/editors/linux-r7-office/files/patch-usr_bin_r7-office-desktopeditors
@@ -5,7 +5,7 @@
fi
- SOURCE_DOC_DIR="/opt/r7-office/desktopeditors/converter/empty"
-+ SOURCE_DOC_DIR="/usr/local/share/r7-office/desktopeditors/converter/empty"
++ SOURCE_DOC_DIR="%%LOCALBASE%%/share/r7-office/desktopeditors/converter/empty"
set_names_ru
@@ -15,8 +15,8 @@
-DIR=/opt/r7-office/desktopeditors
-DIR_MV=/opt/r7-office/mediaviewer
-+DIR=/usr/local/share/r7-office/desktopeditors
-+DIR_MV=/usr/local/share/r7-office/mediaviewer
++DIR=%%LOCALBASE%%/share/r7-office/desktopeditors
++DIR_MV=%%LOCALBASE%%/share/r7-office/mediaviewer
export LD_LIBRARY_PATH=$DIR:$DIR/converter:$DIR_MV:$LD_LIBRARY_PATH
export VLC_PLUGIN_PATH=$DIR_MV/plugins
+export LC_CTYPE=ru_RU.UTF-8
diff --git a/editors/linux-r7-office/files/patch-usr_bin_r7-office-imageviewer b/editors/linux-r7-office/files/patch-usr_bin_r7-office-imageviewer
index 5960cd6c0c2e..7ec1ac69fec2 100644
--- a/editors/linux-r7-office/files/patch-usr_bin_r7-office-imageviewer
+++ b/editors/linux-r7-office/files/patch-usr_bin_r7-office-imageviewer
@@ -4,7 +4,7 @@
#!/bin/sh
-DIR=/opt/r7-office/mediaviewer
-+DIR=/usr/local/share/r7-office/mediaviewer
++DIR=%%LOCALBASE%%/share/r7-office/mediaviewer
export LD_LIBRARY_PATH=$DIR:$LD_LIBRARY_PATH
+export LC_CTYPE=ru_RU.UTF-8
exec $DIR/ImageViewer "$@"
diff --git a/editors/linux-r7-office/files/patch-usr_bin_r7-office-videoplayer b/editors/linux-r7-office/files/patch-usr_bin_r7-office-videoplayer
index 9dd1d6ce0258..6ac537853f7c 100644
--- a/editors/linux-r7-office/files/patch-usr_bin_r7-office-videoplayer
+++ b/editors/linux-r7-office/files/patch-usr_bin_r7-office-videoplayer
@@ -4,7 +4,7 @@
#!/bin/sh
-DIR=/opt/r7-office/mediaviewer
-+DIR=/usr/local/share/r7-office/mediaviewer
++DIR=%%LOCALBASE%%/share/r7-office/mediaviewer
export LD_LIBRARY_PATH=$DIR:$LD_LIBRARY_PATH
+export LC_CTYPE=ru_RU.UTF-8
exec $DIR/VideoPlayer "$@"