aboutsummaryrefslogtreecommitdiffstats
path: root/www/mathjax/Makefile
blob: 0aa87b41d61e6789c6a612e8a1676ad116f7d20f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Created by: Lukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl>
# $FreeBSD$

PORTNAME=   MathJax
PORTVERSION=    2.3
CATEGORIES= www

MAINTAINER= cs@FreeBSD.org
COMMENT=    Cross-browser JavaScript display engine for mathematics

NO_BUILD=   yes
USE_GITHUB= yes
GH_ACCOUNT= mathjax
GH_TAGNAME= v${PORTVERSION}

WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${PORTNAME}-705548f

# Changing permissions of 30k files with find -exec (COPYTREE) is way
# too slow.
do-install:
    ${MKDIR} ${STAGEDIR}${WWWDIR}
    (cd ${WRKSRC} && \
        ${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>