1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

net-im/telegram-desktop: Change SED -> REINPLACE_CMD

Reported by:	mat
Approved by:	portmgr (compliance)
This commit is contained in:
Yuri Victorovich 2018-12-18 18:09:58 +00:00
parent ced96643ab
commit 45c88e8f1a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=487760

View File

@ -82,7 +82,7 @@ post-patch:
${FILESDIR}/gyp-patches | \
${PATCH} -z .bak -s)
@${ECHO} "#define FREEBSD_QT_PLUGINDIR \"${QT_PLUGINDIR}\"" > ${WRKSRC}/Telegram/SourceFiles/FREEBSD_QT_PLUGINDIR.h
${SED} -i -e "/Icon=/s|telegram|${PORTNAME}|" ${WRKSRC}/lib/xdg/telegramdesktop.desktop
@${REINPLACE_CMD} "/Icon=/s|telegram|${PORTNAME}|" ${WRKSRC}/lib/xdg/telegramdesktop.desktop
pre-configure:
@cd ${WRKSRC} && gyp \
@ -90,7 +90,7 @@ pre-configure:
-Gconfig=Release \
--depth=Telegram/gyp --generator-output=../.. -Goutput_dir=out Telegram/gyp/Telegram.gyp --format=cmake
@TOT=`wc -l < ${WRKSRC}/out/Release/CMakeLists.txt` && NUM=`expr $$TOT - 2` && \
${SED} -i -e "$$NUM r ${FILESDIR}/CMakeLists.inj" ${WRKSRC}/out/Release/CMakeLists.txt
${REINPLACE_CMD} "$$NUM r ${FILESDIR}/CMakeLists.inj" ${WRKSRC}/out/Release/CMakeLists.txt
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/Telegram ${STAGEDIR}${PREFIX}/bin/${PORTNAME}