Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2014 03:17:36 +0000 (UTC)
From:      Stephen Montgomery-Smith <stephen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r367322 - head/math/sage
Message-ID:  <201409050317.s853HaHw031194@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: stephen
Date: Fri Sep  5 03:17:36 2014
New Revision: 367322
URL: http://svnweb.freebsd.org/changeset/ports/367322
QAT: https://qat.redports.org/buildarchive/r367322/

Log:
  - Correct where SAGE_ROOT was incorrectly prefixed by STAGEDIR in
    ${PREFIX}/bin/sage.
  - Bump portrevision.
  
  Pointed out by:	Robert.Burmeister@UToledo.edu

Modified:
  head/math/sage/Makefile

Modified: head/math/sage/Makefile
==============================================================================
--- head/math/sage/Makefile	Fri Sep  5 02:20:05 2014	(r367321)
+++ head/math/sage/Makefile	Fri Sep  5 03:17:36 2014	(r367322)
@@ -3,7 +3,7 @@
 
 PORTNAME=	sage
 PORTVERSION=	6.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	math
 MASTER_SITES=	http://boxen.math.washington.edu/home/sagemath/sage-mirror/src/ \
 		http://mirrors.xmission.com/sage/src/ \
@@ -108,24 +108,25 @@ check regression-test test: build
 	cd ${WRKSRC} && ${SETENV} DOT_SAGE=${WRKSRC}/tmp/.sage ./sage -testall
 	${RM} -f ${WRKSRC}/python*.core
 
-INSTALL_SAGE_DIR=	${STAGEDIR}${PREFIX}/${PORTNAME}-${PORTVERSION}
+INSTALL_SAGE_DIR=	${PREFIX}/${PORTNAME}-${PORTVERSION}
+STAGED_SAGE_DIR=	${STAGEDIR}${INSTALL_SAGE_DIR}
 do-install:
 	cd ${WRKDIR} && ${FIND} -s ${WRKSRC} | \
 		${GREP} -v '^${WRKSRC}/upstream/' | \
 		${GREP} -v '^${WRKSRC}/tmp' | \
 		${SED} -e 's#${WRKDIR}/##' | \
 		${CPIO} -pmud -R ${BINOWN}:${BINGRP} ${STAGEDIR}${PREFIX}
-	${ECHO_CMD} | ${SETENV} DOT_SAGE=${INSTALL_SAGE_DIR}/tmp/.sage ${INSTALL_SAGE_DIR}/sage
-	${RM} -rf ${INSTALL_SAGE_DIR}/tmp/.sage
+	${ECHO_CMD} | ${SETENV} DOT_SAGE=${STAGED_SAGE_DIR}/tmp/.sage ${STAGED_SAGE_DIR}/sage
+	${RM} -rf ${STAGED_SAGE_DIR}/tmp/.sage
 	${SED} -e "s+#SAGE_ROOT.*+SAGE_ROOT=${INSTALL_SAGE_DIR}+" ${WRKSRC}/sage > ${STAGEDIR}${PREFIX}/bin/sage
 	${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/bin/sage
 
 post-install:
-	@${FIND} -s ${INSTALL_SAGE_DIR} -not -type d | \
+	@${FIND} -s ${STAGED_SAGE_DIR} -not -type d | \
 		${SED} -e 's#${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
-	@${FIND} -s ${INSTALL_SAGE_DIR} -type d -empty | \
+	@${FIND} -s ${STAGED_SAGE_DIR} -type d -empty | \
 		${SED} -e 's#${STAGEDIR}${PREFIX}/#@exec ${MKDIR} %D/#' >> ${TMPPLIST}
-	@${FIND} -s ${INSTALL_SAGE_DIR} -type d -depth | \
+	@${FIND} -s ${STAGED_SAGE_DIR} -type d -depth | \
 		${SED} -e 's#${STAGEDIR}${PREFIX}/#@dirrm #' >> ${TMPPLIST}
 
 .include <bsd.port.pre.mk>



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