From owner-svn-ports-head@freebsd.org Mon Oct 10 19:36:05 2016 Return-Path: Delivered-To: svn-ports-head@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 D288CC0CB67; Mon, 10 Oct 2016 19:36:05 +0000 (UTC) (envelope-from amdmi3@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 8A57022B; Mon, 10 Oct 2016 19:36:05 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9AJa43v034563; Mon, 10 Oct 2016 19:36:04 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9AJa465034562; Mon, 10 Oct 2016 19:36:04 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201610101936.u9AJa465034562@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 10 Oct 2016 19:36:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r423691 - head/cad/NASTRAN-95 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2016 19:36:05 -0000 Author: amdmi3 Date: Mon Oct 10 19:36:04 2016 New Revision: 423691 URL: https://svnweb.freebsd.org/changeset/ports/423691 Log: - Switch to options helpers Modified: head/cad/NASTRAN-95/Makefile Modified: head/cad/NASTRAN-95/Makefile ============================================================================== --- head/cad/NASTRAN-95/Makefile Mon Oct 10 19:34:10 2016 (r423690) +++ head/cad/NASTRAN-95/Makefile Mon Oct 10 19:36:04 2016 (r423691) @@ -10,9 +10,9 @@ MAINTAINER= ports@FreeBSD.org COMMENT= NASA Structural Analysis System LICENSE= NOSA -LICENSE_NAME= NASA OPEN SOURCE AGREEMENT VERSION 1.3 +LICENSE_NAME= NASA OPEN SOURCE AGREEMENT VERSION 1.3 LICENSE_FILE= ${FILESDIR}/NASTRAN95-license.txt -LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept USE_GITHUB= yes GH_ACCOUNT= twuerfl @@ -21,11 +21,13 @@ GH_TAGNAME= 0e77a84 USES= fortran gmake ALL_TARGET= # empty -INSTALL_TARGET=install-strip +INSTALL_TARGET= install-strip NASTHOME= ${PREFIX}/libexec/${PORTNAME} PLIST_SUB= NASTHOME=${NASTHOME} +OPTIONS_DEFINE= DOCS EXAMPLES + pre-build: @${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%FFLAGS%%+${FFLAGS}+g;' \ ${WRKSRC}/sb/Makefile \ @@ -47,16 +49,17 @@ do-install: @${MKDIR} ${STAGEDIR}${NASTHOME}/bin ${INSTALL} ${WRKSRC}/sb/nastran.exe ${STAGEDIR}${NASTHOME}/bin/nastrn.exe ${INSTALL} ${WRKSRC}/utility/chkfil.exe ${STAGEDIR}${NASTHOME}/bin/ - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/*.pdf ${STAGEDIR}${DOCSDIR} -.for dir in rf - (cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${NASTHOME}) -.endfor + (cd ${WRKSRC} && ${COPYTREE_SHARE} "rf" ${STAGEDIR}${NASTHOME}) @${MKDIR} ${STAGEDIR}${NASTHOME}/um/ ${INSTALL} ${WRKSRC}/um/nasthelp.exe ${STAGEDIR}${NASTHOME}/um/ ${INSTALL_DATA} ${WRKSRC}/um/*.TXT ${STAGEDIR}${NASTHOME}/um/ -.for dir in demoout inp test - (cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${EXAMPLESDIR}) -.endfor + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/*.pdf ${STAGEDIR}${DOCSDIR} + +do-install-EXAMPLES-on: + (cd ${WRKSRC} && ${COPYTREE_SHARE} "demoout inp test" ${STAGEDIR}${EXAMPLESDIR}) + .include