Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 21:55:24 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336776 - head/biology/platon
Message-ID:  <201312172155.rBHLtOJ3064018@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Tue Dec 17 21:55:24 2013
New Revision: 336776
URL: http://svnweb.freebsd.org/changeset/ports/336776

Log:
  Version 2013.12.12, USES=fortran, staging.

Modified:
  head/biology/platon/Makefile

Modified: head/biology/platon/Makefile
==============================================================================
--- head/biology/platon/Makefile	Tue Dec 17 21:55:21 2013	(r336775)
+++ head/biology/platon/Makefile	Tue Dec 17 21:55:24 2013	(r336776)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	platon
-PORTVERSION=	2007.01.09
-PORTREVISION=	6
+PORTVERSION=	2013.12.12
 CATEGORIES=	biology
 MASTER_SITES=	http://www.cryst.chem.uu.nl/spek/xraysoft/unix/
 DISTNAME=	platon
@@ -16,8 +15,8 @@ COMMENT=	Tool for viewing molecular/crys
 # There is a charge of US$ 5000 for commercial users.
 RESTRICTED=	free for academic, US$ 5000 for commercial users
 
+USES=		fortran
 USE_XORG=	x11
-USE_FORTRAN=	yes
 
 # This port only has snapshot archive
 IGNOREFILES=	platon.tar.gz
@@ -27,13 +26,8 @@ SAMPLES=	azt.dat bucky.spf c476.spf c540
 TESTDATADIR=	ABSORB_EXAMPLE ABSTOMPA_EXAMPLE ABSTOMPA_TEST ADDSYM_EXAMPLE \
 		ASYM_EXAMPLE MULABS_EXAMPLE PSICOR_EXAMPLE SQUEEZE_EXAMPLE
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "alpha"
-BROKEN=	/usr/libexec/elf/ld: platon.o: .got subsegment exceeds 64K (size 88552)
-.endif
-
 pre-patch:
 	(cd ${WRKDIR}/${DISTNAME} ; ${GUNZIP_CMD} platon.f.gz xdrvr.c.gz)
 
@@ -41,29 +35,22 @@ post-patch:
 	${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
 	${REINPLACE_CMD} -e "s+%%LOCALBASE%%+${LOCALBASE}+"  ${WRKSRC}/Makefile
 
-pre-install:
-	${STRIP_CMD} ${WRKDIR}/${DISTNAME}/platon
-	${RM} -f ${PREFIX}/bin/pluton
-	${RM} -rf ${PREFIX}/share/doc/platon
-	${MKDIR} ${PREFIX}/share/doc/platon
-	${RM} -rf ${PREFIX}/share/doc/platon/TEST
-	${MKDIR} ${PREFIX}/share/doc/platon/TEST
-
 do-install:
-	${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/platon ${PREFIX}/bin
-	${LN} -s ${PREFIX}/bin/platon ${PREFIX}/bin/pluton
-	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README* \
-		${PREFIX}/share/doc/platon
-	for file in ${SAMPLES} ; do \
-		${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/$${file} \
-			${PREFIX}/share/doc/platon ; \
-	done
+	${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/platon \
+		${STAGEDIR}${PREFIX}/bin
+	${LN} -s platon ${STAGEDIR}${PREFIX}/bin/pluton
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README* ${STAGEDIR}${DOCSDIR}
+.for f in ${SAMPLES}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/$f ${STAGEDIR}${DOCSDIR}
+.endfor
 	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/platon_html.tar.gz \
-		${PREFIX}/share/doc/platon
-	for dirs in ${TESTDATADIR} ; do \
-		${MKDIR} ${PREFIX}/share/doc/platon/TEST/$${dirs} && \
-		${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/TEST/$${dirs}/* \
-			${PREFIX}/share/doc/platon/TEST/$${dirs} ; \
-	done
+		${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/TEST
+.for d in ${TESTDATADIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/TEST/$d
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/TEST/$d/* \
+		${STAGEDIR}${DOCSDIR}/TEST/$d
+.endfor
 
 .include <bsd.port.post.mk>



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