1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

Fix opening URL via xdg-open.

Submitted by:	Alexander Zagrebin (alex at zagrebin dot ru) (initial patch)
This commit is contained in:
Jung-uk Kim 2017-02-07 20:37:18 +00:00
parent eac502ad61
commit b920fe11ad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433619
2 changed files with 18 additions and 2 deletions

View File

@ -2,7 +2,7 @@
.include "${.CURDIR}/Makefile.common"
PORTREVISION= 1
PORTREVISION= 2
MASTER_SITES= http://download.documentfoundation.org/libreoffice/src/${PORTVERSION}/ \
http://dev-www.libreoffice.org/src/:src \
http://dev-www.libreoffice.org/extern/:ext
@ -71,7 +71,8 @@ LIB_DEPENDS= libapr-1.so:devel/apr1 \
libmythes-1.2.so:textproc/mythes \
librdf.so:textproc/redland \
libserf-1.so:www/serf
RUN_DEPENDS= ${LOCALBASE}/share/fonts/Caladea/Caladea-Bold.ttf:x11-fonts/crosextrafonts-caladea-ttf \
RUN_DEPENDS= xdg-open:devel/xdg-utils \
${LOCALBASE}/share/fonts/Caladea/Caladea-Bold.ttf:x11-fonts/crosextrafonts-caladea-ttf \
${LOCALBASE}/share/fonts/Carlito/Carlito-Bold.ttf:x11-fonts/crosextrafonts-carlito-ttf \
${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu \
${LOCALBASE}/share/fonts/GentiumBasic/GenBasI.ttf:x11-fonts/gentium-basic \
@ -282,6 +283,10 @@ CXXFLAGS_WARN+= -Wno-unused-local-typedefs
CXXFLAGS_WARN= -Wshadow -Woverloaded-virtual
.endif
post-patch:
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/shell/source/unix/exec/shellexec.cxx
pre-configure:
@${TOUCH} ${WRKSRC}/autogen.lastrun

View File

@ -0,0 +1,11 @@
--- shell/source/unix/exec/shellexec.cxx.orig 2017-01-12 00:54:33 UTC
+++ shell/source/unix/exec/shellexec.cxx
@@ -157,7 +157,7 @@ void SAL_CALL ShellExec::execute( const
if (std::getenv("LIBO_FLATPAK") != nullptr) {
aBuffer.append("/app/bin/xdg-open");
} else {
- aBuffer.append("/usr/bin/xdg-open");
+ aBuffer.append("%%LOCALBASE%%/bin/xdg-open");
}
#endif
aBuffer.append(" ");