Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Dec 2020 11:48:36 +0000 (UTC)
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r559285 - in head/science: cgnslib cgnslib/files xcrysden
Message-ID:  <202012261148.0BQBmaGd092384@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thierry
Date: Sat Dec 26 11:48:36 2020
New Revision: 559285
URL: https://svnweb.freebsd.org/changeset/ports/559285

Log:
  science/cgnslib: rename unitconv to unitconv.sh, thus avoiding the conflict with
  XCrySDen.

Added:
  head/science/cgnslib/files/patch-src_cgnstools_cgnscalc_CMakeLists.txt   (contents, props changed)
  head/science/cgnslib/files/patch-src_cgnstools_cgnscalc_Makefile.unix   (contents, props changed)
Modified:
  head/science/cgnslib/Makefile
  head/science/cgnslib/pkg-plist
  head/science/xcrysden/Makefile

Modified: head/science/cgnslib/Makefile
==============================================================================
--- head/science/cgnslib/Makefile	Sat Dec 26 10:26:22 2020	(r559284)
+++ head/science/cgnslib/Makefile	Sat Dec 26 11:48:36 2020	(r559285)
@@ -4,6 +4,7 @@
 PORTNAME=	cgnslib
 PORTVERSION=	4.1.2
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	science
 
@@ -21,8 +22,6 @@ GH_ACCOUNT=	CGNS
 GH_PROJECT=	CGNS
 USE_LDCONFIG=	yes
 MAKE_JOBS_UNSAFE=	yes
-
-CONFLICTS_INSTALL=	xcrysden-1.*	# bin/unitconv
 
 TEST_TARGET=	test
 FFLAGS+=	-std=legacy

Added: head/science/cgnslib/files/patch-src_cgnstools_cgnscalc_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/cgnslib/files/patch-src_cgnstools_cgnscalc_CMakeLists.txt	Sat Dec 26 11:48:36 2020	(r559285)
@@ -0,0 +1,15 @@
+--- src/cgnstools/cgnscalc/CMakeLists.txt.orig	2020-08-18 19:44:35 UTC
++++ src/cgnstools/cgnscalc/CMakeLists.txt
+@@ -77,10 +77,10 @@ else (WIN32)
+ 	cgnscalc.sh
+ 	DESTINATION bin
+ 	RENAME cgnscalc)
++  # Do not install as unitconv to avoid a conflicy with XCrySDen
+   install(PROGRAMS
+ 	unitconv.sh
+-	DESTINATION bin
+-	RENAME unitconv)
++	DESTINATION bin)
+   install(FILES
+ 	cgnscalc.tcl
+ 	unitconv.tcl

Added: head/science/cgnslib/files/patch-src_cgnstools_cgnscalc_Makefile.unix
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/cgnslib/files/patch-src_cgnstools_cgnscalc_Makefile.unix	Sat Dec 26 11:48:36 2020	(r559285)
@@ -0,0 +1,14 @@
+--- src/cgnstools/cgnscalc/Makefile.unix.orig	2020-08-18 19:44:35 UTC
++++ src/cgnstools/cgnscalc/Makefile.unix
+@@ -45,8 +45,9 @@ install-prog :
+ 	@echo "installing cgnscalc shell scripts to $(BIN_INSTALL_DIR)"
+ 	@$(INSTALL_PROG) cgnscalc.sh $(BIN_INSTALL_DIR)/cgnscalc
+ 	@chmod +x $(BIN_INSTALL_DIR)/cgnscalc
+-	@$(INSTALL_PROG) unitconv.sh $(BIN_INSTALL_DIR)/unitconv
+-	@chmod +x $(BIN_INSTALL_DIR)/unitconv
++	# Do not install as unitconv to avoid a conflicy with XCrySDen
++	@$(INSTALL_PROG) unitconv.sh $(BIN_INSTALL_DIR)/unitconv.sh
++	@chmod +x $(BIN_INSTALL_DIR)/unitconv.sh
+ 	@if [ ! -f $(EXE_INSTALL_DIR)/cgconfig ] ; then \
+ 	  echo "installing configuration file to $(EXE_INSTALL_DIR)"; \
+ 	  $(INSTALL_DATA) ../cgconfig $(EXE_INSTALL_DIR)/cgconfig; \

Modified: head/science/cgnslib/pkg-plist
==============================================================================
--- head/science/cgnslib/pkg-plist	Sat Dec 26 10:26:22 2020	(r559284)
+++ head/science/cgnslib/pkg-plist	Sat Dec 26 11:48:36 2020	(r559285)
@@ -26,7 +26,7 @@
 %%TOOLS%%bin/cgnstools/update_ngon
 %%TOOLS%%bin/cgnstools/vgrid_to_cgns
 %%TOOLS%%bin/cgnsview
-%%TOOLS%%bin/unitconv
+%%TOOLS%%bin/unitconv.sh
 bin/cgnscheck
 bin/cgnscompress
 bin/cgnsconvert

Modified: head/science/xcrysden/Makefile
==============================================================================
--- head/science/xcrysden/Makefile	Sat Dec 26 10:26:22 2020	(r559284)
+++ head/science/xcrysden/Makefile	Sat Dec 26 11:48:36 2020	(r559285)
@@ -24,7 +24,7 @@ USES=		fortran gl gmake localbase:ldflags tcl tk xorg
 USE_GL=		gl glu
 USE_XORG=	x11 xmu
 
-CONFLICTS_INSTALL=	cgnslib-4.*	# bin/unitconv
+CONFLICTS_INSTALL=	cgnslib-4.1.2,1	# bin/unitconv
 
 MAKE_ARGS=	prefix=${STAGEDIR}${PREFIX}
 



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