From owner-svn-ports-all@freebsd.org Thu Apr 14 10:40:39 2016 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 A828CB10622; Thu, 14 Apr 2016 10:40:39 +0000 (UTC) (envelope-from mat@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 6A90A1D58; Thu, 14 Apr 2016 10:40:39 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3EAecMu040618; Thu, 14 Apr 2016 10:40:38 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3EAecu4040616; Thu, 14 Apr 2016 10:40:38 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201604141040.u3EAecu4040616@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Thu, 14 Apr 2016 10:40:38 +0000 (UTC) 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 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.21 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: Thu, 14 Apr 2016 10:40:39 -0000 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 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