blob: 0fb8e874c3ace94838febd2cd6be5b9a6d0437dc (
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
|
# Created by: Lukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl>
# $FreeBSD$
PORTNAME= MathJax
PORTVERSION= 2.4.0
CATEGORIES= www
MAINTAINER= ports@FreeBSD.org
COMMENT= Cross-browser JavaScript display engine for mathematics
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
NO_BUILD= yes
NO_ARCH= yes
USE_GITHUB= yes
GH_ACCOUNT= mathjax
# 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}
@(cd ${STAGEDIR}${PREFIX}; ${FIND} -s ${WWWDIR_REL} -not -type d) >> ${TMPPLIST}
.include <bsd.port.mk>
|