1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils vcs-clean
8 DESCRIPTION="JavaScript display engine for LaTeX, MathML and AsciiMath"
9 HOMEPAGE="https://www.mathjax.org/"
10 SRC_URI="https://github.com/mathjax/MathJax/archive/${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="amd64 arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
17 RESTRICT="binchecks strip"
19 S=${WORKDIR}/MathJax-${PV}
22 # web server config file - should we really do this?
24 Alias /MathJax/ ${EPREFIX}${webinstalldir}/
25 Alias /mathjax/ ${EPREFIX}${webinstalldir}/
27 <Directory ${EPREFIX}${webinstalldir}>
42 local DOCS=( README* )
43 use doc && local HTML_DOCS=( docs/html/* )
46 insinto /usr/share/${PN}/examples
49 rm -r test docs LICENSE README* || die
51 webinstalldir=/usr/share/${PN}
52 insinto ${webinstalldir}
55 make_webconf MathJax.conf
56 insinto /etc/httpd/conf.d