From owner-svn-ports-all@freebsd.org Fri Nov 20 23:34:41 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92360A33792; Fri, 20 Nov 2015 23:34:41 +0000 (UTC) (envelope-from rodrigo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 689D2109F; Fri, 20 Nov 2015 23:34:41 +0000 (UTC) (envelope-from rodrigo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tAKNYebv065827; Fri, 20 Nov 2015 23:34:40 GMT (envelope-from rodrigo@FreeBSD.org) Received: (from rodrigo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tAKNYd96065821; Fri, 20 Nov 2015 23:34:39 GMT (envelope-from rodrigo@FreeBSD.org) Message-Id: <201511202334.tAKNYd96065821@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rodrigo set sender to rodrigo@FreeBSD.org using -f From: Rodrigo Osorio Date: Fri, 20 Nov 2015 23:34:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r402111 - in head/science: . p5-Mcstas-Tools p5-Mcstas-Tools/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2015 23:34:41 -0000 Author: rodrigo Date: Fri Nov 20 23:34:39 2015 New Revision: 402111 URL: https://svnweb.freebsd.org/changeset/ports/402111 Log: Add new port p5-Mcstas-Tools, a general tool for simulating neutron scattering instruments and experiments PR: 194849 Submitted by: Erik B Knudsen Added: head/science/p5-Mcstas-Tools/ head/science/p5-Mcstas-Tools/Makefile (contents, props changed) head/science/p5-Mcstas-Tools/distinfo (contents, props changed) head/science/p5-Mcstas-Tools/files/ head/science/p5-Mcstas-Tools/files/pkg-install.in (contents, props changed) head/science/p5-Mcstas-Tools/pkg-descr (contents, props changed) head/science/p5-Mcstas-Tools/pkg-plist (contents, props changed) Modified: head/science/Makefile Modified: head/science/Makefile ============================================================================== --- head/science/Makefile Fri Nov 20 22:53:58 2015 (r402110) +++ head/science/Makefile Fri Nov 20 23:34:39 2015 (r402111) @@ -132,6 +132,7 @@ SUBDIR += p5-Geo-Coordinates-Converter-iArea SUBDIR += p5-Geo-ReadGRIB SUBDIR += p5-Geo-WebService-Elevation-USGS + SUBDIR += p5-Mcstas-Tools SUBDIR += p5-PerlMol SUBDIR += p5-Physics-Unit SUBDIR += paje Added: head/science/p5-Mcstas-Tools/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/p5-Mcstas-Tools/Makefile Fri Nov 20 23:34:39 2015 (r402111) @@ -0,0 +1,28 @@ +# Created by: Erik B Knudsen +# $FreeBSD$ + +PORTNAME= Mcstas-Tools +PORTVERSION= 2.2a +CATEGORIES= science +MASTER_SITES= http://download.mcstas.org/mcstas-${PORTVERSION}/unix/McStas-${PORTVERSION}-UNIX-src/ +PKGNAMEPREFIX= p5- +DISTNAME= mcstas-tools-perl-${PORTVERSION}-src + +MAINTAINER= erkn@fysik.dtu.dk +COMMENT= Perl based tools for the McStas neutron ray tracing package + +LICENSE= GPLv2 + +RUN_DEPENDS= p5-Tk>0:${PORTSDIR}/x11-toolkits/p5-Tk \ + p5-PGPLOT>=2.21:${PORTSDIR}/graphics/p5-PGPLOT \ + PDL>0:${PORTSDIR}/math/PDL \ + ${LOCALBASE}/bin/mcstas:${PORTSDIR}/science/mcstas + +USES= cmake gmake perl5 +CMAKE_ARGS= -Denable_mcstas=1 +GNU_CONFIGURE= yes + +SUB_FILES= pkg-install +SUB_LIST= PORTVERSION=${PORTVERSION} + +.include Added: head/science/p5-Mcstas-Tools/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/p5-Mcstas-Tools/distinfo Fri Nov 20 23:34:39 2015 (r402111) @@ -0,0 +1,2 @@ +SHA256 (mcstas-tools-perl-2.2a-src.tar.gz) = ccb35ca79075c7a4556c2cd246becb8437c7ddfabae1e1946dddc092e01f2f73 +SIZE (mcstas-tools-perl-2.2a-src.tar.gz) = 256717 Added: head/science/p5-Mcstas-Tools/files/pkg-install.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/p5-Mcstas-Tools/files/pkg-install.in Fri Nov 20 23:34:39 2015 (r402111) @@ -0,0 +1,23 @@ +#!/bin/sh + +PKG_PREFIX=${PKG_PREFIX:-/usr/local} + +if [ $# -ne 2 ]; then + echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 + exit 1 +fi + +execs="mcdaemon mcdisplay mcdoc mcformatgui mcgui mcplot mcresplot mcrun mcstas2vitess" + +case $2 in + POST-INSTALL) + if [ ! -f "${PKG_PREFIX}/bin" ]; then + echo "Installing link to executables in ${PKG_PREFIX}/bin."; + for target in ${execs}; do + ln -s ${PKG_PREFIX}/mcstas/%%PORTVERSION%%/bin/${target} ${PKG_PREFIX}/bin/${target}; + done + fi + ;; +esac + +exit 0 Added: head/science/p5-Mcstas-Tools/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/p5-Mcstas-Tools/pkg-descr Fri Nov 20 23:34:39 2015 (r402111) @@ -0,0 +1,20 @@ +McStas perl tools to aid in running neutron ray tracing simulations. + +McStas is a tool for simulating neutron instrumentation and experiments using +a ray-tracing formalism. Currently the main use of McStas is in the field of +instrumentation design. + +This port contains a few perl-based helper tools (including a GUI) to aid the +user in setting up and running simulations. The tools are: +mcgui: A Tk/Perl based GUI. +mcrun: A Script that makes it easy to run sims and perform + point scans and simple optimizations. +mcdoc: Script for viewing inline component documentation. +mcplot: Tool for plotting McXtrace-generated results. +mcdisplay: Visual ray-tracing displaying neutron trajectories. +mcformatgui: Front-end to mxformat to help reformat data-files (obsolescent). +mcdaemon: Deamon to dynamically monitor and plot results (obsolescent). +mcstas2vitess: Tool to transfer a McStas simulation to ViTESS. +mcresplot: Script to help plotting resolution functions. + +WWW: http://www.mcstas.org Added: head/science/p5-Mcstas-Tools/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/p5-Mcstas-Tools/pkg-plist Fri Nov 20 23:34:39 2015 (r402111) @@ -0,0 +1,37 @@ +mcstas/2.2a/bin/mcdaemon +mcstas/2.2a/bin/mcdisplay +mcstas/2.2a/bin/mcdoc +mcstas/2.2a/bin/mcformatgui +mcstas/2.2a/bin/mcgui +mcstas/2.2a/bin/mcplot +mcstas/2.2a/bin/mcresplot +mcstas/2.2a/bin/mcrun +mcstas/2.2a/bin/mcstas2vitess +mcstas/2.2a/doc/man/man1/mcdisplay-2.2a.1 +mcstas/2.2a/doc/man/man1/mcdoc-2.2a.1 +mcstas/2.2a/doc/man/man1/mcgui-2.2a.1 +mcstas/2.2a/doc/man/man1/mcplot-2.2a.1 +mcstas/2.2a/doc/man/man1/mcrun-2.2a.1 +mcstas/2.2a/launchers/McStas.desktop +mcstas/2.2a/launchers/mcstas-pl.png +mcstas/2.2a/tools/Perl/launcher/mcstas-pl.png +mcstas/2.2a/tools/Perl/launcher/mcxtrace-pl.png +mcstas/2.2a/tools/Perl/matlab/CheckNeutNumber.m +mcstas/2.2a/tools/Perl/matlab/CheckTimeout.m +mcstas/2.2a/tools/Perl/matlab/PlotInstrument.m +mcstas/2.2a/tools/Perl/matlab/ReshapeTransform.m +mcstas/2.2a/tools/Perl/matlab/mcdisplay.m +mcstas/2.2a/tools/Perl/matlab/mcplot.m +mcstas/2.2a/tools/Perl/matlab/resume.m +mcstas/2.2a/tools/Perl/matlab/tomo_recon.m +mcstas/2.2a/tools/Perl/matlab/wait.m +mcstas/2.2a/tools/Perl/perl/mccode_config.perl +mcstas/2.2a/tools/Perl/perl/mccode_reconfigure +mcstas/2.2a/tools/Perl/perl/mcfrontlib.pl +mcstas/2.2a/tools/Perl/perl/mcfrontlib2D.pl +mcstas/2.2a/tools/Perl/perl/mcgnuplot.pl +mcstas/2.2a/tools/Perl/perl/mcguilib.pl +mcstas/2.2a/tools/Perl/perl/mcoptimlib.pl +mcstas/2.2a/tools/Perl/perl/mcplotlib.pl +mcstas/2.2a/tools/Perl/perl/mcrunlib.pl +mcstas/2.2a/tools/Perl/perl/mxguilib.pl