1 |
commit: 27f86cb2820eb8e95b105a3273b24cd4ae7972a4 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 23 17:23:19 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 23 17:26:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27f86cb2 |
7 |
|
8 |
app-text/mathtex: add 1.05 |
9 |
|
10 |
EAPI 5 -> 8, point to CTAN in both HOMEPAGE (the original one is gone) |
11 |
and SRC_URI (instead of the dreaded mirror:gentoo). |
12 |
|
13 |
Fun fact, this version was released in 2014! Gotta love m-n packages. |
14 |
|
15 |
Bug: https://bugs.gentoo.org/826390 |
16 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
17 |
|
18 |
app-text/mathtex/Manifest | 1 + |
19 |
app-text/mathtex/mathtex-1.05.ebuild | 45 ++++++++++++++++++++++++++++++++++++ |
20 |
2 files changed, 46 insertions(+) |
21 |
|
22 |
diff --git a/app-text/mathtex/Manifest b/app-text/mathtex/Manifest |
23 |
index b75bc4c44d79..7550548f0e41 100644 |
24 |
--- a/app-text/mathtex/Manifest |
25 |
+++ b/app-text/mathtex/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST mathtex-1.04.zip 148443 BLAKE2B 6632d30536428f6f33fc13a2b5b38651f2ab7a938381166b79c009ab3d95788fc69e8ed824dae64dca00d32bb79ccd00a73b772f9aebc813d54fd6e0f18839f4 SHA512 4b299a6dc503a01d6be3182ad982e38c0b6d926f09a09bd5169f8ad2c947c020ad532b15146379b4bc2158cfceec4cb4a0b7bf902423e0a8ad9b0b0190a99601 |
28 |
+DIST mathtex-1.05.zip 161624 BLAKE2B 9812cfadcc5d47286afb86c6ad38f5bdf932ef39efad2228b04b3b39cbb7543f78be9d82cfa8bbfcc72c9f46fa1931e39aeb71e3abab865dcd60e4e9717e2377 SHA512 f116618de4264efdbccb122b0e9769bbe622f6300266284a96e65f37346c000364063f201b31554bde62a4a4e13c0c8f16d570dca359d3ef27bc0f7622af3715 |
29 |
|
30 |
diff --git a/app-text/mathtex/mathtex-1.05.ebuild b/app-text/mathtex/mathtex-1.05.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..9f8ebe064542 |
33 |
--- /dev/null |
34 |
+++ b/app-text/mathtex/mathtex-1.05.ebuild |
35 |
@@ -0,0 +1,45 @@ |
36 |
+# Copyright 1999-2021 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=8 |
40 |
+ |
41 |
+inherit toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="Lets you easily embed LaTeX math in your own html pages, blogs, wikis, etc" |
44 |
+HOMEPAGE="https://www.ctan.org/pkg/mathtex" |
45 |
+SRC_URI="https://mirrors.ctan.org/support/${PN}.zip -> ${P}.zip" |
46 |
+ |
47 |
+LICENSE="GPL-3" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~riscv ~x86" |
50 |
+IUSE="png" |
51 |
+ |
52 |
+RDEPEND="app-text/dvipng |
53 |
+ virtual/latex-base" |
54 |
+BDEPEND="app-arch/unzip" |
55 |
+ |
56 |
+S=${WORKDIR}/${PN} |
57 |
+ |
58 |
+einfo_run_command() { |
59 |
+ einfo "${@}" |
60 |
+ ${@} || die |
61 |
+} |
62 |
+ |
63 |
+src_compile() { |
64 |
+ einfo_run_command $(tc-getCC) \ |
65 |
+ ${CFLAGS} ${LDFLAGS} \ |
66 |
+ -DLATEX=\"/usr/bin/latex\" \ |
67 |
+ -DDVIPNG=\"/usr/bin/dvipng\" \ |
68 |
+ $(use png && echo "-DPNG") \ |
69 |
+ mathtex.c -o mathtex |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ dobin mathtex |
74 |
+ dodoc README mathtex.html |
75 |
+} |
76 |
+ |
77 |
+pkg_postinst() { |
78 |
+ elog "To use mathtex in your web-pages, just link /usr/bin/mathtex" |
79 |
+ elog "to your cgi-bin subdirectory!" |
80 |
+} |