From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/mathjax/
Date: Thu, 15 Feb 2024 13:50:54 +0000 (UTC) [thread overview]
Message-ID: <1708005027.61a07b398daf65f210933fef08d7697bab56c97e.sam@gentoo> (raw)
commit: 61a07b398daf65f210933fef08d7697bab56c97e
Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Wed Feb 14 23:46:25 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 15 13:50:27 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61a07b39
dev-libs/mathjax: include USE=docs as part of the package (3.x)
Do not use a separated app-docs/mathjax-docs. It is impossible to get
correct: the symlink is generated using best_version, which applies at
build time but doesn't match the version at runtime, so having an -r1
breaks the package.
It also wasn't implemented correctly even if it could be gotten correct,
because the docs package is a build time dependency, not a runtime one.
To cap it off, this was introduced as a side effect of updating the
package to 3.x, in an attempt to solve the broken symlink in the 2.x
package. But it never referenced bug 867370 in the commit message.
While we are at it, fix a flaw in the code merged from mathjax-docs,
which didn't implement python_check_deps.
Fixes: 46560543c9d48506feb83de473a7b0bd0298ae83
Bug: https://bugs.gentoo.org/837722
Closes: https://bugs.gentoo.org/867370
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/mathjax/Manifest | 1 +
dev-libs/mathjax/mathjax-3.2.2-r2.ebuild | 53 +++++++++++++++++++++++---------
2 files changed, 39 insertions(+), 15 deletions(-)
diff --git a/dev-libs/mathjax/Manifest b/dev-libs/mathjax/Manifest
index ee5cd6bb3f8e..8779b8b2d315 100644
--- a/dev-libs/mathjax/Manifest
+++ b/dev-libs/mathjax/Manifest
@@ -1,3 +1,4 @@
DIST mathjax-2.7.7.tar.gz 25347766 BLAKE2B c1f11bc854c95888d7f04ee627094a2e297e7554b0380dab30c08e2c4405495df611b440da0efd1e6456150513e07fa4ef90808d2332f9fb83785c118228de18 SHA512 471bd22475827a13d79de7d335f3e51ace06dfc04f575e8829b4505f428949f1dbe58798635cb434ed02ae0cd3fd8d1d577196b4961365fbcb399cc075d3284f
DIST mathjax-3.2.2.tar.gz 6191341 BLAKE2B 4884ad28ede1d3d6f6647e04c8a69185a53715db673d42935ea9ff3ea1756e0e478b1f19345a35902d2e5c01a312272a2fe96dd36871cd8c4f266bcf4fb56c72 SHA512 4dc80c9e24593c1fcf08f38bad5251025f1de364d5cf24dd2f4cee0d78917dd11187f6132b67a17ff190d0a1862b83eb6c6edf28f91e8e84e50cdf76537f6b20
DIST mathjax-docs-2.7.7.tar.gz 233452 BLAKE2B 280db6c794471d369a17161ad859dc73ddf1494af35114b69356aae41ea52d771f92b0b85ba82df8ed542039af152938f5fda71d752da4410ab183fe6a24ab81 SHA512 25fa97294ae153298d45b449d995c0402c481c6425ea4ebb38dcc509df741aed02d5469a520c8b793b8135b4140a6d1ad6688a42e3cb26004cfd7fcb838c32e6
+DIST mathjax-docs-3.2.2.tar.gz 227724 BLAKE2B 1b2d25073e4f141f5c832f1139e6bcfbdb15c039b820f3662d6fb261faebedac8ea72fb324d76389c35cd28cd41556689501d8795d7a426d735d4eaf88eb61ee SHA512 94167e58deb4f899d5c49a6b1efec24f57fff7aa497a019e9f775e251927c698b7c5598b88087c2964b8cb7238b73152dea01e091b8afaeab8979b396270d429
diff --git a/dev-libs/mathjax/mathjax-3.2.2-r2.ebuild b/dev-libs/mathjax/mathjax-3.2.2-r2.ebuild
index d207b55ab0dd..2948110ed70c 100644
--- a/dev-libs/mathjax/mathjax-3.2.2-r2.ebuild
+++ b/dev-libs/mathjax/mathjax-3.2.2-r2.ebuild
@@ -3,41 +3,64 @@
EAPI=8
-inherit vcs-clean
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+inherit python-any-r1 vcs-clean
+
+# MathJax-docs doesn't have releases, so this is the commit that was
+# current when mathjax-${PV} was released.
+DOCS_COMMIT="c4a733d6d0ced4242a4df1c46137d4be6b3aaaee"
DESCRIPTION="JavaScript display engine for LaTeX, MathML and AsciiMath"
HOMEPAGE="https://www.mathjax.org/"
-SRC_URI="https://github.com/mathjax/MathJax/archive/${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="
+ https://github.com/mathjax/MathJax/archive/${PV}.tar.gz -> ${P}.tar.gz
+ doc? ( https://github.com/mathjax/MathJax-docs/archive/${DOCS_COMMIT}.tar.gz -> ${PN}-docs-${PV}.tar.gz )
+"
S="${WORKDIR}/MathJax-${PV}"
+DOCS_S="${WORKDIR}/MathJax-docs-${DOCS_COMMIT}"
LICENSE="Apache-2.0"
# Some applications need to know which mathjax version they built against.
SLOT="0/${PV}"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
IUSE="doc"
-RDEPEND="doc? ( ~app-doc/mathjax-docs-${PV} )"
+BDEPEND="
+ doc? (
+ $(python_gen_any_dep '
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
+ ')
+ )
+"
+RDEPEND="!app-doc/mathjax-docs"
+
+python_check_deps() {
+ python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" &&
+ python_has_version "dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ if use doc; then
+ python-any-r1_pkg_setup
+ fi
+}
src_prepare() {
default
egit_clean
}
+src_compile() {
+ if use doc; then
+ build_sphinx "${DOCS_S}"
+ fi
+}
+
src_install() {
local DOCS=( CONTRIBUTING.md README.md )
default
- if use doc; then
- # We need best_version to determine the right revision for
- # app-doc/mathjax-docs.
- local docsPF=$(best_version app-doc/mathjax-docs)
-
- # Strip the (known) category from the best_version output.
- docsPF=${docsPF#app-doc/}
-
- dosym "../${docsPF}/html" "/usr/share/doc/${PF}/html"
- fi
-
insinto "/usr/share/${PN}"
# Start the install beneath the "es5" directory for compatibility with
next reply other threads:[~2024-02-15 13:50 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 13:50 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-24 15:09 [gentoo-commits] repo/gentoo:master commit in: dev-libs/mathjax/ Arthur Zamarin
2024-08-25 15:24 Andreas K. Hüttel
2024-08-20 15:45 Eli Schwartz
2024-03-22 4:03 Sam James
2024-03-22 4:03 Sam James
2024-02-19 4:04 Sam James
2024-02-15 13:50 Sam James
2024-02-15 13:50 Sam James
2024-02-15 13:50 Sam James
2024-02-15 13:50 Sam James
2023-09-30 18:22 Michael Orlitzky
2023-09-30 18:22 Michael Orlitzky
2023-08-31 3:11 Michael Orlitzky
2023-08-16 20:17 Michael Orlitzky
2022-09-22 7:45 Michał Górny
2022-02-27 23:09 Sam James
2022-02-27 20:07 Michał Górny
2022-02-27 16:51 Sam James
2022-02-27 16:48 Sam James
2022-02-27 16:38 Sam James
2022-02-27 12:29 Jakov Smolić
2022-02-14 8:35 Matt Turner
2022-01-30 13:32 James Le Cuirot
2021-11-18 8:10 Sam James
2021-11-18 5:36 Sam James
2021-11-14 20:35 Sam James
2021-11-14 3:43 Sam James
2021-09-06 0:18 Sam James
2021-09-02 0:01 Marek Szuba
2021-06-20 1:55 Sam James
2020-11-30 2:55 Sam James
2020-02-12 18:06 David Seifert
2020-01-10 8:45 Mark Wright
2019-02-04 20:16 Markus Meier
2018-12-29 9:10 Mikle Kolyada
2018-12-22 22:25 Thomas Deutschmann
2018-07-03 2:03 Mark Wright
2018-07-03 2:03 Mark Wright
2018-04-24 7:15 Mikle Kolyada
2018-04-22 1:35 Thomas Deutschmann
2018-04-18 12:00 Mikle Kolyada
2017-06-23 19:26 Alexis Ballier
2016-12-02 1:01 Mark Wright
2016-01-22 21:03 Justin Lecher
2015-09-07 15:58 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1708005027.61a07b398daf65f210933fef08d7697bab56c97e.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox