Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2013 19:54:14 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r321315 - head/biology/psi88
Message-ID:  <201306191954.r5JJsE6I051507@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Wed Jun 19 19:54:13 2013
New Revision: 321315
URL: http://svnweb.freebsd.org/changeset/ports/321315

Log:
  . NOPORTDOCS -> PORT_OPTIONS:MDOCS;
  . mute mdir commands and unmute install commands;
  . do not use mkdir for parent directories (mkdir implies "-p");
  . introduce EXAMPLE option (do not install examples to DOCSDIR);
  . bump PORTREVISION;
  . make use of PLIST_FILES, PORTDOCS and PORTEXAMPLES at Makefile;
  . get rid of pkg-plist;
  . use standard DOCSDIR and EXAMPLESDIR (instead of a PREFIX/foo/bar path);
  . trim Makefile headers.

Deleted:
  head/biology/psi88/pkg-plist
Modified:
  head/biology/psi88/Makefile

Modified: head/biology/psi88/Makefile
==============================================================================
--- head/biology/psi88/Makefile	Wed Jun 19 19:20:25 2013	(r321314)
+++ head/biology/psi88/Makefile	Wed Jun 19 19:54:13 2013	(r321315)
@@ -1,13 +1,9 @@
-# New ports collection makefile for:	Psi88
-# Date created:		1998-11-11
-# Whom:			Ryo MIYAMOTO
-#
+# Created by: Ryo MIYAMOTO
 # $FreeBSD$
-#
 
 PORTNAME=	psi88
 PORTVERSION=	1.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	biology
 MASTER_SITES=	http://www.ccl.net/cca/software/SOURCES/FORTRAN/psi88/
 DISTNAME=	${PORTNAME}
@@ -16,6 +12,13 @@ EXTRACT_SUFX=	.tar.Z
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Plotting wavefunctions (molecular orbitals) in 3D
 
+PLIST_FILES+=	bin/PSI1 bin/PSICON bin/PSI2CT bin/PSI2HP bin/PSI2PS bin/PSI2 \
+		bin/PREPLOT bin/preplot bin/rpsi1 bin/rpsi2 bin/rpsicon
+PORTDOCS=	README psi88.doc
+PORTEXAMPLES=	*
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 .include <bsd.port.pre.mk>
 
 USE_FORTRAN=	yes
@@ -35,12 +38,14 @@ post-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/rpsi1 ${PREFIX}/bin/
 	${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/rpsi2 ${PREFIX}/bin/
 	${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/rpsicon ${PREFIX}/bin/
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${PREFIX}/share/doc/psi88
-	${MKDIR} ${PREFIX}/share/doc/psi88/examples
-	@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README ${PREFIX}/share/doc/psi88
-	@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/psi88.doc ${PREFIX}/share/doc/psi88
-	@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/examples/* ${PREFIX}/share/doc/psi88/examples
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README ${DOCSDIR}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/psi88.doc ${DOCSDIR}
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/examples/* ${EXAMPLESDIR}
 .endif
 
 .include <bsd.port.post.mk>



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