Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2017 17:32:37 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r455594 - in head/science/mcstas: . files
Message-ID:  <201712051732.vB5HWbUA018987@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Tue Dec  5 17:32:37 2017
New Revision: 455594
URL: https://svnweb.freebsd.org/changeset/ports/455594

Log:
  science/mcstas: simplify Makefile
  
  While here, remove unecessary pkg-install/deinstall
  
  PR:		223905
  Submitted by:	Erik B Knudsen <erkn@fysik.dtu.dk> (maintainer)

Deleted:
  head/science/mcstas/files/
Modified:
  head/science/mcstas/Makefile
  head/science/mcstas/distinfo
  head/science/mcstas/pkg-plist

Modified: head/science/mcstas/Makefile
==============================================================================
--- head/science/mcstas/Makefile	Tue Dec  5 17:06:48 2017	(r455593)
+++ head/science/mcstas/Makefile	Tue Dec  5 17:32:37 2017	(r455594)
@@ -1,25 +1,28 @@
-# Created by: Erik B Knudsen <erkn@fysik.dtu.dk>
 # $FreeBSD$
 
 PORTNAME=	mcstas
-PORTVERSION=	2.2a
+DISTVERSION=	2.2a
 CATEGORIES=	science
-MASTER_SITES=	http://download.mcstas.org/${PORTNAME}-${PORTVERSION}/unix/McStas-${PORTVERSION}-UNIX-src/
-DISTNAME=	mcstas-${PORTVERSION}-src
+MASTER_SITES=	http://download.mcstas.org/${PORTNAME}-${DISTVERSION}/unix/McStas-${DISTVERSION}-UNIX-src/
+DISTNAME=	mcstas-${DISTVERSION}-src
 
 MAINTAINER=	erkn@fysik.dtu.dk
 COMMENT=	Monte Carlo neutron ray tracing package
 
-LICENSE=	GPLv2
+LICENSE=	LGPL21+
 
-USES=		bison:build cmake
+USES=		bison:build cmake:outsource
 CMAKE_ARGS=	"-Denable_mcstas=1"
 
-PLIST_SUB+=	PORTVERSION=${PORTVERSION}
-SUB_FILES=	pkg-deinstall pkg-install
+MANDIRS=	${PREFIX}/${PORTNAME}/${DISTVERSION}/doc/man/man1
+PLIST_SUB+=	DISTVERSION=${DISTVERSION}
 
+MCEXECS=	mcstas mcformat
+
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/mcstas/${PORTVERSION}/bin/mcformat
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/mcstas/${PORTVERSION}/bin/mcstas
+.for e in ${MCEXECS}
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${PORTNAME}/${DISTVERSION}/bin/${e}
+	${LN} -s ${PREFIX}/${PORTNAME}/${DISTVERSION}/bin/${e} ${STAGEDIR}${PREFIX}/bin/${e}
+.endfor
 
 .include <bsd.port.mk>

Modified: head/science/mcstas/distinfo
==============================================================================
--- head/science/mcstas/distinfo	Tue Dec  5 17:06:48 2017	(r455593)
+++ head/science/mcstas/distinfo	Tue Dec  5 17:32:37 2017	(r455594)
@@ -1,2 +1,3 @@
+TIMESTAMP = 1511649139
 SHA256 (mcstas-2.2a-src.tar.gz) = 7f8cca7ceea87e4b99c17ee16e4f1e6fd89712d2de1ba61ab97a2cd7ea0f8b9d
 SIZE (mcstas-2.2a-src.tar.gz) = 347943

Modified: head/science/mcstas/pkg-plist
==============================================================================
--- head/science/mcstas/pkg-plist	Tue Dec  5 17:06:48 2017	(r455593)
+++ head/science/mcstas/pkg-plist	Tue Dec  5 17:32:37 2017	(r455594)
@@ -1,60 +1,62 @@
-mcstas/%%PORTVERSION%%/LGPL
-mcstas/%%PORTVERSION%%/LICENSE.LIB
-mcstas/%%PORTVERSION%%/NOMENCLATURE
-mcstas/%%PORTVERSION%%/README
-mcstas/%%PORTVERSION%%/bin/mcformat
-mcstas/%%PORTVERSION%%/bin/mcstas
-mcstas/%%PORTVERSION%%/data/Al.nxs
-mcstas/%%PORTVERSION%%/data/Cu.nxs
-mcstas/%%PORTVERSION%%/doc/man/man1/mcformat-%%PORTVERSION%%.1
-mcstas/%%PORTVERSION%%/doc/man/man1/mcstas-%%PORTVERSION%%.1
-mcstas/%%PORTVERSION%%/environment
-mcstas/%%PORTVERSION%%/module
-mcstas/%%PORTVERSION%%/share/adapt_tree-lib.c
-mcstas/%%PORTVERSION%%/share/adapt_tree-lib.h
-mcstas/%%PORTVERSION%%/share/general.c
-mcstas/%%PORTVERSION%%/share/general.h
-mcstas/%%PORTVERSION%%/share/interoff-lib.c
-mcstas/%%PORTVERSION%%/share/interoff-lib.h
-mcstas/%%PORTVERSION%%/share/interpolation/array-utils.c
-mcstas/%%PORTVERSION%%/share/interpolation/array-utils.h
-mcstas/%%PORTVERSION%%/share/interpolation/natural/README
-mcstas/%%PORTVERSION%%/share/interpolation/natural/delaunay.c
-mcstas/%%PORTVERSION%%/share/interpolation/natural/delaunay.h
-mcstas/%%PORTVERSION%%/share/interpolation/natural/example.c
-mcstas/%%PORTVERSION%%/share/interpolation/natural/natural.c
-mcstas/%%PORTVERSION%%/share/interpolation/natural/natural.h
-mcstas/%%PORTVERSION%%/share/interpolation/natural/predicates.c
-mcstas/%%PORTVERSION%%/share/interpolation/natural/utils-extra.c
-mcstas/%%PORTVERSION%%/share/interpolation/natural/utils-extra.h
-mcstas/%%PORTVERSION%%/share/interpolation/natural/vertex.h
-mcstas/%%PORTVERSION%%/share/interpolation/nearest/README
-mcstas/%%PORTVERSION%%/share/interpolation/nearest/example.c
-mcstas/%%PORTVERSION%%/share/interpolation/nearest/kdtree.c
-mcstas/%%PORTVERSION%%/share/interpolation/nearest/kdtree.h
-mcstas/%%PORTVERSION%%/share/interpolation/nearest/vertex.h
-mcstas/%%PORTVERSION%%/share/interpolation/resample.c
-mcstas/%%PORTVERSION%%/share/interpolation/resample.h
-mcstas/%%PORTVERSION%%/share/intersection.c
-mcstas/%%PORTVERSION%%/share/intersection.h
-mcstas/%%PORTVERSION%%/share/mccode-r.c
-mcstas/%%PORTVERSION%%/share/mccode-r.h
-mcstas/%%PORTVERSION%%/share/mcstas-r.c
-mcstas/%%PORTVERSION%%/share/mcstas-r.h
-mcstas/%%PORTVERSION%%/share/nxslib/README.TXT
-mcstas/%%PORTVERSION%%/share/nxslib/nxs.c
-mcstas/%%PORTVERSION%%/share/nxslib/nxs.h
-mcstas/%%PORTVERSION%%/share/nxslib/sgclib.c
-mcstas/%%PORTVERSION%%/share/nxslib/sgfind.c
-mcstas/%%PORTVERSION%%/share/nxslib/sghkl.c
-mcstas/%%PORTVERSION%%/share/nxslib/sginfo.h
-mcstas/%%PORTVERSION%%/share/nxslib/sgio.c
-mcstas/%%PORTVERSION%%/share/nxslib/sgsi.c
-mcstas/%%PORTVERSION%%/share/pol-lib.c
-mcstas/%%PORTVERSION%%/share/pol-lib.h
-mcstas/%%PORTVERSION%%/share/read_table-lib.c
-mcstas/%%PORTVERSION%%/share/read_table-lib.h
-mcstas/%%PORTVERSION%%/share/ref-lib.c
-mcstas/%%PORTVERSION%%/share/ref-lib.h
-mcstas/%%PORTVERSION%%/share/vitess-lib.c
-mcstas/%%PORTVERSION%%/share/vitess-lib.h
+mcstas/%%DISTVERSION%%/LGPL
+mcstas/%%DISTVERSION%%/LICENSE.LIB
+mcstas/%%DISTVERSION%%/NOMENCLATURE
+mcstas/%%DISTVERSION%%/README
+mcstas/%%DISTVERSION%%/bin/mcformat
+mcstas/%%DISTVERSION%%/bin/mcstas
+mcstas/%%DISTVERSION%%/data/Al.nxs
+mcstas/%%DISTVERSION%%/data/Cu.nxs
+mcstas/%%DISTVERSION%%/doc/man/man1/mcformat-%%DISTVERSION%%.1.gz
+mcstas/%%DISTVERSION%%/doc/man/man1/mcstas-%%DISTVERSION%%.1.gz
+mcstas/%%DISTVERSION%%/environment
+mcstas/%%DISTVERSION%%/module
+mcstas/%%DISTVERSION%%/share/adapt_tree-lib.c
+mcstas/%%DISTVERSION%%/share/adapt_tree-lib.h
+mcstas/%%DISTVERSION%%/share/general.c
+mcstas/%%DISTVERSION%%/share/general.h
+mcstas/%%DISTVERSION%%/share/interoff-lib.c
+mcstas/%%DISTVERSION%%/share/interoff-lib.h
+mcstas/%%DISTVERSION%%/share/interpolation/array-utils.c
+mcstas/%%DISTVERSION%%/share/interpolation/array-utils.h
+mcstas/%%DISTVERSION%%/share/interpolation/natural/README
+mcstas/%%DISTVERSION%%/share/interpolation/natural/delaunay.c
+mcstas/%%DISTVERSION%%/share/interpolation/natural/delaunay.h
+mcstas/%%DISTVERSION%%/share/interpolation/natural/example.c
+mcstas/%%DISTVERSION%%/share/interpolation/natural/natural.c
+mcstas/%%DISTVERSION%%/share/interpolation/natural/natural.h
+mcstas/%%DISTVERSION%%/share/interpolation/natural/predicates.c
+mcstas/%%DISTVERSION%%/share/interpolation/natural/utils-extra.c
+mcstas/%%DISTVERSION%%/share/interpolation/natural/utils-extra.h
+mcstas/%%DISTVERSION%%/share/interpolation/natural/vertex.h
+mcstas/%%DISTVERSION%%/share/interpolation/nearest/README
+mcstas/%%DISTVERSION%%/share/interpolation/nearest/example.c
+mcstas/%%DISTVERSION%%/share/interpolation/nearest/kdtree.c
+mcstas/%%DISTVERSION%%/share/interpolation/nearest/kdtree.h
+mcstas/%%DISTVERSION%%/share/interpolation/nearest/vertex.h
+mcstas/%%DISTVERSION%%/share/interpolation/resample.c
+mcstas/%%DISTVERSION%%/share/interpolation/resample.h
+mcstas/%%DISTVERSION%%/share/intersection.c
+mcstas/%%DISTVERSION%%/share/intersection.h
+mcstas/%%DISTVERSION%%/share/mccode-r.c
+mcstas/%%DISTVERSION%%/share/mccode-r.h
+mcstas/%%DISTVERSION%%/share/mcstas-r.c
+mcstas/%%DISTVERSION%%/share/mcstas-r.h
+mcstas/%%DISTVERSION%%/share/nxslib/README.TXT
+mcstas/%%DISTVERSION%%/share/nxslib/nxs.c
+mcstas/%%DISTVERSION%%/share/nxslib/nxs.h
+mcstas/%%DISTVERSION%%/share/nxslib/sgclib.c
+mcstas/%%DISTVERSION%%/share/nxslib/sgfind.c
+mcstas/%%DISTVERSION%%/share/nxslib/sghkl.c
+mcstas/%%DISTVERSION%%/share/nxslib/sginfo.h
+mcstas/%%DISTVERSION%%/share/nxslib/sgio.c
+mcstas/%%DISTVERSION%%/share/nxslib/sgsi.c
+mcstas/%%DISTVERSION%%/share/pol-lib.c
+mcstas/%%DISTVERSION%%/share/pol-lib.h
+mcstas/%%DISTVERSION%%/share/read_table-lib.c
+mcstas/%%DISTVERSION%%/share/read_table-lib.h
+mcstas/%%DISTVERSION%%/share/ref-lib.c
+mcstas/%%DISTVERSION%%/share/ref-lib.h
+mcstas/%%DISTVERSION%%/share/vitess-lib.c
+mcstas/%%DISTVERSION%%/share/vitess-lib.h
+bin/mcstas
+bin/mcformat



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712051732.vB5HWbUA018987>