- Correct where SAGE_ROOT was incorrectly prefixed by STAGEDIR in
${PREFIX}/bin/sage. - Bump portrevision. Pointed out by: Robert.Burmeister@UToledo.edu
This commit is contained in:
parent
06b1bd7a85
commit
d706fd023e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367322
1 changed files with 8 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue