From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A3B7715808B for ; Thu, 15 Feb 2024 13:50:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 66600E2AA2; Thu, 15 Feb 2024 13:50:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 512A9E2A96 for ; Thu, 15 Feb 2024 13:50:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2D8D9342F94 for ; Thu, 15 Feb 2024 13:50:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8ABA313DB for ; Thu, 15 Feb 2024 13:50:54 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1708005003.3b5964f5819822fa8b8bf6d30802b06eb7976a2d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/mathjax/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/mathjax/mathjax-3.2.2-r2.ebuild X-VCS-Directories: dev-libs/mathjax/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3b5964f5819822fa8b8bf6d30802b06eb7976a2d X-VCS-Branch: master Date: Thu, 15 Feb 2024 13:50:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 308e7bf9-47d9-4b6f-8251-32f2cbb74c53 X-Archives-Hash: 4a24808d34bb1aa45407536c8f1e224b commit: 3b5964f5819822fa8b8bf6d30802b06eb7976a2d Author: Eli Schwartz gmail com> AuthorDate: Wed Feb 14 20:45:21 2024 +0000 Commit: Sam James gentoo org> CommitDate: Thu Feb 15 13:50:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b5964f5 dev-libs/mathjax: add subslot Necessary for app-text/calibre to rebuild its javascript assets when the system mathjax changes. Closes: https://bugs.gentoo.org/916037 Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> dev-libs/mathjax/mathjax-3.2.2-r2.ebuild | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/dev-libs/mathjax/mathjax-3.2.2-r2.ebuild b/dev-libs/mathjax/mathjax-3.2.2-r2.ebuild new file mode 100644 index 000000000000..d207b55ab0dd --- /dev/null +++ b/dev-libs/mathjax/mathjax-3.2.2-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit vcs-clean + +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" +S="${WORKDIR}/MathJax-${PV}" + +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" +IUSE="doc" + +RDEPEND="doc? ( ~app-doc/mathjax-docs-${PV} )" + +src_prepare() { + default + egit_clean +} + +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 + # Arch, Solus, and Void Linux, but leave a fake "es5" symlink for + # packages (like doxygen) that expect it. + doins -r es5/* + dosym -r "/usr/share/${PN}" "/usr/share/${PN}/es5" +}