View | Details | Raw Unified | Return to bug 204223
Collapse All | Expand All

(-)Makefile (-30 / +9 lines)
Lines 2-40 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	mcstas
4
PORTNAME=	mcstas
5
PORTVERSION=	2.1
5
PORTVERSION=	2.2a
6
CATEGORIES=	science
6
CATEGORIES=	science
7
MASTER_SITES=	http://download.mcstas.org/${PORTNAME}-${PORTVERSION}/unix/
7
MASTER_SITES=	http://download.mcstas.org/${PORTNAME}-${PORTVERSION}/unix/McStas-${PORTVERSION}-UNIX-src/
8
DISTNAME=	${PORTNAME}-${PORTVERSION}-src
8
DISTNAME=	mcstas-${PORTVERSION}-src
9
DISTFILES=	McStas-${PORTVERSION}-UNIX-src.tar.gz
10
DIST_SUBDIR=	${PORTNAME}
11
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
12
9
13
MAINTAINER=	erkn@fysik.dtu.dk
10
MAINTAINER= 	erkn@fysik.dtu.dk
14
COMMENT=	Monte Carlo neutron ray tracing package
11
COMMENT= 	Monte Carlo neutron ray tracing package
15
12
16
LICENSE=	GPLv2
13
LICENSE= 	GPLv2
17
14
18
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
15
USES= 		bison:build cmake gmake
19
16
CMAKE_ARGS= 	"-Denable_mcstas=1"
20
USES=		cmake gmake bison:build
21
#should perhaps use the toolchain file - but remember the arch
22
CMAKE_ARGS=	"-Denable_mcstas=1"
23
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
24
18
25
.include <bsd.port.pre.mk>
19
.include <bsd.port.mk>
26
27
# this is necessary since mcxtrace and mcstas are packaged in a
28
# single tarball in which the kernel, component library, manual,
29
# and tool tarballs reside
30
post-fetch:
31
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
32
	cd ${DISTDIR}/${DIST_SUBDIR};\
33
	${TAR} --strip-components 1 -xzf ${DISTFILES} McStas-2.1-UNIX-src/${DISTNAME}.tar.gz;
34
.endif
35
36
post-stage:
37
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/mcstas/2.1/bin/mcstas
38
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/mcstas/2.1/bin/mcformat
39
40
.include <bsd.port.post.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (mcstas/McStas-2.1-UNIX-src.tar.gz) = 70d5b33d67ea9b8e4c276b4e8c7ece907ac28ec63f523d7e0cbcc9e425b4aaf4
1
SHA256 (mcstas-2.2a-src.tar.gz) = 7f8cca7ceea87e4b99c17ee16e4f1e6fd89712d2de1ba61ab97a2cd7ea0f8b9d
2
SIZE (mcstas/McStas-2.1-UNIX-src.tar.gz) = 27807879
2
SIZE (mcstas-2.2a-src.tar.gz) = 347943
(-)pkg-deinstall (-7 / +1 lines)
Lines 7-18 Link Here
7
    exit 1
7
    exit 1
8
fi
8
fi
9
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="mcstas mcformat"
10
execs="mcstas mcformat"
17
11
18
case $2 in
12
case $2 in
Lines 19-25 Link Here
19
     DEINSTALL)
13
     DEINSTALL)
20
14
21
		if [ ! -f "${PKG_PREFIX}/bin" ]; then
15
		if [ ! -f "${PKG_PREFIX}/bin" ]; then
22
			echo "Deinstalling links to ${1} executables in ${PKG_PREFIX}/bin.";
16
			echo "Deinstalling links to executables in ${PKG_PREFIX}/bin.";
23
                        for target in ${execs}; do
17
                        for target in ${execs}; do
24
				rm ${PKG_PREFIX}/bin/${target};
18
				rm ${PKG_PREFIX}/bin/${target};
25
			done                
19
			done                
(-)pkg-descr (-4 / +4 lines)
Lines 1-7 Link Here
1
Monte Carlo ray tracing simulations of neutron experiments.
1
McStas - Monte Carlo ray tracing simulations of neutron experiments.
2
2
3
McStas is a tool for simulating neutron instrumentation and experiments
3
McStas is a tool for simulating neutron instrumentation and experiments using a
4
using a ray-tracing formalism. Currently the main use of McStas is
4
ray-tracing formalism. Currently the main use of McStas is in the field of 
5
in the field of instrument design.
5
instrument design. 
6
6
7
WWW: http://www.mcstas.org
7
WWW: http://www.mcstas.org
(-)pkg-plist (-84 / +72 lines)
Lines 1-84 Link Here
1
mcstas/2.1/LGPL
1
mcstas/2.2a/LGPL
2
mcstas/2.1/LICENSE.LIB
2
mcstas/2.2a/LICENSE.LIB
3
mcstas/2.1/NOMENCLATURE
3
mcstas/2.2a/NOMENCLATURE
4
mcstas/2.1/README
4
mcstas/2.2a/README
5
mcstas/2.1/bin/mcformat
5
mcstas/2.2a/bin/mcformat
6
mcstas/2.1/bin/mcstas
6
mcstas/2.2a/bin/mcstas
7
mcstas/2.1/data/Al.nxs
7
mcstas/2.2a/data/Al.nxs
8
mcstas/2.1/data/Cu.nxs
8
mcstas/2.2a/data/Cu.nxs
9
mcstas/2.1/doc/man/man1/mcformat-2.1.1
9
mcstas/2.2a/doc/man/man1/mcformat-2.2a.1
10
mcstas/2.1/doc/man/man1/mcstas-2.1.1
10
mcstas/2.2a/doc/man/man1/mcstas-2.2a.1
11
mcstas/2.1/environment
11
mcstas/2.2a/environment
12
mcstas/2.1/module
12
mcstas/2.2a/module
13
mcstas/2.1/share/adapt_tree-lib.c
13
mcstas/2.2a/share/adapt_tree-lib.c
14
mcstas/2.1/share/adapt_tree-lib.h
14
mcstas/2.2a/share/adapt_tree-lib.h
15
mcstas/2.1/share/general.c
15
mcstas/2.2a/share/general.c
16
mcstas/2.1/share/general.h
16
mcstas/2.2a/share/general.h
17
mcstas/2.1/share/interoff-lib.c
17
mcstas/2.2a/share/interoff-lib.c
18
mcstas/2.1/share/interoff-lib.h
18
mcstas/2.2a/share/interoff-lib.h
19
mcstas/2.1/share/interpolation/array-utils.c
19
mcstas/2.2a/share/interpolation/array-utils.c
20
mcstas/2.1/share/interpolation/array-utils.h
20
mcstas/2.2a/share/interpolation/array-utils.h
21
mcstas/2.1/share/interpolation/natural/README
21
mcstas/2.2a/share/interpolation/natural/README
22
mcstas/2.1/share/interpolation/natural/delaunay.c
22
mcstas/2.2a/share/interpolation/natural/delaunay.c
23
mcstas/2.1/share/interpolation/natural/delaunay.h
23
mcstas/2.2a/share/interpolation/natural/delaunay.h
24
mcstas/2.1/share/interpolation/natural/example.c
24
mcstas/2.2a/share/interpolation/natural/example.c
25
mcstas/2.1/share/interpolation/natural/natural.c
25
mcstas/2.2a/share/interpolation/natural/natural.c
26
mcstas/2.1/share/interpolation/natural/natural.h
26
mcstas/2.2a/share/interpolation/natural/natural.h
27
mcstas/2.1/share/interpolation/natural/predicates.c
27
mcstas/2.2a/share/interpolation/natural/predicates.c
28
mcstas/2.1/share/interpolation/natural/utils-extra.c
28
mcstas/2.2a/share/interpolation/natural/utils-extra.c
29
mcstas/2.1/share/interpolation/natural/utils-extra.h
29
mcstas/2.2a/share/interpolation/natural/utils-extra.h
30
mcstas/2.1/share/interpolation/natural/vertex.h
30
mcstas/2.2a/share/interpolation/natural/vertex.h
31
mcstas/2.1/share/interpolation/nearest/README
31
mcstas/2.2a/share/interpolation/nearest/README
32
mcstas/2.1/share/interpolation/nearest/example.c
32
mcstas/2.2a/share/interpolation/nearest/example.c
33
mcstas/2.1/share/interpolation/nearest/kdtree.c
33
mcstas/2.2a/share/interpolation/nearest/kdtree.c
34
mcstas/2.1/share/interpolation/nearest/kdtree.h
34
mcstas/2.2a/share/interpolation/nearest/kdtree.h
35
mcstas/2.1/share/interpolation/nearest/vertex.h
35
mcstas/2.2a/share/interpolation/nearest/vertex.h
36
mcstas/2.1/share/interpolation/resample.c
36
mcstas/2.2a/share/interpolation/resample.c
37
mcstas/2.1/share/interpolation/resample.h
37
mcstas/2.2a/share/interpolation/resample.h
38
mcstas/2.1/share/intersection.c
38
mcstas/2.2a/share/intersection.c
39
mcstas/2.1/share/intersection.h
39
mcstas/2.2a/share/intersection.h
40
mcstas/2.1/share/mccode-r.c
40
mcstas/2.2a/share/mccode-r.c
41
mcstas/2.1/share/mccode-r.h
41
mcstas/2.2a/share/mccode-r.h
42
mcstas/2.1/share/mcstas-r.c
42
mcstas/2.2a/share/mcstas-r.c
43
mcstas/2.1/share/mcstas-r.h
43
mcstas/2.2a/share/mcstas-r.h
44
mcstas/2.1/share/nxslib/README.TXT
44
mcstas/2.2a/share/nxslib/README.TXT
45
mcstas/2.1/share/nxslib/nxs.c
45
mcstas/2.2a/share/nxslib/nxs.c
46
mcstas/2.1/share/nxslib/nxs.h
46
mcstas/2.2a/share/nxslib/nxs.h
47
mcstas/2.1/share/nxslib/sgclib.c
47
mcstas/2.2a/share/nxslib/sgclib.c
48
mcstas/2.1/share/nxslib/sgfind.c
48
mcstas/2.2a/share/nxslib/sgfind.c
49
mcstas/2.1/share/nxslib/sghkl.c
49
mcstas/2.2a/share/nxslib/sghkl.c
50
mcstas/2.1/share/nxslib/sginfo.h
50
mcstas/2.2a/share/nxslib/sginfo.h
51
mcstas/2.1/share/nxslib/sgio.c
51
mcstas/2.2a/share/nxslib/sgio.c
52
mcstas/2.1/share/nxslib/sgsi.c
52
mcstas/2.2a/share/nxslib/sgsi.c
53
mcstas/2.1/share/pol-lib.c
53
mcstas/2.2a/share/pol-lib.c
54
mcstas/2.1/share/pol-lib.h
54
mcstas/2.2a/share/pol-lib.h
55
mcstas/2.1/share/read_table-lib.c
55
mcstas/2.2a/share/read_table-lib.c
56
mcstas/2.1/share/read_table-lib.h
56
mcstas/2.2a/share/read_table-lib.h
57
mcstas/2.1/share/ref-lib.c
57
mcstas/2.2a/share/ref-lib.c
58
mcstas/2.1/share/ref-lib.h
58
mcstas/2.2a/share/ref-lib.h
59
mcstas/2.1/share/vitess-lib.c
59
mcstas/2.2a/share/vitess-lib.c
60
mcstas/2.1/share/vitess-lib.h
60
mcstas/2.2a/share/vitess-lib.h
61
@dir mcstas/2.1/bin
61
@dirrmtry mcstas/2.2a/bin
62
@dir mcstas/2.1/contrib/Gas_tables
62
@dirrmtry mcstas/2.2a/data
63
@dir mcstas/2.1/contrib/ISIS_tables
63
@dirrmtry mcstas/2.2a/doc/man/man1
64
@dir mcstas/2.1/contrib/Neutronics
64
@dirrmtry mcstas/2.2a/doc/man
65
@dir mcstas/2.1/contrib/doc
65
@dirrmtry mcstas/2.2a/doc
66
@dir mcstas/2.1/contrib
66
@dirrmtry mcstas/2.2a/share/interpolation/natural
67
@dir mcstas/2.1/data
67
@dirrmtry mcstas/2.2a/share/interpolation/nearest
68
@dir mcstas/2.1/doc/man/man1
68
@dirrmtry mcstas/2.2a/share/interpolation
69
@dir mcstas/2.1/doc/man
69
@dirrmtry mcstas/2.2a/share/nxslib
70
@dir mcstas/2.1/doc
70
@dirrmtry mcstas/2.2a/share
71
@dir mcstas/2.1/examples
71
@dirrmtry mcstas/2.2a
72
@dir mcstas/2.1/misc
72
@dirrmtry mcstas
73
@dir mcstas/2.1/monitors
74
@dir mcstas/2.1/obsolete
75
@dir mcstas/2.1/optics
76
@dir mcstas/2.1/samples
77
@dir mcstas/2.1/share/interpolation/natural
78
@dir mcstas/2.1/share/interpolation/nearest
79
@dir mcstas/2.1/share/interpolation
80
@dir mcstas/2.1/share/nxslib
81
@dir mcstas/2.1/share
82
@dir mcstas/2.1/sources
83
@dir mcstas/2.1
84
@dir mcstas

Return to bug 204223