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

Collapse All | Expand All

(-)Makefile (-12 / +27 lines)
Lines 1-13 Link Here
1
# Created by: Erik B Knudsen
2
# $FreeBSD$
1
# $FreeBSD$
3
2
4
PORTNAME=	Mcstas-Tools
3
PORTNAME=	Mcstas-Tools
5
PORTVERSION=	2.2a
4
PORTVERSION=	2.5
6
PORTREVISION=	2
7
CATEGORIES=	science
5
CATEGORIES=	science
8
MASTER_SITES=	http://download.mcstas.org/mcstas-${PORTVERSION}/unix/McStas-${PORTVERSION}-UNIX-src/
6
MASTER_SITES=	http://download.mcstas.org/mcstas-${PORTVERSION}/unix/
9
PKGNAMEPREFIX=	p5-
7
PKGNAMEPREFIX=	p5-
10
DISTNAME=	mcstas-tools-perl-${PORTVERSION}-src
8
DISTFILES=	mcstas-tools-perl-cmdline-${PORTVERSION}-src.tar.gz mcstas-tools-perl-${PORTVERSION}-src.tar.gz
11
9
12
MAINTAINER=	erkn@fysik.dtu.dk
10
MAINTAINER=	erkn@fysik.dtu.dk
13
COMMENT=	Perl based tools for the McStas neutron ray tracing package
11
COMMENT=	Perl based tools for the McStas neutron ray tracing package
Lines 20-37 Link Here
20
		mcstas:science/mcstas
18
		mcstas:science/mcstas
21
19
22
USES=		cmake perl5 shebangfix
20
USES=		cmake perl5 shebangfix
21
22
NO_WRKSUBDIR=	yes
23
CMAKE_ARGS=	-Denable_mcstas=1
23
CMAKE_ARGS=	-Denable_mcstas=1
24
SHEBANG_FILES=	${EXECS:S/$/.pl/}
24
SHEBANG_GLOB=	*.pl
25
26
PLIST_SUB=	PORTVERSION=${PORTVERSION}
25
PLIST_SUB=	PORTVERSION=${PORTVERSION}
27
26
28
EXECS=		mcdaemon mcdisplay mcdoc mcformatgui mcgui mcplot mcresplot mcrun mcstas2vitess
27
EXECS=		mcdoc.pl mcrun.pl mcdaemon.pl mcdisplay.pl mcformatgui.pl mcgui.pl mcplot.pl mcresplot.pl mcrun.pl mcstas2vitess.pl
28
WRKSRC_SUBDIRS=	${DISTFILES:S/.tar.gz$//}
29
29
30
do-configure:
31
.for f in ${WRKSRC_SUBDIRS}
32
	 @${ECHO_MSG} ${_CMAKE_MSG}
33
	 ${MKDIR} ${WRKSRC}/${f}/.build
34
	 @cd ${WRKSRC}/${f}/.build; ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ..
35
.endfor
36
37
do-build:
38
.for f in ${WRKSRC_SUBDIRS}
39
	 @cd ${WRKSRC}/${f}/.build; ${DO_MAKE_BUILD} ${ALL_TARGET}
40
.endfor
41
42
do-install:
43
.for f in ${WRKSRC_SUBDIRS}
44
	@(cd ${WRKSRC}/${f}/.build && ${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
45
.endfor
46
30
post-install:
47
post-install:
31
	${MV} ${STAGEDIR}${PREFIX}/mcstas/${PORTVERSION}/doc/man/man1/*.1 ${STAGEDIR}${PREFIX}/man/man1/
48
.for e in ${EXECS}
32
	${RMDIR} -p ${STAGEDIR}${PREFIX}/mcstas/${PORTVERSION}/doc/man/man1 || : > /dev/null 2>&1
49
	${RLN} -s ${STAGEDIR}/${PREFIX}/mcstas/${PORTVERSION}/bin/${e} ${STAGEDIR}${PREFIX}/bin/${e}
33
.for target in ${EXECS}
34
	${LN} -s ${PREFIX}/mcstas/${PORTVERSION}/bin/${target} ${STAGEDIR}${PREFIX}/bin/${target}
35
.endfor
50
.endfor
36
51
37
.include <bsd.port.mk>
52
.include <bsd.port.mk>
(-)distinfo (-2 / +5 lines)
Lines 1-2 Link Here
1
SHA256 (mcstas-tools-perl-2.2a-src.tar.gz) = ccb35ca79075c7a4556c2cd246becb8437c7ddfabae1e1946dddc092e01f2f73
1
TIMESTAMP = 1546522722
2
SIZE (mcstas-tools-perl-2.2a-src.tar.gz) = 256717
2
SHA256 (mcstas-tools-perl-2.5-src.tar.gz) = 9bca4b97351661d2fee14d5d23ac0d1b4c846e9c8161de667e247ae5ec422661
3
SIZE (mcstas-tools-perl-2.5-src.tar.gz) = 223795
4
SHA256 (mcstas-tools-perl-cmdline-2.5-src.tar.gz) = b5cdf4c46b056fcf35939778b6ddf5542498ecbff213f1be839c8b81fa9d5df6
5
SIZE (mcstas-tools-perl-cmdline-2.5-src.tar.gz) = 76353
(-)pkg-plist (-23 / +18 lines)
Lines 1-26 Link Here
1
bin/mcdaemon
1
bin/mcdaemon.pl
2
bin/mcdisplay
2
bin/mcdisplay.pl
3
bin/mcdoc
3
bin/mcdoc.pl
4
bin/mcformatgui
4
bin/mcformatgui.pl
5
bin/mcgui
5
bin/mcgui.pl
6
bin/mcplot
6
bin/mcplot.pl
7
bin/mcresplot
7
bin/mcresplot.pl
8
bin/mcrun
8
bin/mcrun.pl
9
bin/mcstas2vitess
9
bin/mcstas2vitess.pl
10
man/man1/mcdisplay-%%PORTVERSION%%.1.gz
10
mcstas/%%PORTVERSION%%/bin/mcdaemon.pl
11
man/man1/mcdoc-%%PORTVERSION%%.1.gz
11
mcstas/%%PORTVERSION%%/bin/mcdisplay.pl
12
man/man1/mcgui-%%PORTVERSION%%.1.gz
12
mcstas/%%PORTVERSION%%/bin/mcdoc.pl
13
man/man1/mcplot-%%PORTVERSION%%.1.gz
13
mcstas/%%PORTVERSION%%/bin/mcformatgui.pl
14
man/man1/mcrun-%%PORTVERSION%%.1.gz
14
mcstas/%%PORTVERSION%%/bin/mcgui.pl
15
mcstas/%%PORTVERSION%%/bin/mcdaemon
15
mcstas/%%PORTVERSION%%/bin/mcplot.pl
16
mcstas/%%PORTVERSION%%/bin/mcdisplay
16
mcstas/%%PORTVERSION%%/bin/mcresplot.pl
17
mcstas/%%PORTVERSION%%/bin/mcdoc
17
mcstas/%%PORTVERSION%%/bin/mcrun.pl
18
mcstas/%%PORTVERSION%%/bin/mcformatgui
18
mcstas/%%PORTVERSION%%/bin/mcstas2vitess.pl
19
mcstas/%%PORTVERSION%%/bin/mcgui
20
mcstas/%%PORTVERSION%%/bin/mcplot
21
mcstas/%%PORTVERSION%%/bin/mcresplot
22
mcstas/%%PORTVERSION%%/bin/mcrun
23
mcstas/%%PORTVERSION%%/bin/mcstas2vitess
24
mcstas/%%PORTVERSION%%/launchers/McStas.desktop
19
mcstas/%%PORTVERSION%%/launchers/McStas.desktop
25
mcstas/%%PORTVERSION%%/launchers/mcstas-pl.png
20
mcstas/%%PORTVERSION%%/launchers/mcstas-pl.png
26
mcstas/%%PORTVERSION%%/tools/Perl/launcher/mcstas-pl.png
21
mcstas/%%PORTVERSION%%/tools/Perl/launcher/mcstas-pl.png

Return to bug 236507