View | Details | Raw Unified | Return to bug 194849 | Differences between
and this patch

Collapse All | Expand All

(-)p5-mcstas-tools/Makefile (-74 / +11 lines)
Lines 2-90 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	p5-mcstas-tools
4
PORTNAME=	p5-mcstas-tools
5
PORTVERSION=	2.1
5
PORTVERSION=	2.2a
6
7
METANAME=	McStas-${PORTVERSION}-UNIX-src
8
9
CATEGORIES=	science
6
CATEGORIES=	science
10
MASTER_SITES=	http://download.mcstas.org/mcstas-${PORTVERSION}/unix/
7
MASTER_SITES=	http://download.mcstas.org/mcstas-${PORTVERSION}/unix/McStas-${PORTVERSION}-UNIX-src/
11
DISTNAME=	McStas-${PORTVERSION}-UNIX-src
8
DISTNAME=	mcstas-tools-perl-${PORTVERSION}-src
12
13
9
14
MAINTAINER=	erkn@fysik.dtu.dk
10
MAINTAINER=	erkn@fysik.dtu.dk
15
COMMENT=	Component Library for the McXtrace Monte Carlo X-ray tracing package
11
COMMENT=	Perl based tools for the McStas neutron ray tracing package
16
12
17
LICENSE=	GPLv2
13
LICENSE=	GPLv2
18
14
19
USES=		cmake gmake perl5
15
RUN_DEPENDS=	p5-Tk>0:${PORTSDIR}/x11-toolkits/p5-Tk \
16
		p5-PGPLOT>=2.21:${PORTSDIR}/graphics/p5-PGPLOT	\
17
		PDL>0:${PORTSDIR}/math/PDL \
18
	 	${LOCALBASE}/mcstas/${PORTVERSION}/bin/mcstas:${PORTSDIR}/science/mcstas
20
19
20
USES=		cmake gmake perl5
21
CMAKE_ARGS=	"-Denable_mcstas=1"
21
CMAKE_ARGS=	"-Denable_mcstas=1"
22
23
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
24
23
25
RUN_DEPENDS=	p5-Tk>0:${PORTSDIR}/x11-toolkits/p5-Tk    \
24
SUB_FILES=	pkg-install
26
		p5-PGPLOT>=2.21:${PORTSDIR}/graphics/p5-PGPLOT
25
SUB_LIST=	PORTVERSION=${PORTVERSION}
27
		#PDL:${PORTSDIR}/math/PDL		\
28
29
WRKSRC=		${WRKDIR}/mcstas-tools-perl-2.1-src
30
31
do-extract:
32
	@(cd ${WRKDIR} &&  tar -xzf ${DISTDIR}/${DISTFILES} McStas-2.1-UNIX-src/mcstas-tools-perl-${PORTVERSION}-src.tar.gz \
33
	&& ${TAR} -xzf McStas-2.1-UNIX-src/mcstas-tools-perl-${PORTVERSION}-src.tar.gz );  
34
35
26
36
.include <bsd.port.mk>
27
.include <bsd.port.mk>
37
# Created by: Erik B Knudsen
38
# $FreeBSD$
39
40
PORTNAME= mcstas-tools-p5
41
PORTVERSION= 2.1
42
#PORTREVISION= beta
43
44
#a helper variable
45
METANAME= McStas-${PORTVERSION}-UNIX-src
46
47
CATEGORIES= science
48
MASTER_SITES= http://download.mcstas.org/mcstas-${PORTVERSION}/unix/
49
DISTNAME= mcstas-tools-perl-${PORTVERSION}-src
50
DISTFILES= McStas-${PORTVERSION}-UNIX-src.tar.gz
51
DIST_SUBDIR= mcstas
52
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
53
54
55
MAINTAINER= erkn@fysik.dtu.dk
56
COMMENT= Component Library for the McXtrace Monte Carlo X-ray tracing package
57
58
LICENSE= GPLv2
59
60
USES= cmake gmake perl5
61
62
# Apparently cmake does not generate an install/strip target if nothing
63
# is supposed to be stripped, so override the cmake-default install
64
# target of install/strip by resetting STRIP
65
STRIP= #none
66
67
CMAKE_ARGS= "-Denable_mcstas=1"
68
69
GNU_CONFIGURE= yes
70
#USE_GMAKE= yes
71
#USE_BISON= yes
72
73
RUN_DEPENDS= ${LOCALBASE}/mcstas/${PORTVERSION}/bin/mcstas:${PORTSDIR}/science/mcstas\
74
 ${LOCALBASE}/mcstas/${PORTVERSION}/examples:${PORTSDIR}/science/mcstas-comps\
75
 p5-Tk>=804:${PORTSDIR}/x11-toolkits/p5-Tk\
76
 PDL>0:${PORTSDIR}/math/PDL\
77
 p5-PGPLOT>=2.21:${PORTSDIR}/graphics/p5-PGPLOT
78
79
.include <bsd.port.pre.mk>
80
81
#this is necessary since mcxtrace and mcstas are packaged in a single tarball in which the
82
#kernel, component library, and tool tarballs reside
83
post-fetch:
84
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
85
	cd ${DISTDIR}/${DIST_SUBDIR};\
86
	${TAR} --strip-components 1 -xzf ${DISTFILES} McStas-${PORTVERSION}-UNIX-src/${DISTNAME}.tar.gz;
87
#	${TAR} -xzf ${DISTFILES} mcxtrace-1.2beta-src.tar.gz;
88
.endif
89
90
.include <bsd.port.post.mk>
(-)p5-mcstas-tools/distinfo (-4 / +2 lines)
Lines 1-4 Link Here
1
SHA256 (McStas-2.1-UNIX-src.tar.gz) = 70d5b33d67ea9b8e4c276b4e8c7ece907ac28ec63f523d7e0cbcc9e425b4aaf4
1
SHA256 (mcstas-tools-perl-2.2a-src.tar.gz) = ccb35ca79075c7a4556c2cd246becb8437c7ddfabae1e1946dddc092e01f2f73
2
SIZE (McStas-2.1-UNIX-src.tar.gz) = 27807879
2
SIZE (mcstas-tools-perl-2.2a-src.tar.gz) = 256717
3
SHA256 (mcstas/McStas-2.1-UNIX-src.tar.gz) = 70d5b33d67ea9b8e4c276b4e8c7ece907ac28ec63f523d7e0cbcc9e425b4aaf4
4
SIZE (mcstas/McStas-2.1-UNIX-src.tar.gz) = 27807879
(-)p5-mcstas-tools/files/pkg-install.in (+23 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
4
5
if [ $# -ne 2 ]; then
6
    echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
7
    exit 1
8
fi
9
10
execs="mcdaemon mcdisplay mcdoc mcformatgui mcgui mcplot mcresplot mcrun mcstas2vitess"
11
12
case $2 in
13
     POST-INSTALL)
14
		if [ ! -f "${PKG_PREFIX}/bin" ]; then
15
			echo "Installing link to executables in ${PKG_PREFIX}/bin.";
16
                        for target in ${execs}; do
17
				ln -s ${PKG_PREFIX}/mcstas/%%PORTVERSION%%/bin/${target} ${PKG_PREFIX}/bin/${target};
18
			done                
19
		fi
20
		;;
21
esac
22
23
exit 0
(-)p5-mcstas-tools/pkg-deinstall (-41 / +4 lines)
Lines 3-57 Link Here
3
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
3
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
4
4
5
if [ $# -ne 2 ]; then
5
if [ $# -ne 2 ]; then
6
    echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
6
    echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2
7
    exit 1
7
    exit 1
8
fi
8
fi
9
9
10
pname=${1%-*}
10
execs="mcdaemon mcdisplay mcdoc mcformatgui mcgui mcplot mcresplot mcrun mcstas2vitess"
11
pversion=${1##*-}
12
13
#echo the extracted port name is $pname
14
#echo the extracted port version is $pversion
15
16
execs="mcdaemon mcdisplay mcdoc mcformatgui mcgui mcresplot mcrun mcstas2vitess"
17
18
case $2 in
19
     DEINSTALL)
20
21
		if [ ! -f "${PKG_PREFIX}/bin" ]; then
22
			echo "Deinstalling links to ${1} executables in ${PKG_PREFIX}/bin.";
23
                        for target in ${execs}; do
24
				rm ${PKG_PREFIX}/bin/${target};
25
			done                
26
		fi
27
		;;
28
esac
29
30
exit 0
31
#!/bin/sh
32
33
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
34
35
if [ $# -ne 2 ]; then
36
    echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
37
    exit 1
38
fi
39
40
pname=${1%-*}
41
pversion=${1##*-}
42
43
#echo the extracted port name is $pname
44
#echo the extracted port version is $pversion
45
46
execs="mcdaemon mcdisplay mcdoc mcformatgui mcgui mcresplot mcrun mcstas2vitess"
47
11
48
case $2 in
12
case $2 in
49
     DEINSTALL)
13
     DEINSTALL)
50
51
		if [ ! -f "${PKG_PREFIX}/bin" ]; then
14
		if [ ! -f "${PKG_PREFIX}/bin" ]; then
52
			echo "Deinstalling links to ${1} executables in ${PKG_PREFIX}/bin.";
15
			echo "Deinstalling links to executables in ${PKG_PREFIX}/bin.";
53
                        for target in ${execs}; do
16
                        for target in ${execs}; do
54
				rm ${PKG_PREFIX}/bin/${target};
17
				rm -rf ${PKG_PREFIX}/bin/${target};
55
			done                
18
			done                
56
		fi
19
		fi
57
		;;
20
		;;
(-)p5-mcstas-tools/pkg-descr (-26 / +6 lines)
Lines 1-7 Link Here
1
McStas perl tools for aiding in running neutron ray tracing simulations.
1
McStas perl tools to aid in running neutron ray tracing simulations.
2
2
3
McStas is a tool for simulating neutron instrumentation and experiments using a
3
McStas is a tool for simulating neutron instrumentation and experiments using 
4
ray-tracing formalism. Currently the main use of McStas is in the field of
4
a ray-tracing formalism. Currently the main use of McStas is in the field of
5
instrumentation design.
5
instrumentation design.
6
6
7
This port contains a few perl-based helper tools (including a GUI) to aid the
7
This port contains a few perl-based helper tools (including a GUI) to aid the
Lines 11-39 Link Here
11
  point scans and simple optimizations.
11
  point scans and simple optimizations.
12
mcdoc: Script for viewing inline component documentation.
12
mcdoc: Script for viewing inline component documentation.
13
mcplot: Tool for plotting McXtrace-generated results.
13
mcplot: Tool for plotting McXtrace-generated results.
14
mcdisplay: Visual ray-tracing displaying x-ray phton trajectories.
14
mcdisplay: Visual ray-tracing displaying neutron trajectories.
15
mcformatgui: Front-end to mxformat to help reformatting data-files (obsolescent).
15
mcformatgui: Front-end to mxformat to help reformat data-files (obsolescent).
16
mcdaemon: Deamon to dynamically monitor and plot incoming results (obsolescent).
16
mcdaemon: Deamon to dynamically monitor and plot results (obsolescent).
17
mcstas2vitess: Tool to transfer a McStas simulation to ViTESS.
18
mcresplot: Script to help plotting resolution functions.
19
20
WWW: http://www.mcstas.org
21
McStas perl tools for aiding in running neutron ray tracing simulations.
22
23
McStas is a tool for simulating neutron instrumentation and experiments using a
24
ray-tracing formalism. Currently the main use of McStas is in the field of
25
instrumentation design.
26
27
This port contains a few perl-based helper tools (including a GUI) to aid the
28
user in setting up and running simulations. The tools are:
29
mcgui: A Tk/Perl based GUI.
30
mcrun: A Script that makes it easy to run sims and perform
31
  point scans and simple optimizations.
32
mcdoc: Script for viewing inline component documentation.
33
mcplot: Tool for plotting McXtrace-generated results.
34
mcdisplay: Visual ray-tracing displaying x-ray phton trajectories.
35
mcformatgui: Front-end to mxformat to help reformatting data-files (obsolescent).
36
mcdaemon: Deamon to dynamically monitor and plot incoming results (obsolescent).
37
mcstas2vitess: Tool to transfer a McStas simulation to ViTESS.
17
mcstas2vitess: Tool to transfer a McStas simulation to ViTESS.
38
mcresplot: Script to help plotting resolution functions.
18
mcresplot: Script to help plotting resolution functions.
39
19
(-)p5-mcstas-tools/pkg-install (-58 lines)
Lines 1-58 Link Here
1
#!/bin/sh
2
3
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
4
5
if [ $# -ne 2 ]; then
6
    echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
7
    exit 1
8
fi
9
10
pname=${1%-*}
11
pversion=${1##*-}
12
13
#echo the extracted port name is $pname
14
#echo the extracted port version is $pversion
15
16
execs="mcdaemon mcdisplay mcdoc mcformatgui mcgui mcplot mcresplot mcrun mcstas2vitess"
17
18
case $2 in
19
     POST-INSTALL)
20
		if [ ! -f "${PKG_PREFIX}/bin" ]; then
21
			echo "Installing links to ${1} executables in ${PKG_PREFIX}/bin.";
22
                        for target in ${execs}; do
23
				ln -s ${PKG_PREFIX}/${pname}/${pversion}/bin/${target} ${PKG_PREFIX}/bin/${target};
24
			done                
25
		fi
26
		;;
27
esac
28
29
exit 0
30
#!/bin/sh
31
32
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
33
34
if [ $# -ne 2 ]; then
35
    echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
36
    exit 1
37
fi
38
39
pname=${1%-*}
40
pversion=${1##*-}
41
42
#echo the extracted port name is $pname
43
#echo the extracted port version is $pversion
44
45
execs="mcdaemon mcdisplay mcdoc mcformatgui mcgui mcplot mcresplot mcrun mcstas2vitess"
46
47
case $2 in
48
     POST-INSTALL)
49
		if [ ! -f "${PKG_PREFIX}/bin" ]; then
50
			echo "Installing links to ${1} executables in ${PKG_PREFIX}/bin.";
51
                        for target in ${execs}; do
52
				ln -s ${PKG_PREFIX}/${pname}/${pversion}/bin/${target} ${PKG_PREFIX}/bin/${target};
53
			done                
54
		fi
55
		;;
56
esac
57
58
exit 0
(-)p5-mcstas-tools/pkg-plist (-82 / +37 lines)
Lines 1-82 Link Here
1
mcstas/2.1/bin/mcdaemon
1
mcstas/2.2a/bin/mcdaemon
2
mcstas/2.1/bin/mcdisplay
2
mcstas/2.2a/bin/mcdisplay
3
mcstas/2.1/bin/mcdoc
3
mcstas/2.2a/bin/mcdoc
4
mcstas/2.1/bin/mcformatgui
4
mcstas/2.2a/bin/mcformatgui
5
mcstas/2.1/bin/mcgui
5
mcstas/2.2a/bin/mcgui
6
mcstas/2.1/bin/mcplot
6
mcstas/2.2a/bin/mcplot
7
mcstas/2.1/bin/mcresplot
7
mcstas/2.2a/bin/mcresplot
8
mcstas/2.1/bin/mcrun
8
mcstas/2.2a/bin/mcrun
9
mcstas/2.1/bin/mcstas2vitess
9
mcstas/2.2a/bin/mcstas2vitess
10
mcstas/2.1/doc/man/man1/mcdisplay-2.1.1
10
mcstas/2.2a/doc/man/man1/mcdisplay-2.2a.1
11
mcstas/2.1/doc/man/man1/mcdoc-2.1.1
11
mcstas/2.2a/doc/man/man1/mcdoc-2.2a.1
12
mcstas/2.1/doc/man/man1/mcgui-2.1.1
12
mcstas/2.2a/doc/man/man1/mcgui-2.2a.1
13
mcstas/2.1/doc/man/man1/mcplot-2.1.1
13
mcstas/2.2a/doc/man/man1/mcplot-2.2a.1
14
mcstas/2.1/doc/man/man1/mcrun-2.1.1
14
mcstas/2.2a/doc/man/man1/mcrun-2.2a.1
15
mcstas/2.1/mcstas-tools-perl-2.1/launcher/McStas.desktop
15
mcstas/2.2a/launchers/McStas.desktop
16
mcstas/2.1/mcstas-tools-perl-2.1/launcher/mcstas.png
16
mcstas/2.2a/launchers/mcstas-pl.png
17
mcstas/2.1/mcstas-tools-perl-2.1/launcher/mcxtrace.png
17
mcstas/2.2a/tools/Perl/launcher/mcstas-pl.png
18
mcstas/2.1/mcstas-tools-perl-2.1/matlab/CheckNeutNumber.m
18
mcstas/2.2a/tools/Perl/launcher/mcxtrace-pl.png
19
mcstas/2.1/mcstas-tools-perl-2.1/matlab/CheckTimeout.m
19
mcstas/2.2a/tools/Perl/matlab/CheckNeutNumber.m
20
mcstas/2.1/mcstas-tools-perl-2.1/matlab/PlotInstrument.m
20
mcstas/2.2a/tools/Perl/matlab/CheckTimeout.m
21
mcstas/2.1/mcstas-tools-perl-2.1/matlab/ReshapeTransform.m
21
mcstas/2.2a/tools/Perl/matlab/PlotInstrument.m
22
mcstas/2.1/mcstas-tools-perl-2.1/matlab/mcdisplay.m
22
mcstas/2.2a/tools/Perl/matlab/ReshapeTransform.m
23
mcstas/2.1/mcstas-tools-perl-2.1/matlab/mcplot.m
23
mcstas/2.2a/tools/Perl/matlab/mcdisplay.m
24
mcstas/2.1/mcstas-tools-perl-2.1/matlab/resume.m
24
mcstas/2.2a/tools/Perl/matlab/mcplot.m
25
mcstas/2.1/mcstas-tools-perl-2.1/matlab/tomo_recon.m
25
mcstas/2.2a/tools/Perl/matlab/resume.m
26
mcstas/2.1/mcstas-tools-perl-2.1/matlab/wait.m
26
mcstas/2.2a/tools/Perl/matlab/tomo_recon.m
27
mcstas/2.1/mcstas-tools-perl-2.1/perl/mccode_config.perl
27
mcstas/2.2a/tools/Perl/matlab/wait.m
28
mcstas/2.1/mcstas-tools-perl-2.1/perl/mccode_reconfigure
28
mcstas/2.2a/tools/Perl/perl/mccode_config.perl
29
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcfrontlib.pl
29
mcstas/2.2a/tools/Perl/perl/mccode_reconfigure
30
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcfrontlib2D.pl
30
mcstas/2.2a/tools/Perl/perl/mcfrontlib.pl
31
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcgnuplot.pl
31
mcstas/2.2a/tools/Perl/perl/mcfrontlib2D.pl
32
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcguilib.pl
32
mcstas/2.2a/tools/Perl/perl/mcgnuplot.pl
33
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcoptimlib.pl
33
mcstas/2.2a/tools/Perl/perl/mcguilib.pl
34
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcplotlib.pl
34
mcstas/2.2a/tools/Perl/perl/mcoptimlib.pl
35
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcrunlib.pl
35
mcstas/2.2a/tools/Perl/perl/mcplotlib.pl
36
mcstas/2.1/mcstas-tools-perl-2.1/perl/mxguilib.pl
36
mcstas/2.2a/tools/Perl/perl/mcrunlib.pl
37
mcstas/2.1/bin/mcdaemon
37
mcstas/2.2a/tools/Perl/perl/mxguilib.pl
38
mcstas/2.1/bin/mcdisplay
39
mcstas/2.1/bin/mcdoc
40
mcstas/2.1/bin/mcformatgui
41
mcstas/2.1/bin/mcgui
42
mcstas/2.1/bin/mcplot
43
mcstas/2.1/bin/mcresplot
44
mcstas/2.1/bin/mcrun
45
mcstas/2.1/bin/mcstas2vitess
46
mcstas/2.1/doc/man/man1/mcdisplay-2.1.1
47
mcstas/2.1/doc/man/man1/mcdoc-2.1.1
48
mcstas/2.1/doc/man/man1/mcgui-2.1.1
49
mcstas/2.1/doc/man/man1/mcplot-2.1.1
50
mcstas/2.1/doc/man/man1/mcrun-2.1.1
51
mcstas/2.1/mcstas-tools-perl-2.1/launcher/McStas.desktop
52
mcstas/2.1/mcstas-tools-perl-2.1/launcher/mcstas.png
53
mcstas/2.1/mcstas-tools-perl-2.1/launcher/mcxtrace.png
54
mcstas/2.1/mcstas-tools-perl-2.1/matlab/CheckNeutNumber.m
55
mcstas/2.1/mcstas-tools-perl-2.1/matlab/CheckTimeout.m
56
mcstas/2.1/mcstas-tools-perl-2.1/matlab/PlotInstrument.m
57
mcstas/2.1/mcstas-tools-perl-2.1/matlab/ReshapeTransform.m
58
mcstas/2.1/mcstas-tools-perl-2.1/matlab/mcdisplay.m
59
mcstas/2.1/mcstas-tools-perl-2.1/matlab/mcplot.m
60
mcstas/2.1/mcstas-tools-perl-2.1/matlab/resume.m
61
mcstas/2.1/mcstas-tools-perl-2.1/matlab/tomo_recon.m
62
mcstas/2.1/mcstas-tools-perl-2.1/matlab/wait.m
63
mcstas/2.1/mcstas-tools-perl-2.1/perl/mccode_config.perl
64
mcstas/2.1/mcstas-tools-perl-2.1/perl/mccode_reconfigure
65
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcfrontlib.pl
66
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcfrontlib2D.pl
67
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcgnuplot.pl
68
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcguilib.pl
69
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcoptimlib.pl
70
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcplotlib.pl
71
mcstas/2.1/mcstas-tools-perl-2.1/perl/mcrunlib.pl
72
mcstas/2.1/mcstas-tools-perl-2.1/perl/mxguilib.pl
73
@dirrmtry mcstas/2.1/bin
74
@dirrmtry mcstas/2.1/doc/man/man1
75
@dirrmtry mcstas/2.1/doc/man
76
@dirrmtry mcstas/2.1/doc
77
@dirrmtry mcstas/2.1/mcstas-tools-perl-2.1/launcher
78
@dirrmtry mcstas/2.1/mcstas-tools-perl-2.1/matlab
79
@dirrmtry mcstas/2.1/mcstas-tools-perl-2.1/perl
80
@dirrmtry mcstas/2.1/mcstas-tools-perl-2.1
81
@dirrmtry mcstas/2.1
82
@dirrmtry mcstas

Return to bug 194849