Gentoo Archives: gentoo-commits

From: Mark Wright <gienah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/mathjax/
Date: Tue, 03 Jul 2018 02:03:10
Message-Id: 1530583349.4cb53f7ed2eb54271af2d97c426c9375d795f6f9.gienah@gentoo
1 commit: 4cb53f7ed2eb54271af2d97c426c9375d795f6f9
2 Author: Mark Wright <gienah <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 3 02:02:29 2018 +0000
4 Commit: Mark Wright <gienah <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 3 02:02:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cb53f7e
7
8 dev-libs/mathjax: Bump to 2.7.4
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 dev-libs/mathjax/Manifest | 1 +
13 dev-libs/mathjax/mathjax-2.7.4.ebuild | 58 +++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/dev-libs/mathjax/Manifest b/dev-libs/mathjax/Manifest
17 index 496072083fa..60e9420aa42 100644
18 --- a/dev-libs/mathjax/Manifest
19 +++ b/dev-libs/mathjax/Manifest
20 @@ -1 +1,2 @@
21 DIST mathjax-2.7.0.tar.gz 24594403 BLAKE2B 7cadfe7565a7ebba3569fb298a097f07081926b843a06c3c32447757eb0a5d463d654f20c42821010c81c59819bb14fdc5e84a39e87106bb6808bd6c9ca52bb7 SHA512 2a7c2b4a4991485c18f78dda4115da05a31c1a2d952c403726e99d22fd26f166298199238ad482e53b63b5414be687f325b586f5ebe4e2d552447c929415b350
22 +DIST mathjax-2.7.4.tar.gz 25355532 BLAKE2B 0bed5224356757c64989de8b9355f5c2505f1fa951456c52caf1cc0a9b5a864633ce5299cc9b67b1e5c743e39bcb6aee787a76d6871fc998b614d62e12499f6f SHA512 cddc4c64c188620307f0ede3b0bc7ba071f78702ba6315426d8c83129543a6b81a3a9a115f88017e23b5094b7aefd934c39aeec9688419830e33f9fd0fb1de7e
23
24 diff --git a/dev-libs/mathjax/mathjax-2.7.4.ebuild b/dev-libs/mathjax/mathjax-2.7.4.ebuild
25 new file mode 100644
26 index 00000000000..5aaff104875
27 --- /dev/null
28 +++ b/dev-libs/mathjax/mathjax-2.7.4.ebuild
29 @@ -0,0 +1,58 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit eutils
36 +
37 +DESCRIPTION="JavaScript display engine for LaTeX, MathML and AsciiMath"
38 +HOMEPAGE="http://www.mathjax.org/"
39 +SRC_URI="https://github.com/mathjax/MathJax/archive/${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="Apache-2.0"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
44 +IUSE="doc examples"
45 +
46 +RESTRICT="binchecks strip"
47 +
48 +S=${WORKDIR}/MathJax-${PV}
49 +
50 +make_webconf() {
51 + # web server config file - should we really do this?
52 + cat > $1 <<-EOF
53 + Alias /MathJax/ ${EPREFIX}${webinstalldir}/
54 + Alias /mathjax/ ${EPREFIX}${webinstalldir}/
55 +
56 + <Directory ${EPREFIX}${webinstalldir}>
57 + Options None
58 + AllowOverride None
59 + Order allow,deny
60 + Allow from all
61 + </Directory>
62 + EOF
63 +}
64 +
65 +src_prepare() {
66 + default
67 + egit_clean
68 +}
69 +
70 +src_install() {
71 + local DOCS=( README* )
72 + use doc && local HTML_DOCS=( docs/html/* )
73 + default
74 + if use examples; then
75 + insinto /usr/share/${PN}/examples
76 + doins -r test/*
77 + fi
78 + rm -r test docs LICENSE README* || die
79 +
80 + webinstalldir=/usr/share/${PN}
81 + insinto ${webinstalldir}
82 + doins -r *
83 +
84 + make_webconf MathJax.conf
85 + insinto /etc/httpd/conf.d
86 + doins MathJax.conf
87 +}