Date: Thu, 14 Apr 2016 10:40:38 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r413251 - in head/science/p5-Mcstas-Tools: . files Message-ID: <201604141040.u3EAecu4040616@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Thu Apr 14 10:40:38 2016 New Revision: 413251 URL: https://svnweb.freebsd.org/changeset/ports/413251 Log: Don't leave dead symlinks when deinstalling. [1] (based on) While there, move man pages to a place they can be used, and fix shebangs. PR: 206476 [1] Submitted by: maintainer Sponsored by: Absolight Deleted: head/science/p5-Mcstas-Tools/files/ Modified: head/science/p5-Mcstas-Tools/Makefile (contents, props changed) head/science/p5-Mcstas-Tools/pkg-plist (contents, props changed) Modified: head/science/p5-Mcstas-Tools/Makefile ============================================================================== --- head/science/p5-Mcstas-Tools/Makefile Thu Apr 14 08:57:34 2016 (r413250) +++ head/science/p5-Mcstas-Tools/Makefile Thu Apr 14 10:40:38 2016 (r413251) @@ -16,13 +16,22 @@ LICENSE= GPLv2 RUN_DEPENDS= p5-Tk>0:x11-toolkits/p5-Tk \ p5-PGPLOT>=2.21:graphics/p5-PGPLOT \ PDL>0:math/PDL \ - ${LOCALBASE}/bin/mcstas:science/mcstas + mcstas:science/mcstas -USES= cmake gmake perl5 +USES= cmake gmake perl5 shebangfix CMAKE_ARGS= -Denable_mcstas=1 GNU_CONFIGURE= yes +SHEBANG_FILES= ${EXECS:S/$/.pl/} -SUB_FILES= pkg-install -SUB_LIST= PORTVERSION=${PORTVERSION} +PLIST_SUB= PORTVERSION=${PORTVERSION} + +EXECS= mcdaemon mcdisplay mcdoc mcformatgui mcgui mcplot mcresplot mcrun mcstas2vitess + +post-install: + ${MV} ${STAGEDIR}${PREFIX}/mcstas/${PORTVERSION}/doc/man/man1/*.1 ${STAGEDIR}${PREFIX}/man/man1/ + ${RMDIR} -p ${STAGEDIR}${PREFIX}/mcstas/${PORTVERSION}/doc/man/man1 || : > /dev/null 2>&1 +.for target in ${EXECS} + ${LN} -s ${PREFIX}/mcstas/${PORTVERSION}/bin/${target} ${STAGEDIR}${PREFIX}/bin/${target} +.endfor .include <bsd.port.mk> Modified: head/science/p5-Mcstas-Tools/pkg-plist ============================================================================== --- head/science/p5-Mcstas-Tools/pkg-plist Thu Apr 14 08:57:34 2016 (r413250) +++ head/science/p5-Mcstas-Tools/pkg-plist Thu Apr 14 10:40:38 2016 (r413251) @@ -1,37 +1,46 @@ -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 +bin/mcdaemon +bin/mcdisplay +bin/mcdoc +bin/mcformatgui +bin/mcgui +bin/mcplot +bin/mcresplot +bin/mcrun +bin/mcstas2vitess +man/man1/mcdisplay-%%PORTVERSION%%.1.gz +man/man1/mcdoc-%%PORTVERSION%%.1.gz +man/man1/mcgui-%%PORTVERSION%%.1.gz +man/man1/mcplot-%%PORTVERSION%%.1.gz +man/man1/mcrun-%%PORTVERSION%%.1.gz +mcstas/%%PORTVERSION%%/bin/mcdaemon +mcstas/%%PORTVERSION%%/bin/mcdisplay +mcstas/%%PORTVERSION%%/bin/mcdoc +mcstas/%%PORTVERSION%%/bin/mcformatgui +mcstas/%%PORTVERSION%%/bin/mcgui +mcstas/%%PORTVERSION%%/bin/mcplot +mcstas/%%PORTVERSION%%/bin/mcresplot +mcstas/%%PORTVERSION%%/bin/mcrun +mcstas/%%PORTVERSION%%/bin/mcstas2vitess +mcstas/%%PORTVERSION%%/launchers/McStas.desktop +mcstas/%%PORTVERSION%%/launchers/mcstas-pl.png +mcstas/%%PORTVERSION%%/tools/Perl/launcher/mcstas-pl.png +mcstas/%%PORTVERSION%%/tools/Perl/launcher/mcxtrace-pl.png +mcstas/%%PORTVERSION%%/tools/Perl/matlab/CheckNeutNumber.m +mcstas/%%PORTVERSION%%/tools/Perl/matlab/CheckTimeout.m +mcstas/%%PORTVERSION%%/tools/Perl/matlab/PlotInstrument.m +mcstas/%%PORTVERSION%%/tools/Perl/matlab/ReshapeTransform.m +mcstas/%%PORTVERSION%%/tools/Perl/matlab/mcdisplay.m +mcstas/%%PORTVERSION%%/tools/Perl/matlab/mcplot.m +mcstas/%%PORTVERSION%%/tools/Perl/matlab/resume.m +mcstas/%%PORTVERSION%%/tools/Perl/matlab/tomo_recon.m +mcstas/%%PORTVERSION%%/tools/Perl/matlab/wait.m +mcstas/%%PORTVERSION%%/tools/Perl/perl/mccode_config.perl +mcstas/%%PORTVERSION%%/tools/Perl/perl/mccode_reconfigure +mcstas/%%PORTVERSION%%/tools/Perl/perl/mcfrontlib.pl +mcstas/%%PORTVERSION%%/tools/Perl/perl/mcfrontlib2D.pl +mcstas/%%PORTVERSION%%/tools/Perl/perl/mcgnuplot.pl +mcstas/%%PORTVERSION%%/tools/Perl/perl/mcguilib.pl +mcstas/%%PORTVERSION%%/tools/Perl/perl/mcoptimlib.pl +mcstas/%%PORTVERSION%%/tools/Perl/perl/mcplotlib.pl +mcstas/%%PORTVERSION%%/tools/Perl/perl/mcrunlib.pl +mcstas/%%PORTVERSION%%/tools/Perl/perl/mxguilib.pl
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604141040.u3EAecu4040616>