diff options
author | Mark Wright <gienah@gentoo.org> | 2016-12-02 12:01:26 +1100 |
---|---|---|
committer | Mark Wright <gienah@gentoo.org> | 2016-12-02 12:01:26 +1100 |
commit | a9ddc2a88d224e26913f56428a92ca3000df35d6 (patch) | |
tree | c45149993e5bb4e9a486224ba1f6b669feace09b /dev-libs/mathjax/mathjax-2.7.0.ebuild | |
parent | app-emulation/ganeti: Remove all versions except 2.15.2-r5 (diff) | |
download | gentoo-a9ddc2a88d224e26913f56428a92ca3000df35d6.tar.gz gentoo-a9ddc2a88d224e26913f56428a92ca3000df35d6.tar.bz2 gentoo-a9ddc2a88d224e26913f56428a92ca3000df35d6.zip |
dev-libs/mathjax: Bump to 2.7.0
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-libs/mathjax/mathjax-2.7.0.ebuild')
-rw-r--r-- | dev-libs/mathjax/mathjax-2.7.0.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-libs/mathjax/mathjax-2.7.0.ebuild b/dev-libs/mathjax/mathjax-2.7.0.ebuild new file mode 100644 index 000000000000..0878d5fc2603 --- /dev/null +++ b/dev-libs/mathjax/mathjax-2.7.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 ~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}/ + + <Directory ${EPREFIX}${webinstalldir}> + Options None + AllowOverride None + Order allow,deny + Allow from all + </Directory> + 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 +} |