Skip to content
Browse files

- Update to 2.2

- Support staging
- Support USE_GITHUB
- Remove indefinite article in COMMENT

PR:		ports/182874
Approved by:	maintainer timeout (40 days)
  • Loading branch information...
1 parent 054279b commit 4a84635875a78704e901134375ea5746aa3ca0cd @carlostrub carlostrub committed
Showing with 16 additions and 18 deletions.
  1. +14 −16 www/mathjax/Makefile
  2. +2 −2 www/mathjax/distinfo
View
30 www/mathjax/Makefile
@@ -2,32 +2,30 @@
# $FreeBSD$
PORTNAME= MathJax
-PORTVERSION= 2.0
-#PORTREVISION= 0
+PORTVERSION= 2.2
CATEGORIES= www
-MASTER_SITES= https://nodeload.github.com/mathjax/MathJax/tarball/v${PORTVERSION}-latest?dummy=/
MAINTAINER= lukasz.stelmach@iem.pw.edu.pl
-COMMENT= A cross-browser JavaScript display engine for mathematics
+COMMENT= Cross-browser JavaScript display engine for mathematics
-FETCH_BEFORE_ARGS= -o ${DISTNAME}${EXTRACT_SUFX}
+NO_BUILD= yes
+USE_GITHUB= yes
+GH_ACCOUNT= mathjax
+GH_TAGNAME= v${PORTVERSION}
-NO_BUILD= yes
-
-WRKSRC= ${WRKDIR}/mathjax-MathJax-07669ac
+WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${PORTNAME}-54280bb
# Changing permissions of 30k files with find -exec (COPYTREE) is way
# too slow.
-NO_STAGE= yes
do-install:
- ${MKDIR} ${WWWDIR}
+ ${MKDIR} ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC} && \
- ${FIND} -d . | ${CPIO} -dumpl ${WWWDIR} >/dev/null 2>&1)
- ${FIND} -d ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
- ${FIND} -d ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
- ${CHOWN} -R ${BINOWN}:${BINGRP} ${WWWDIR}
- @(cd ${PREFIX}; ${FIND} -s ${WWWDIR_REL} -not -type d) >> ${TMPPLIST}
- @(cd ${PREFIX}; ${FIND} -s -d ${WWWDIR_REL} -type d) \
+ ${FIND} -d . | ${CPIO} -dumpl ${STAGEDIR}${WWWDIR} >/dev/null 2>&1)
+ ${FIND} -d ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
+ ${FIND} -d ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
+ ${CHOWN} -R ${BINOWN}:${BINGRP} ${STAGEDIR}${WWWDIR}
+ @(cd ${STAGEDIR}${PREFIX}; ${FIND} -s ${WWWDIR_REL} -not -type d) >> ${TMPPLIST}
+ @(cd ${STAGEDIR}${PREFIX}; ${FIND} -s -d ${WWWDIR_REL} -type d) \
| ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST}
.include <bsd.port.mk>
View
4 www/mathjax/distinfo
@@ -1,2 +1,2 @@
-SHA256 (MathJax-2.0.tar.gz) = 01ad97362b9bac25420cbffd9d733d9abd3a750ba82b68063d4b2608c43a70ae
-SIZE (MathJax-2.0.tar.gz) = 9457775
+SHA256 (MathJax-2.2.tar.gz) = 3c01dc8c3fd6869311d45c15c348f7ad682aefa3ae03ccf201f9cad83e26ceb1
+SIZE (MathJax-2.2.tar.gz) = 8972964

0 comments on commit 4a84635

Please sign in to comment.
Something went wrong with that request. Please try again.