sci-mathematics/metamath: add verison 0.198

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt@riseup.net>
This commit is contained in:
Maciej Barć
2021-10-22 00:22:22 +02:00
parent a6b67ba4c0
commit efa215ae9f
4 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST metamath-0.198.tar.gz 468593 BLAKE2B 030bc61f5d8f0c02d473fcd2802b3411c96eff04f7144b966f1f098aec3a65218137228f4d97ba96aaa190386802db00865b9e997b399ce06b19d421c335f2bf SHA512 607c0a8208b9414b36bf82a1fcb0b826e9bfa4cbcec0337be58f3e890b91473649b115403227f440b9774e5653434ffdf09f0ab82c2f5af59eac0d11b9d09942

View File

@@ -0,0 +1,16 @@
index 263d3d8..68a8fea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,11 +45,9 @@ int f() {
# Try to optimize.
AC_MSG_CHECKING([[for optimization flags]])
-new_CFLAGS="-O3 -funroll-loops -finline-functions -fomit-frame-pointer"
+new_CFLAGS=""
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $new_CFLAGS"
-# Remove any existing "-O2", or it will override what we're doing.
-CFLAGS=$( printf "%s" "$CFLAGS" | sed -e 's/ -O2/ /' )
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[
#include <stdio.h>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@riseup.net</email>
<name>Maciej Barć</name>
</maintainer>
<longdescription lang="en">
Metamath is a tiny language that can express theorems in abstract
mathematics, accompanied by proofs that can be verified by a computer
program.
</longdescription>
<upstream>
<bugs-to>https://github.com/metamath/metamath-exe/issues</bugs-to>
<remote-id type="github">metamath/metamath-exe</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,28 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Proof verifier based on a minimalistic formalism"
HOMEPAGE="http://us.metamath.org/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN}/${PN}-exe.git"
else
SRC_URI="https://github.com/${PN}/${PN}-exe/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-exe-${PV}"
fi
LICENSE="GPL-2"
SLOT="0"
PATCHES=( "${FILESDIR}/dont_force_optimize.patch" )
src_prepare() {
default
eautoreconf
}