aboutsummaryrefslogtreecommitdiff
path: root/math/sage
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2014-09-05 03:17:36 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2014-09-05 03:17:36 +0000
commitd706fd023eaa73ca4f659e6a2704f50de3875fbc (patch)
treea0aae9674786a28fe7acdfd76288ec10eeffb58e /math/sage
parent06b1bd7a855bac26807f2f42c4c0369ef4e650b1 (diff)
Notes
Diffstat (limited to 'math/sage')
-rw-r--r--math/sage/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/math/sage/Makefile b/math/sage/Makefile
index 261f4173140c..efecc019b6e4 100644
--- a/math/sage/Makefile
+++ b/math/sage/Makefile
@@ -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>