1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00

www/threema-web: fix sed's use of \s and replace it by [[:space::]]

This commit is contained in:
Vinícius Zavam 2021-04-11 15:33:58 +00:00 committed by Vinícius Zavam
parent 70207782ab
commit 2f49c32b28
No known key found for this signature in database
GPG Key ID: 415C653413B43475

View File

@ -1,5 +1,6 @@
PORTNAME= threema-web
PORTVERSION= 2.3.7
PORTREVISION= 1
CATEGORIES= www net-im
MASTER_SITES= https://github.com/threema-ch/${PORTNAME}/releases/download/v${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-gh
@ -26,11 +27,11 @@ post-patch:
${WRKSRC}/*.bundle.js
${REINPLACE_CMD} "s/${THREEMA_PUBLICTURNS}/${THREEMA_ICE_SERVER}/g" \
${WRKSRC}/*.bundle.js
${REINPLACE_CMD} "s/SALTYRTC_HOST:\s*\"[^\"]*\",/SALTYRTC_HOST:\"${THREEMA_SALTYRTC_HOST}\",/g" \
${REINPLACE_CMD} "s/SALTYRTC_HOST:[[:space:]]*\"[^\"]*\",/SALTYRTC_HOST:\"${THREEMA_SALTYRTC_HOST}\",/g" \
${WRKSRC}/*.bundle.js
${REINPLACE_CMD} "s/SALTYRTC_PORT:\s*[^,]*,/SALTYRTC_PORT:${THREEMA_SALTYRTC_PORT},/g" \
${REINPLACE_CMD} "s/SALTYRTC_PORT:[[:space:]]*[^,]*,/SALTYRTC_PORT:${THREEMA_SALTYRTC_PORT},/g" \
${WRKSRC}/*.bundle.js
${REINPLACE_CMD} "s/SALTYRTC_SERVER_KEY:\s*\"[^\"]*\",/SALTYRTC_SERVER_KEY:\"${THREEMA_SALTYRTC_KEY}\",/g" \
${REINPLACE_CMD} "s/SALTYRTC_SERVER_KEY:[[:space:]]*\"[^\"]*\",/SALTYRTC_SERVER_KEY:\"${THREEMA_SALTYRTC_KEY}\",/g" \
${WRKSRC}/*.bundle.js
do-install: