commit:     c8f24b753f0a1a080137031f23e4263c52183787
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun May  1 04:14:10 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sun May  1 04:14:33 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c8f24b75

sci-mathematics/qepcad: new package, add 1.72b_p20220501

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sci-mathematics/qepcad/Manifest                    |  1 +
 sci-mathematics/qepcad/metadata.xml                | 20 +++++++++
 .../qepcad/qepcad-1.72b_p20220501.ebuild           | 52 ++++++++++++++++++++++
 3 files changed, 73 insertions(+)

diff --git a/sci-mathematics/qepcad/Manifest b/sci-mathematics/qepcad/Manifest
new file mode 100644
index 000000000..1eb766c64
--- /dev/null
+++ b/sci-mathematics/qepcad/Manifest
@@ -0,0 +1 @@
+DIST qepcad-1.72b_p20220501.tar.gz 178489856 BLAKE2B 
79277f484c0011b3c871fc06b20ce344e770591bd74204d20c9c844933140d14c72663660ea29aaf21de7fe920a5e4bd6a0b94d95e1b28279e7b4fc36ae46228
 SHA512 
9210bd519bf6e61d746e4a582c48ca6b337b415ad3996af008702dec362e885905c8eda6db3b88f8befb464bc30fcdfa2b5dc3c6e16bd19e3ef3bba054e5846c

diff --git a/sci-mathematics/qepcad/metadata.xml 
b/sci-mathematics/qepcad/metadata.xml
new file mode 100644
index 000000000..21f5c704e
--- /dev/null
+++ b/sci-mathematics/qepcad/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>lssndrbarbi...@gmail.com</email>
+    <name>Alessandro Barbieri</name>
+  </maintainer>
+  <upstream>
+    <maintainer>
+      <email>wcbr...@usna.edu</email>
+      <name>Chris Brown</name>
+    </maintainer>
+  </upstream>
+  <longdescription lang="en">
+The Program
+QEPCAD is an implementation of quantifier elimination by partial cylindrical 
algebraic decomposition due orginally to Hoon Hong, and subsequently added on 
to by many others. It is an interactive command-line program written in C/C++, 
and based on the SACLIB library. Presented here is QEPCAD B version 1.x, the 
"B" designating a substantial departure from the original QEPCAD and 
distinguishing it from any development of the original that may proceed in a 
different direction. QEPCAD and the SACLIB library are the result of a program 
of research by George Collins and his PhD students that has spanned several 
decades ... and continues still!
+
+I extended and improved QEPCAD for several years. Improvements that didn't 
involve changes to the way the program interacted with the user I'd just go 
ahead and make. However, changes that affected the interaction of QEPCAD and 
the user, or changes that added new features were "tacked on" to the program, 
requiring the user to know about extra commands. Moreover, there was no 
cannonical source for QEPCAD distribution or documentation, and no internet 
accessible source at all. This branch of QEPCAD, QEPCAD "B", was introduced to 
address those problems - to make QEPCAD easily accessable through the internet, 
to provide good documentation, and to incorporate many improvements and 
extensions in a way that makes them most accessible to the user.
+  </longdescription>
+</pkgmetadata>

diff --git a/sci-mathematics/qepcad/qepcad-1.72b_p20220501.ebuild 
b/sci-mathematics/qepcad/qepcad-1.72b_p20220501.ebuild
new file mode 100644
index 000000000..068eabfbd
--- /dev/null
+++ b/sci-mathematics/qepcad/qepcad-1.72b_p20220501.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2028 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+COMMIT="3c01c088e6b54e89f382bce56d49733a9969ef09"
+
+inherit cmake optfeature
+
+DESCRIPTION="Quantifier Elimination by Partial Cylindrical Algebraic 
Decomposition"
+HOMEPAGE="
+       https://www.usna.edu/Users/cs/wcbrown/qepcad/B/QEPCAD.html
+       https://github.com/Alessandro-Barbieri/qepcad
+"
+SRC_URI="https://github.com/Alessandro-Barbieri/${PN}/archive/${COMMIT}.tar.gz 
-> ${PF}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}/qesource"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       media-libs/freeglut
+       media-libs/glu
+       media-libs/libglvnd
+       sci-libs/saclib:=
+       sys-libs/readline
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( README LOG )
+
+src_configure() {
+       export qe="${S}"
+       local mycmakeargs=(
+               -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
+       )
+       cmake_src_configure
+}
+
+src_install() {
+       einstalldocs
+       cmake_src_install
+       docinto cad2d
+       dodoc cad2d/README
+       echo "qe=/" > 99-qepcad || die
+       doenvd 99-qepcad
+}
+
+pkg_postinst() {
+       optfeature "allowing qepcad to use singular" sci-mathematics/singular
+}

Reply via email to