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: Fri, 10 Jan 2020 08:45:33
Message-Id: 1578645796.c6e861e430f795dd862fe05fed3f93ef2ca298a9.gienah@gentoo
1 commit: c6e861e430f795dd862fe05fed3f93ef2ca298a9
2 Author: Mark Wright <gienah <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 10 03:12:28 2020 +0000
4 Commit: Mark Wright <gienah <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 10 08:43:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6e861e4
7
8 dev-libs/mathjax: Bump to 2.7.7, fix USE=doc
9
10 Thanks to Arfrever Frehtes Taifersar Arahesis for reporting.
11
12 Closes: https://bugs.gentoo.org/show_bug.cgi?id=526128
13 Package-Manager: Portage-2.3.84, Repoman-2.3.20
14 Signed-off-by: Mark Wright <gienah <AT> gentoo.org>
15
16 dev-libs/mathjax/Manifest | 1 +
17 dev-libs/mathjax/mathjax-2.7.7.ebuild | 64 +++++++++++++++++++++++++++++++++++
18 2 files changed, 65 insertions(+)
19
20 diff --git a/dev-libs/mathjax/Manifest b/dev-libs/mathjax/Manifest
21 index 60e9420aa42..ce20ad49d1e 100644
22 --- a/dev-libs/mathjax/Manifest
23 +++ b/dev-libs/mathjax/Manifest
24 @@ -1,2 +1,3 @@
25 DIST mathjax-2.7.0.tar.gz 24594403 BLAKE2B 7cadfe7565a7ebba3569fb298a097f07081926b843a06c3c32447757eb0a5d463d654f20c42821010c81c59819bb14fdc5e84a39e87106bb6808bd6c9ca52bb7 SHA512 2a7c2b4a4991485c18f78dda4115da05a31c1a2d952c403726e99d22fd26f166298199238ad482e53b63b5414be687f325b586f5ebe4e2d552447c929415b350
26 DIST mathjax-2.7.4.tar.gz 25355532 BLAKE2B 0bed5224356757c64989de8b9355f5c2505f1fa951456c52caf1cc0a9b5a864633ce5299cc9b67b1e5c743e39bcb6aee787a76d6871fc998b614d62e12499f6f SHA512 cddc4c64c188620307f0ede3b0bc7ba071f78702ba6315426d8c83129543a6b81a3a9a115f88017e23b5094b7aefd934c39aeec9688419830e33f9fd0fb1de7e
27 +DIST mathjax-2.7.7.tar.gz 25347766 BLAKE2B c1f11bc854c95888d7f04ee627094a2e297e7554b0380dab30c08e2c4405495df611b440da0efd1e6456150513e07fa4ef90808d2332f9fb83785c118228de18 SHA512 471bd22475827a13d79de7d335f3e51ace06dfc04f575e8829b4505f428949f1dbe58798635cb434ed02ae0cd3fd8d1d577196b4961365fbcb399cc075d3284f
28
29 diff --git a/dev-libs/mathjax/mathjax-2.7.7.ebuild b/dev-libs/mathjax/mathjax-2.7.7.ebuild
30 new file mode 100644
31 index 00000000000..85f1f957063
32 --- /dev/null
33 +++ b/dev-libs/mathjax/mathjax-2.7.7.ebuild
34 @@ -0,0 +1,64 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit vcs-clean
41 +
42 +DESCRIPTION="JavaScript display engine for LaTeX, MathML and AsciiMath"
43 +HOMEPAGE="http://www.mathjax.org/"
44 +SRC_URI="https://github.com/mathjax/MathJax/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="doc examples"
50 +
51 +RDEPEND="doc? ( app-doc/mathjax-docs:${SLOT} )"
52 +
53 +RESTRICT="binchecks strip"
54 +
55 +S=${WORKDIR}/MathJax-${PV}
56 +
57 +make_webconf() {
58 + # web server config file - should we really do this?
59 + cat > $1 <<-EOF
60 + Alias /MathJax/ ${EPREFIX}${webinstalldir}/
61 + Alias /mathjax/ ${EPREFIX}${webinstalldir}/
62 +
63 + <Directory ${EPREFIX}${webinstalldir}>
64 + Options None
65 + AllowOverride None
66 + Order allow,deny
67 + Allow from all
68 + </Directory>
69 + EOF
70 +}
71 +
72 +src_prepare() {
73 + default
74 + egit_clean
75 +}
76 +
77 +src_install() {
78 + local DOCS=( README.md )
79 + if use doc; then
80 + dodir /usr/share/doc/${P}
81 + dosym ../${PN}-docs-${SLOT}/html /usr/share/doc/${P}/html
82 + fi
83 +
84 + default
85 + if use examples; then
86 + insinto /usr/share/${PN}/examples
87 + doins -r test/*
88 + fi
89 + rm -r test docs LICENSE README.md || die
90 +
91 + webinstalldir=/usr/share/${PN}
92 + insinto ${webinstalldir}
93 + doins -r *
94 +
95 + make_webconf MathJax.conf
96 + insinto /etc/httpd/conf.d
97 + doins MathJax.conf
98 +}