From f70601e0934acd62f6c5d06c5ede4cc607179514 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 7 Jul 2018 11:42:03 +0100 Subject: gentoo resync : 07.07.2018 --- dev-libs/mathjax/mathjax-2.7.4.ebuild | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 dev-libs/mathjax/mathjax-2.7.4.ebuild (limited to 'dev-libs/mathjax/mathjax-2.7.4.ebuild') diff --git a/dev-libs/mathjax/mathjax-2.7.4.ebuild b/dev-libs/mathjax/mathjax-2.7.4.ebuild new file mode 100644 index 000000000000..5aaff1048750 --- /dev/null +++ b/dev-libs/mathjax/mathjax-2.7.4.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +DESCRIPTION="JavaScript display engine for LaTeX, MathML and AsciiMath" +HOMEPAGE="http://www.mathjax.org/" +SRC_URI="https://github.com/mathjax/MathJax/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples" + +RESTRICT="binchecks strip" + +S=${WORKDIR}/MathJax-${PV} + +make_webconf() { + # web server config file - should we really do this? + cat > $1 <<-EOF + Alias /MathJax/ ${EPREFIX}${webinstalldir}/ + Alias /mathjax/ ${EPREFIX}${webinstalldir}/ + + + Options None + AllowOverride None + Order allow,deny + Allow from all + + EOF +} + +src_prepare() { + default + egit_clean +} + +src_install() { + local DOCS=( README* ) + use doc && local HTML_DOCS=( docs/html/* ) + default + if use examples; then + insinto /usr/share/${PN}/examples + doins -r test/* + fi + rm -r test docs LICENSE README* || die + + webinstalldir=/usr/share/${PN} + insinto ${webinstalldir} + doins -r * + + make_webconf MathJax.conf + insinto /etc/httpd/conf.d + doins MathJax.conf +} -- cgit v1.2.3