Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2017 19:15:49 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r455608 - in head/science: . mcxtrace mcxtrace/files
Message-ID:  <201712051915.vB5JFnGG062545@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Tue Dec  5 19:15:49 2017
New Revision: 455608
URL: https://svnweb.freebsd.org/changeset/ports/455608

Log:
  New port: science/mcxtrace: Monte Carlo X-ray tracing package
  
  PR:		206505
  Submitted by:	Erik B Knudsen <erkn@fysik.dtu.dk>
  Approved by:	tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D13216

Added:
  head/science/mcxtrace/
  head/science/mcxtrace/Makefile   (contents, props changed)
  head/science/mcxtrace/distinfo   (contents, props changed)
  head/science/mcxtrace/files/
  head/science/mcxtrace/files/patch-cmake_Modules_InstallMCCODE.cmake   (contents, props changed)
  head/science/mcxtrace/pkg-descr   (contents, props changed)
  head/science/mcxtrace/pkg-plist   (contents, props changed)
Modified:
  head/science/Makefile

Modified: head/science/Makefile
==============================================================================
--- head/science/Makefile	Tue Dec  5 19:12:08 2017	(r455607)
+++ head/science/Makefile	Tue Dec  5 19:15:49 2017	(r455608)
@@ -96,6 +96,7 @@
     SUBDIR += mbdyn
     SUBDIR += mcstas
     SUBDIR += mcstas-comps
+    SUBDIR += mcxtrace
     SUBDIR += medit
     SUBDIR += meep
     SUBDIR += mei

Added: head/science/mcxtrace/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/mcxtrace/Makefile	Tue Dec  5 19:15:49 2017	(r455608)
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME=	mcxtrace
+DISTVERSION=	1.2
+DISTVERSIONSUFFIX=	-src
+CATEGORIES=	science
+MASTER_SITES=	http://download.mcxtrace.org/${PORTNAME}-${DISTVERSION}/unix/mcxtrace-${DISTVERSION}-src/
+
+MAINTAINER=	erkn@fysik.dtu.dk
+COMMENT=	Monte Carlo X-ray tracing package
+
+LICENSE=	LGPL21+
+LICENSE_FILE=	${WRKSRC}/lib/LGPL
+
+USES=		bison:build cmake:outsource
+
+PLIST_SUB=	DISTVERSION=${DISTVERSION}
+
+MXEXECS=	mcxtrace mxformat
+
+post-install:
+.for e in ${MXEXECS}
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${PORTNAME}/${DISTVERSION}/bin/${e}
+	@${RLN} ${STAGEDIR}${PREFIX}/${PORTNAME}/${DISTVERSION}/bin/${e} ${STAGEDIR}${PREFIX}/bin/${e}
+.endfor
+	@${RM} ${STAGEDIR}${PREFIX}/mcxtrace/${DISTVERSION}/LGPL
+
+.include <bsd.port.mk>

Added: head/science/mcxtrace/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/mcxtrace/distinfo	Tue Dec  5 19:15:49 2017	(r455608)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1511475567
+SHA256 (mcxtrace-1.2-src.tar.gz) = 7202ff2c83ad24b6ff5dc7a601c529562492881596577dbb7ebefc025b09406a
+SIZE (mcxtrace-1.2-src.tar.gz) = 266743

Added: head/science/mcxtrace/files/patch-cmake_Modules_InstallMCCODE.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/mcxtrace/files/patch-cmake_Modules_InstallMCCODE.cmake	Tue Dec  5 19:15:49 2017	(r455608)
@@ -0,0 +1,22 @@
+--- cmake/Modules/InstallMCCODE.cmake.orig	2015-07-01 22:44:39 UTC
++++ cmake/Modules/InstallMCCODE.cmake
+@@ -291,15 +291,14 @@ macro(installMCCODE)
+     # Man pages
+     install (
+       FILES "${WORK}/doc/man/${FLAVOR}.1"
+-      DESTINATION ${FLAVOR}/${MCCODE_VERSION}/doc/man/man1
+-      RENAME "${FLAVOR}${PROGRAM_SUFFIX}.1"
++      DESTINATION "man/man1"
++      RENAME "${FLAVOR}.1"
+       )
+     install (
+       FILES "${WORK}/doc/man/${FLAVOR_FMT}.1"
+-      DESTINATION "${FLAVOR}/${MCCODE_VERSION}/doc/man/man1"
+-      RENAME "${FLAVOR_FMT}${PROGRAM_SUFFIX}.1"
++      DESTINATION "man/man1"
++      RENAME "${FLAVOR_FMT}.1"
+       )
+-
+     # Binaries
+     install (
+       PROGRAMS "${PROJECT_BINARY_DIR}/${FLAVOR}${DOT_EXE_SUFFIX}"

Added: head/science/mcxtrace/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/mcxtrace/pkg-descr	Tue Dec  5 19:15:49 2017	(r455608)
@@ -0,0 +1,9 @@
+McXtrace - Monte Carlo ray tracing simulations of X-ray experiments.
+
+McXtrace is a tool for simulating X-ray instrumentation and experiments using a
+ray-tracing formalism. Currently the main use of McXtrace is in the field of 
+synchrotron beamline instrumentation design, but various other uses have been 
+found, such as designing X-ray telescopes or for laboratory source-based
+equipment.
+
+WWW: http://www.mcxtrace.org

Added: head/science/mcxtrace/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/mcxtrace/pkg-plist	Tue Dec  5 19:15:49 2017	(r455608)
@@ -0,0 +1,32 @@
+bin/mcxtrace
+bin/mxformat
+mcxtrace/%%DISTVERSION%%/LICENSE.LIB
+mcxtrace/%%DISTVERSION%%/NOMENCLATURE
+mcxtrace/%%DISTVERSION%%/README
+mcxtrace/%%DISTVERSION%%/bin/mcxtrace
+mcxtrace/%%DISTVERSION%%/bin/mxformat
+mcxtrace/%%DISTVERSION%%/data/Al.nxs
+mcxtrace/%%DISTVERSION%%/data/Cu.nxs
+mcxtrace/%%DISTVERSION%%/environment
+mcxtrace/%%DISTVERSION%%/module
+mcxtrace/%%DISTVERSION%%/share/adapt_tree-lib.c
+mcxtrace/%%DISTVERSION%%/share/adapt_tree-lib.h
+mcxtrace/%%DISTVERSION%%/share/interoff-lib.c
+mcxtrace/%%DISTVERSION%%/share/interoff-lib.h
+mcxtrace/%%DISTVERSION%%/share/mccode-r.c
+mcxtrace/%%DISTVERSION%%/share/mccode-r.h
+mcxtrace/%%DISTVERSION%%/share/mcxtrace-r.c
+mcxtrace/%%DISTVERSION%%/share/mcxtrace-r.h
+mcxtrace/%%DISTVERSION%%/share/nxslib/README.TXT
+mcxtrace/%%DISTVERSION%%/share/nxslib/nxs.c
+mcxtrace/%%DISTVERSION%%/share/nxslib/nxs.h
+mcxtrace/%%DISTVERSION%%/share/nxslib/sgclib.c
+mcxtrace/%%DISTVERSION%%/share/nxslib/sgfind.c
+mcxtrace/%%DISTVERSION%%/share/nxslib/sghkl.c
+mcxtrace/%%DISTVERSION%%/share/nxslib/sginfo.h
+mcxtrace/%%DISTVERSION%%/share/nxslib/sgio.c
+mcxtrace/%%DISTVERSION%%/share/nxslib/sgsi.c
+mcxtrace/%%DISTVERSION%%/share/read_table-lib.c
+mcxtrace/%%DISTVERSION%%/share/read_table-lib.h
+man/man1/mcxtrace.1.gz
+man/man1/mxformat.1.gz



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