dev-libs/mathjax: Bump to 2.7.0
authorMark Wright <gienah@gentoo.org>
Fri, 2 Dec 2016 01:01:26 +0000 (12:01 +1100)
committerMark Wright <gienah@gentoo.org>
Fri, 2 Dec 2016 01:01:26 +0000 (12:01 +1100)
Package-Manager: portage-2.3.2

dev-libs/mathjax/Manifest
dev-libs/mathjax/mathjax-2.7.0.ebuild [new file with mode: 0644]

index c53d25df19cf38521dce24d81143d492c4b6675b..0af2911274a54088e6adcc708976afec1cf41ad8 100644 (file)
@@ -1,3 +1,4 @@
 DIST mathjax-2.2.tar.gz 8974100 SHA256 7879b59d2992bc31cda0d8b9d4f8fb47d4435f3129e421be46cc6d3136ed7449 SHA512 11987a959a7b154ea8df4ad93ce6193eed930affcfbfd2ba3fd965356c3ea957ef73a3ea6830a841bbe81f64ed0d9a78ab9fd74d0cbf011671b7d174cdc1f80c WHIRLPOOL 5bfba913fe1d768561c52154b714791afd8721673c2b404e3f4dd2b0c18855843521baf6ac534bb07826d475f83e81b4131e218d2e359f329b9cc8f143e40899
 DIST mathjax-2.4.0.tar.gz 23048567 SHA256 cd7175e1e352793942a976bf40692b954b5169bd28533921a8a8dd4ec865d855 SHA512 1f1cd590d0d584e38a51920e1d92e7dd1e0b8a0660b1ad29b522a5ced4d6c1f7d00074500d726aeee04c04f10c963944d1ef6aa2a662d7b53df609f9270b8de0 WHIRLPOOL 0b9dc53d1070a587261e770fe16a118171b40fa4d5de88a580726c1b9181d6d264c936eb68721798610e7d15a69c861d4b0454566ea1072a541c80a4bd5b6093
 DIST mathjax-2.5.3.tar.gz 23257294 SHA256 d24fcd6e66db4d79177513fbd25be9b75bff30f2a379199e8a05d5051fed5df3 SHA512 007b3d4e7d4224746ea8996838f6d208ee6dd04a6c2e3dc38b6e7ad83421732d4f5c5b9b6714183d0a25a46fdc1a9cd73a6ca769f29dbe3f36c79a5ca0ee1178 WHIRLPOOL a25f492d649dca6a0fe99602d8aecbf8538aef5bec56fd41b72208f68deac733f3e6ca109b2eb351c1d3ee3de6ed8b75eb3724b85cae8f717a6ac78b788fea96
+DIST mathjax-2.7.0.tar.gz 24594403 SHA256 4944dd3995417c7692b64462698054760d38ff72175f66e2f2a007c5031d5927 SHA512 2a7c2b4a4991485c18f78dda4115da05a31c1a2d952c403726e99d22fd26f166298199238ad482e53b63b5414be687f325b586f5ebe4e2d552447c929415b350 WHIRLPOOL ba8467e31b21c7fa5503b91d578bd7c8b85182221f3c19ad1535dcbfab89e72c2ed83b8a796982865062efd44cd495f54e00975c2a87e6a4d1fe96f2e9690bab
diff --git a/dev-libs/mathjax/mathjax-2.7.0.ebuild b/dev-libs/mathjax/mathjax-2.7.0.ebuild
new file mode 100644 (file)
index 0000000..0878d5f
--- /dev/null
@@ -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
+}