svn commit: r487760 - head/net-im/telegram-desktop

Yuri Victorovich yuri at FreeBSD.org
Tue Dec 18 18:09:59 UTC 2018


Author: yuri
Date: Tue Dec 18 18:09:58 2018
New Revision: 487760
URL: https://svnweb.freebsd.org/changeset/ports/487760

Log:
  net-im/telegram-desktop: Change SED -> REINPLACE_CMD
  
  Reported by:	mat
  Approved by:	portmgr (compliance)

Modified:
  head/net-im/telegram-desktop/Makefile

Modified: head/net-im/telegram-desktop/Makefile
==============================================================================
--- head/net-im/telegram-desktop/Makefile	Tue Dec 18 18:09:22 2018	(r487759)
+++ head/net-im/telegram-desktop/Makefile	Tue Dec 18 18:09:58 2018	(r487760)
@@ -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}


More information about the svn-ports-all mailing list