Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-mathematics/qepcad/
Date: Sun, 01 May 2022 04:14:44
Message-Id: 1651378473.c8f24b753f0a1a080137031f23e4263c52183787.Alessandro-Barbieri@gentoo
1 commit: c8f24b753f0a1a080137031f23e4263c52183787
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun May 1 04:14:10 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sun May 1 04:14:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c8f24b75
7
8 sci-mathematics/qepcad: new package, add 1.72b_p20220501
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 sci-mathematics/qepcad/Manifest | 1 +
13 sci-mathematics/qepcad/metadata.xml | 20 +++++++++
14 .../qepcad/qepcad-1.72b_p20220501.ebuild | 52 ++++++++++++++++++++++
15 3 files changed, 73 insertions(+)
16
17 diff --git a/sci-mathematics/qepcad/Manifest b/sci-mathematics/qepcad/Manifest
18 new file mode 100644
19 index 000000000..1eb766c64
20 --- /dev/null
21 +++ b/sci-mathematics/qepcad/Manifest
22 @@ -0,0 +1 @@
23 +DIST qepcad-1.72b_p20220501.tar.gz 178489856 BLAKE2B 79277f484c0011b3c871fc06b20ce344e770591bd74204d20c9c844933140d14c72663660ea29aaf21de7fe920a5e4bd6a0b94d95e1b28279e7b4fc36ae46228 SHA512 9210bd519bf6e61d746e4a582c48ca6b337b415ad3996af008702dec362e885905c8eda6db3b88f8befb464bc30fcdfa2b5dc3c6e16bd19e3ef3bba054e5846c
24
25 diff --git a/sci-mathematics/qepcad/metadata.xml b/sci-mathematics/qepcad/metadata.xml
26 new file mode 100644
27 index 000000000..21f5c704e
28 --- /dev/null
29 +++ b/sci-mathematics/qepcad/metadata.xml
30 @@ -0,0 +1,20 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>lssndrbarbieri@×××××.com</email>
36 + <name>Alessandro Barbieri</name>
37 + </maintainer>
38 + <upstream>
39 + <maintainer>
40 + <email>wcbrown@××××.edu</email>
41 + <name>Chris Brown</name>
42 + </maintainer>
43 + </upstream>
44 + <longdescription lang="en">
45 +The Program
46 +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!
47 +
48 +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.
49 + </longdescription>
50 +</pkgmetadata>
51
52 diff --git a/sci-mathematics/qepcad/qepcad-1.72b_p20220501.ebuild b/sci-mathematics/qepcad/qepcad-1.72b_p20220501.ebuild
53 new file mode 100644
54 index 000000000..068eabfbd
55 --- /dev/null
56 +++ b/sci-mathematics/qepcad/qepcad-1.72b_p20220501.ebuild
57 @@ -0,0 +1,52 @@
58 +# Copyright 1999-2028 Gentoo Authors
59 +# Distributed under the terms of the GNU General Public License v2
60 +
61 +EAPI=8
62 +
63 +COMMIT="3c01c088e6b54e89f382bce56d49733a9969ef09"
64 +
65 +inherit cmake optfeature
66 +
67 +DESCRIPTION="Quantifier Elimination by Partial Cylindrical Algebraic Decomposition"
68 +HOMEPAGE="
69 + https://www.usna.edu/Users/cs/wcbrown/qepcad/B/QEPCAD.html
70 + https://github.com/Alessandro-Barbieri/qepcad
71 +"
72 +SRC_URI="https://github.com/Alessandro-Barbieri/${PN}/archive/${COMMIT}.tar.gz -> ${PF}.tar.gz"
73 +S="${WORKDIR}/${PN}-${COMMIT}/qesource"
74 +
75 +LICENSE="MIT"
76 +SLOT="0"
77 +KEYWORDS="~amd64"
78 +
79 +RDEPEND="
80 + media-libs/freeglut
81 + media-libs/glu
82 + media-libs/libglvnd
83 + sci-libs/saclib:=
84 + sys-libs/readline
85 +"
86 +DEPEND="${RDEPEND}"
87 +
88 +DOCS=( README LOG )
89 +
90 +src_configure() {
91 + export qe="${S}"
92 + local mycmakeargs=(
93 + -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
94 + )
95 + cmake_src_configure
96 +}
97 +
98 +src_install() {
99 + einstalldocs
100 + cmake_src_install
101 + docinto cad2d
102 + dodoc cad2d/README
103 + echo "qe=/" > 99-qepcad || die
104 + doenvd 99-qepcad
105 +}
106 +
107 +pkg_postinst() {
108 + optfeature "allowing qepcad to use singular" sci-mathematics/singular
109 +}