Сравнение mathjax-2.7.7 с mathjax-3.2.2-r1

/usr/portage/dev-libs/mathjax/mathjax-3.2.2-r1.ebuild 2023-10-09 14:52:29.536368351 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit vcs-clean
7 7

  
8 8
DESCRIPTION="JavaScript display engine for LaTeX, MathML and AsciiMath"
9 9
HOMEPAGE="https://www.mathjax.org/"
10 10
SRC_URI="https://github.com/mathjax/MathJax/archive/${PV}.tar.gz -> ${P}.tar.gz"
11
S="${WORKDIR}"/MathJax-${PV}
11
S="${WORKDIR}/MathJax-${PV}"
12 12

  
13 13
LICENSE="Apache-2.0"
14 14
SLOT="0"
15 15
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
16
IUSE="doc examples"
16
IUSE="doc"
17 17

  
18
RDEPEND="doc? ( app-doc/mathjax-docs:${SLOT} )"
19

  
20
RESTRICT="binchecks strip"
21

  
22
make_webconf() {
23
	# web server config file - should we really do this?
24
	cat > $1 <<-EOF
25
		Alias /MathJax/ ${EPREFIX}${webinstalldir}/
26
		Alias /mathjax/ ${EPREFIX}${webinstalldir}/
27

  
28
		<Directory ${EPREFIX}${webinstalldir}>
29
			Options None
30
			AllowOverride None
31
			Order allow,deny
32
			Allow from all
33
		</Directory>
34
	EOF
35
}
18
RDEPEND="doc? ( ~app-doc/mathjax-docs-${PV} )"
36 19

  
37 20
src_prepare() {
38 21
	default
......
40 23
}
41 24

  
42 25
src_install() {
43
	local DOCS=( README.md )
26
	local DOCS=( CONTRIBUTING.md README.md )
27
	default
28

  
44 29
	if use doc; then
45
		dodir /usr/share/doc/${P}
46
		dosym ../${PN}-docs-${SLOT}/html /usr/share/doc/${P}/html
47
	fi
30
		# We need best_version to determine the right revision for
31
		# app-doc/mathjax-docs.
32
		local docsPF=$(best_version app-doc/mathjax-docs)
48 33

  
49
	default
50
	if use examples; then
51
		insinto /usr/share/${PN}/examples
52
		doins -r test/*
34
		# Strip the (known) category from the best_version output.
35
		docsPF=${docsPF#app-doc/}
36

  
37
		dosym "../${docsPF}/html" "/usr/share/doc/${PF}/html"
53 38
	fi
54
	rm -r test docs LICENSE README.md || die
55 39

  
56
	webinstalldir=/usr/share/${PN}
57
	insinto ${webinstalldir}
58
	doins -r *
59

  
60
	make_webconf MathJax.conf
61
	insinto /etc/httpd/conf.d
62
	doins MathJax.conf
40
	insinto "/usr/share/${PN}"
41

  
42
	# Start the install beneath the "es5" directory for compatibility with
43
	# Arch, Solus, and Void Linux, but leave a fake "es5" symlink for
44
	# packages (like doxygen) that expect it.
45
	doins -r es5/*
46
	dosym -r "/usr/share/${PN}" "/usr/share/${PN}/es5"
63 47
}
Спасибо!