1 |
commit: cb54986d41de16df0fead12aa8323b130c81e01b |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 26 09:43:50 2021 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 26 09:44:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb54986d |
7 |
|
8 |
sci-mathematics/metamath: new package; add version 0.198 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
12 |
|
13 |
sci-mathematics/metamath/Manifest | 1 + |
14 |
.../metamath/files/dont_force_optimize.patch | 16 +++++++++++++ |
15 |
sci-mathematics/metamath/metadata.xml | 18 ++++++++++++++ |
16 |
sci-mathematics/metamath/metamath-0.198.ebuild | 28 ++++++++++++++++++++++ |
17 |
4 files changed, 63 insertions(+) |
18 |
|
19 |
diff --git a/sci-mathematics/metamath/Manifest b/sci-mathematics/metamath/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..32df01b83835 |
22 |
--- /dev/null |
23 |
+++ b/sci-mathematics/metamath/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST metamath-0.198.tar.gz 468593 BLAKE2B 030bc61f5d8f0c02d473fcd2802b3411c96eff04f7144b966f1f098aec3a65218137228f4d97ba96aaa190386802db00865b9e997b399ce06b19d421c335f2bf SHA512 607c0a8208b9414b36bf82a1fcb0b826e9bfa4cbcec0337be58f3e890b91473649b115403227f440b9774e5653434ffdf09f0ab82c2f5af59eac0d11b9d09942 |
26 |
|
27 |
diff --git a/sci-mathematics/metamath/files/dont_force_optimize.patch b/sci-mathematics/metamath/files/dont_force_optimize.patch |
28 |
new file mode 100644 |
29 |
index 000000000000..548b0042ecef |
30 |
--- /dev/null |
31 |
+++ b/sci-mathematics/metamath/files/dont_force_optimize.patch |
32 |
@@ -0,0 +1,16 @@ |
33 |
+index 263d3d8..68a8fea 100644 |
34 |
+--- a/configure.ac |
35 |
++++ b/configure.ac |
36 |
+@@ -45,11 +45,9 @@ int f() { |
37 |
+ |
38 |
+ # Try to optimize. |
39 |
+ AC_MSG_CHECKING([[for optimization flags]]) |
40 |
+-new_CFLAGS="-O3 -funroll-loops -finline-functions -fomit-frame-pointer" |
41 |
++new_CFLAGS="" |
42 |
+ saved_CFLAGS="$CFLAGS" |
43 |
+ CFLAGS="$CFLAGS $new_CFLAGS" |
44 |
+-# Remove any existing "-O2", or it will override what we're doing. |
45 |
+-CFLAGS=$( printf "%s" "$CFLAGS" | sed -e 's/ -O2/ /' ) |
46 |
+ AC_LINK_IFELSE( |
47 |
+ [AC_LANG_PROGRAM([[ |
48 |
+ #include <stdio.h> |
49 |
|
50 |
diff --git a/sci-mathematics/metamath/metadata.xml b/sci-mathematics/metamath/metadata.xml |
51 |
new file mode 100644 |
52 |
index 000000000000..824d79b7b66d |
53 |
--- /dev/null |
54 |
+++ b/sci-mathematics/metamath/metadata.xml |
55 |
@@ -0,0 +1,18 @@ |
56 |
+<?xml version="1.0" encoding="UTF-8"?> |
57 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
58 |
+ |
59 |
+<pkgmetadata> |
60 |
+ <maintainer type="person"> |
61 |
+ <email>xgqt@g.o</email> |
62 |
+ <name>Maciej Barć</name> |
63 |
+ </maintainer> |
64 |
+ <longdescription lang="en"> |
65 |
+ Metamath is a tiny language that can express theorems in abstract |
66 |
+ mathematics, accompanied by proofs that can be verified by a computer |
67 |
+ program. |
68 |
+ </longdescription> |
69 |
+ <upstream> |
70 |
+ <bugs-to>https://github.com/metamath/metamath-exe/issues</bugs-to> |
71 |
+ <remote-id type="github">metamath/metamath-exe</remote-id> |
72 |
+ </upstream> |
73 |
+</pkgmetadata> |
74 |
|
75 |
diff --git a/sci-mathematics/metamath/metamath-0.198.ebuild b/sci-mathematics/metamath/metamath-0.198.ebuild |
76 |
new file mode 100644 |
77 |
index 000000000000..4660a7b0656e |
78 |
--- /dev/null |
79 |
+++ b/sci-mathematics/metamath/metamath-0.198.ebuild |
80 |
@@ -0,0 +1,28 @@ |
81 |
+# Copyright 1999-2021 Gentoo Authors |
82 |
+# Distributed under the terms of the GNU General Public License v2 |
83 |
+ |
84 |
+EAPI=8 |
85 |
+ |
86 |
+inherit autotools |
87 |
+ |
88 |
+DESCRIPTION="Proof verifier based on a minimalistic formalism" |
89 |
+HOMEPAGE="http://us.metamath.org/" |
90 |
+ |
91 |
+if [[ "${PV}" == *9999* ]]; then |
92 |
+ inherit git-r3 |
93 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}-exe.git" |
94 |
+else |
95 |
+ SRC_URI="https://github.com/${PN}/${PN}-exe/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
96 |
+ KEYWORDS="~amd64 ~x86" |
97 |
+ S="${WORKDIR}/${PN}-exe-${PV}" |
98 |
+fi |
99 |
+ |
100 |
+LICENSE="GPL-2" |
101 |
+SLOT="0" |
102 |
+ |
103 |
+PATCHES=( "${FILESDIR}/dont_force_optimize.patch" ) |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ default |
107 |
+ eautoreconf |
108 |
+} |