aboutsummaryrefslogtreecommitdiff
path: root/biology/psi88
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2013-06-19 19:54:13 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2013-06-19 19:54:13 +0000
commit75e93c8196082f5dba3b7e42241dd6e88d42882c (patch)
tree9ae1b5f0863fd1abd1ab55a16da29b2ffc6c6b74 /biology/psi88
parent0c61d2954c7ec988719977ec73edaac07353d38c (diff)
downloadports-75e93c8196082f5dba3b7e42241dd6e88d42882c.tar.gz
ports-75e93c8196082f5dba3b7e42241dd6e88d42882c.zip
Notes
Diffstat (limited to 'biology/psi88')
-rw-r--r--biology/psi88/Makefile29
-rw-r--r--biology/psi88/pkg-plist30
2 files changed, 17 insertions, 42 deletions
diff --git a/biology/psi88/Makefile b/biology/psi88/Makefile
index 462d17a122d9..fa1f901c4897 100644
--- a/biology/psi88/Makefile
+++ b/biology/psi88/Makefile
@@ -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>
diff --git a/biology/psi88/pkg-plist b/biology/psi88/pkg-plist
deleted file mode 100644
index dc8966983621..000000000000
--- a/biology/psi88/pkg-plist
+++ /dev/null
@@ -1,30 +0,0 @@
-bin/PSI1
-bin/PSICON
-bin/PSI2CT
-bin/PSI2HP
-bin/PSI2PS
-bin/PSI2
-bin/PREPLOT
-bin/preplot
-bin/rpsi1
-bin/rpsi2
-bin/rpsicon
-%%PORTDOCS%%%%DOCSDIR%%/psi88.doc
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/examples/ad634a.psi1
-%%PORTDOCS%%%%DOCSDIR%%/examples/ad634a.psi2
-%%PORTDOCS%%%%DOCSDIR%%/examples/ad634a.psicon
-%%PORTDOCS%%%%DOCSDIR%%/examples/ad635a.psi1
-%%PORTDOCS%%%%DOCSDIR%%/examples/ad635a.psi2
-%%PORTDOCS%%%%DOCSDIR%%/examples/ad635a.psicon
-%%PORTDOCS%%%%DOCSDIR%%/examples/ad636a.psi1
-%%PORTDOCS%%%%DOCSDIR%%/examples/ad636a.psi2
-%%PORTDOCS%%%%DOCSDIR%%/examples/ad636a.psicon
-%%PORTDOCS%%%%DOCSDIR%%/examples/ch3cl.psi1
-%%PORTDOCS%%%%DOCSDIR%%/examples/ch3cl.psi2
-%%PORTDOCS%%%%DOCSDIR%%/examples/ch3cl.psicon
-%%PORTDOCS%%%%DOCSDIR%%/examples/test.psi1
-%%PORTDOCS%%%%DOCSDIR%%/examples/test.psi2
-%%PORTDOCS%%%%DOCSDIR%%/examples/test.psicon
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
-%%PORTDOCS%%@dirrm %%DOCSDIR%%