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 3903C158086 for ; Tue, 23 Nov 2021 17:26:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A424E0894; Tue, 23 Nov 2021 17:26:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 72059E0894 for ; Tue, 23 Nov 2021 17:26:48 +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 83864342E96 for ; Tue, 23 Nov 2021 17:26:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A69B21C8 for ; Tue, 23 Nov 2021 17:26:45 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1637688395.27f86cb2820eb8e95b105a3273b24cd4ae7972a4.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/mathtex/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/mathtex/Manifest app-text/mathtex/mathtex-1.05.ebuild X-VCS-Directories: app-text/mathtex/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 27f86cb2820eb8e95b105a3273b24cd4ae7972a4 X-VCS-Branch: master Date: Tue, 23 Nov 2021 17:26:45 +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: a9971cdf-c856-4269-8004-dd88384323a5 X-Archives-Hash: c88bc9e455bbaca29fd5156388ef7fe7 commit: 27f86cb2820eb8e95b105a3273b24cd4ae7972a4 Author: Marek Szuba gentoo org> AuthorDate: Tue Nov 23 17:23:19 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Tue Nov 23 17:26:35 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27f86cb2 app-text/mathtex: add 1.05 EAPI 5 -> 8, point to CTAN in both HOMEPAGE (the original one is gone) and SRC_URI (instead of the dreaded mirror:gentoo). Fun fact, this version was released in 2014! Gotta love m-n packages. Bug: https://bugs.gentoo.org/826390 Signed-off-by: Marek Szuba gentoo.org> app-text/mathtex/Manifest | 1 + app-text/mathtex/mathtex-1.05.ebuild | 45 ++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/app-text/mathtex/Manifest b/app-text/mathtex/Manifest index b75bc4c44d79..7550548f0e41 100644 --- a/app-text/mathtex/Manifest +++ b/app-text/mathtex/Manifest @@ -1 +1,2 @@ DIST mathtex-1.04.zip 148443 BLAKE2B 6632d30536428f6f33fc13a2b5b38651f2ab7a938381166b79c009ab3d95788fc69e8ed824dae64dca00d32bb79ccd00a73b772f9aebc813d54fd6e0f18839f4 SHA512 4b299a6dc503a01d6be3182ad982e38c0b6d926f09a09bd5169f8ad2c947c020ad532b15146379b4bc2158cfceec4cb4a0b7bf902423e0a8ad9b0b0190a99601 +DIST mathtex-1.05.zip 161624 BLAKE2B 9812cfadcc5d47286afb86c6ad38f5bdf932ef39efad2228b04b3b39cbb7543f78be9d82cfa8bbfcc72c9f46fa1931e39aeb71e3abab865dcd60e4e9717e2377 SHA512 f116618de4264efdbccb122b0e9769bbe622f6300266284a96e65f37346c000364063f201b31554bde62a4a4e13c0c8f16d570dca359d3ef27bc0f7622af3715 diff --git a/app-text/mathtex/mathtex-1.05.ebuild b/app-text/mathtex/mathtex-1.05.ebuild new file mode 100644 index 000000000000..9f8ebe064542 --- /dev/null +++ b/app-text/mathtex/mathtex-1.05.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Lets you easily embed LaTeX math in your own html pages, blogs, wikis, etc" +HOMEPAGE="https://www.ctan.org/pkg/mathtex" +SRC_URI="https://mirrors.ctan.org/support/${PN}.zip -> ${P}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="png" + +RDEPEND="app-text/dvipng + virtual/latex-base" +BDEPEND="app-arch/unzip" + +S=${WORKDIR}/${PN} + +einfo_run_command() { + einfo "${@}" + ${@} || die +} + +src_compile() { + einfo_run_command $(tc-getCC) \ + ${CFLAGS} ${LDFLAGS} \ + -DLATEX=\"/usr/bin/latex\" \ + -DDVIPNG=\"/usr/bin/dvipng\" \ + $(use png && echo "-DPNG") \ + mathtex.c -o mathtex +} + +src_install() { + dobin mathtex + dodoc README mathtex.html +} + +pkg_postinst() { + elog "To use mathtex in your web-pages, just link /usr/bin/mathtex" + elog "to your cgi-bin subdirectory!" +}