Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Apr 2019 07:36:13 +0000 (UTC)
From:      Koichiro Iwao <meta@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r497801 - in branches/2019Q2/net: tigervnc tigervnc-server tigervnc-viewer tigervnc/files
Message-ID:  <201904040736.x347aDP4021752@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: meta
Date: Thu Apr  4 07:36:12 2019
New Revision: 497801
URL: https://svnweb.freebsd.org/changeset/ports/497801

Log:
  MFH: r497487
  
  Fix the issue tigervnc-server and -viewer cannot be installed together
  
  when DOCS=on because both ports install LICENSE_FILE into the same place.
  Also, following changes are made.
  
  net/tigervnc-{server,viewer}:
  
  - bump PORTREVISION due to plist & dependency change
  - do not build tests, it introduces unnecessary dependencies on fltk
  
  net/tigervnc-server:
  
  - add missing dependency on devel/m4
  - remove unnecessary dependency on x11-toolkits/fltk
  
  Approved by:	portmgr (miwi)

Modified:
  branches/2019Q2/net/tigervnc-server/Makefile
  branches/2019Q2/net/tigervnc-server/pkg-plist
  branches/2019Q2/net/tigervnc-viewer/Makefile
  branches/2019Q2/net/tigervnc-viewer/pkg-plist
  branches/2019Q2/net/tigervnc/Makefile.common.mk
  branches/2019Q2/net/tigervnc/files/patch-cmake_BuildPackages.cmake
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/net/tigervnc-server/Makefile
==============================================================================
--- branches/2019Q2/net/tigervnc-server/Makefile	Thu Apr  4 07:22:42 2019	(r497800)
+++ branches/2019Q2/net/tigervnc-server/Makefile	Thu Apr  4 07:36:12 2019	(r497801)
@@ -1,5 +1,6 @@
 # $FreeBSD$
 
+PORTREVISION=	1
 PKGNAMESUFFIX=	-server
 CATEGORIES=	net x11-servers
 
@@ -8,7 +9,7 @@ COMMENT=	TigerVNC Server
 PATCH_DEPENDS+=	${NONEXISTENT}:x11-servers/xorg-server:patch
 BUILD_DEPENDS+=	${LOCALBASE}/include/GL/internal/dri_interface.h:graphics/mesa-dri \
 		${LOCALBASE}/libdata/pkgconfig/fontutil.pc:x11-fonts/font-util \
-		${LOCALBASE}/include/FL/Fl.H:x11-toolkits/fltk \
+		gm4:devel/m4 \
 		bash:shells/bash
 LIB_DEPENDS=	libxshmfence.so:x11/libxshmfence
 # almost equivalent to x11-servers/xorg-server's
@@ -60,6 +61,8 @@ pre-patch:
 	@${CP} -R $$(${XORG_WRKSRC})/ ${WRKSRC}/unix/xserver/
 
 post-patch:
+	# do not build tests
+	@${REINPLACE_CMD} -e 's|add_subdirectory(tests)||' ${WRKSRC}/CMakeLists.txt
 	@cd ${WRKSRC}/unix/xserver/ && ${PATCH} -p1 < ${WRKSRC}/unix/xserver$$(${TIGERVNC_XORG_PATCH_VER}).patch
 
 post-configure:

Modified: branches/2019Q2/net/tigervnc-server/pkg-plist
==============================================================================
--- branches/2019Q2/net/tigervnc-server/pkg-plist	Thu Apr  4 07:22:42 2019	(r497800)
+++ branches/2019Q2/net/tigervnc-server/pkg-plist	Thu Apr  4 07:36:12 2019	(r497801)
@@ -9,5 +9,5 @@ man/man1/vncconfig.1.gz
 man/man1/vncpasswd.1.gz
 man/man1/vncserver.1.gz
 man/man1/x0vncserver.1.gz
-%%PORTDOCS%%%%DOCSDIR%%/LICENCE.TXT
-%%PORTDOCS%%%%DOCSDIR%%/README.rst
+%%PORTDOCS%%%%DOCSDIR%%/%%TIGERVNC_COMPONENT%%LICENCE.TXT
+%%PORTDOCS%%%%DOCSDIR%%/%%TIGERVNC_COMPONENT%%README.rst

Modified: branches/2019Q2/net/tigervnc-viewer/Makefile
==============================================================================
--- branches/2019Q2/net/tigervnc-viewer/Makefile	Thu Apr  4 07:22:42 2019	(r497800)
+++ branches/2019Q2/net/tigervnc-viewer/Makefile	Thu Apr  4 07:36:12 2019	(r497801)
@@ -1,5 +1,6 @@
 # $FreeBSD$
 
+PORTREVISION=	1
 PKGNAMESUFFIX=	-viewer
 CATEGORIES=	net
 
@@ -29,8 +30,11 @@ DESKTOP_ENTRIES=	"TigerVNC viewer" "Connect to VNC ser
 				"${PORTNAME}" "vncviewer" "Network;" false
 
 post-patch:
-	# do not build server components
-	@${REINPLACE_CMD} -e 's|add_subdirectory(unix)||' ${WRKSRC}/CMakeLists.txt
+	# do not build server components and tests
+	@${REINPLACE_CMD} \
+		-e 's|add_subdirectory(unix)||' \
+		-e 's|add_subdirectory(tests)||' \
+		${WRKSRC}/CMakeLists.txt
 
 MASTERDIR=	${.CURDIR}/../tigervnc
 .include "${MASTERDIR}/Makefile.common.mk"

Modified: branches/2019Q2/net/tigervnc-viewer/pkg-plist
==============================================================================
--- branches/2019Q2/net/tigervnc-viewer/pkg-plist	Thu Apr  4 07:22:42 2019	(r497800)
+++ branches/2019Q2/net/tigervnc-viewer/pkg-plist	Thu Apr  4 07:36:12 2019	(r497801)
@@ -30,5 +30,5 @@ share/icons/hicolor/scalable/apps/tigervnc.svg
 %%NLS%%share/locale/uk/LC_MESSAGES/tigervnc.mo
 %%NLS%%share/locale/vi/LC_MESSAGES/tigervnc.mo
 %%NLS%%share/locale/zh_CN/LC_MESSAGES/tigervnc.mo
-%%PORTDOCS%%%%DOCSDIR%%/LICENCE.TXT
-%%PORTDOCS%%%%DOCSDIR%%/README.rst
+%%PORTDOCS%%%%DOCSDIR%%/%%TIGERVNC_COMPONENT%%LICENCE.TXT
+%%PORTDOCS%%%%DOCSDIR%%/%%TIGERVNC_COMPONENT%%README.rst

Modified: branches/2019Q2/net/tigervnc/Makefile.common.mk
==============================================================================
--- branches/2019Q2/net/tigervnc/Makefile.common.mk	Thu Apr  4 07:22:42 2019	(r497800)
+++ branches/2019Q2/net/tigervnc/Makefile.common.mk	Thu Apr  4 07:36:12 2019	(r497801)
@@ -14,14 +14,22 @@ USES+=		cmake:insource,noninja
 USE_GITHUB=	yes
 
 GH_ACCOUNT=	TigerVNC
-
 CONFLICTS=	tightvnc-[0-9]*
+PLIST_SUB+=	TIGERVNC_COMPONENT=${PORTNAME}${PKGNAMESUFFIX}-
 
 CMAKE_ARGS+=	-G "Unix Makefiles"
 MAKE_ARGS+=	TIGERVNC_SRCDIR=${WRKSRC}
 
+DOCS=	LICENCE.TXT README.rst
+
 .include <bsd.port.pre.mk>
 
 PLIST=	${.CURDIR}/pkg-plist
+
+do-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in ${DOCS}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${f} ${STAGEDIR}${DOCSDIR}/${PORTNAME}${PKGNAMESUFFIX}-${f})
+.endfor
 
 .include <bsd.port.post.mk>

Modified: branches/2019Q2/net/tigervnc/files/patch-cmake_BuildPackages.cmake
==============================================================================
--- branches/2019Q2/net/tigervnc/files/patch-cmake_BuildPackages.cmake	Thu Apr  4 07:22:42 2019	(r497800)
+++ branches/2019Q2/net/tigervnc/files/patch-cmake_BuildPackages.cmake	Thu Apr  4 07:36:12 2019	(r497801)
@@ -1,10 +1,8 @@
---- cmake/BuildPackages.cmake.orig	2017-04-19 13:27:31 UTC
+--- cmake/BuildPackages.cmake.orig	2018-07-16 14:08:55 UTC
 +++ cmake/BuildPackages.cmake
-@@ -86,5 +86,5 @@ endif() #UNIX
+@@ -86,5 +86,3 @@ endif() #UNIX
  # Common
  #
  
 -install(FILES ${CMAKE_SOURCE_DIR}/LICENCE.TXT DESTINATION ${DOC_DIR})
 -install(FILES ${CMAKE_SOURCE_DIR}/README.rst DESTINATION ${DOC_DIR})
-+install(FILES ${CMAKE_SOURCE_DIR}/LICENCE.TXT DESTINATION share/doc/tigervnc)
-+install(FILES ${CMAKE_SOURCE_DIR}/README.rst DESTINATION share/doc/tigervnc)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904040736.x347aDP4021752>