commit:     e48c503d9ca71e3a2d7eca85febde7630cb2ef60
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  2 21:52:39 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Nov  2 22:11:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e48c503d

sci-mathematics/btor2tools: patch includes

Closes: https://bugs.gentoo.org/908486
Closes: https://bugs.gentoo.org/895224
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 .../btor2tools/btor2tools-1.0.0_pre20220518-r1.ebuild   | 17 +++++++++++------
 ...btor2tools-1.0.0_pre20220518-btorsplit-cstdint.patch | 10 ++++++++++
 2 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/sci-mathematics/btor2tools/btor2tools-1.0.0_pre20220518-r1.ebuild 
b/sci-mathematics/btor2tools/btor2tools-1.0.0_pre20220518-r1.ebuild
index 58780bf5c440..c2cee9e4d4ea 100644
--- a/sci-mathematics/btor2tools/btor2tools-1.0.0_pre20220518-r1.ebuild
+++ b/sci-mathematics/btor2tools/btor2tools-1.0.0_pre20220518-r1.ebuild
@@ -3,20 +3,22 @@
 
 EAPI=8
 
-[[ ${PV} == *_pre20220518 ]] && COMMIT=b8456dda4780789e882f5791eb486f295ade4da4
-
 inherit cmake
 
 DESCRIPTION="Generic parser and tools for the BTOR2 format"
 HOMEPAGE="https://github.com/Boolector/btor2tools/";
 
-if [[ ${PV} == *9999* ]] ; then
+if [[ "${PV}" == *9999* ]] ; then
        inherit git-r3
+
        EGIT_REPO_URI="https://github.com/Boolector/${PN}.git";
 else
+       [[ "${PV}" == *_pre20220518 ]] && 
COMMIT=b8456dda4780789e882f5791eb486f295ade4da4
+
        SRC_URI="https://github.com/Boolector/${PN}/archive/${COMMIT}.tar.gz
                -> ${P}.tar.gz"
-       S="${WORKDIR}"/${PN}-${COMMIT}
+       S="${WORKDIR}/${PN}-${COMMIT}"
+
        KEYWORDS="~amd64 ~x86"
 fi
 
@@ -24,13 +26,16 @@ LICENSE="MIT"
 SLOT="0"
 IUSE="examples"
 
-PATCHES=( "${FILESDIR}"/${P}-cmake-clfags.patch )
+PATCHES=(
+       "${FILESDIR}/${PN}-1.0.0_pre20220518-btorsplit-cstdint.patch"
+       "${FILESDIR}/${PN}-1.0.0_pre20220518-cmake-clfags.patch"
+)
 
 src_install() {
        cmake_src_install
 
        if use examples ; then
-               insinto /usr/share/${PN}
+               insinto "/usr/share/${PN}"
                dodoc -r examples
        fi
 }

diff --git 
a/sci-mathematics/btor2tools/files/btor2tools-1.0.0_pre20220518-btorsplit-cstdint.patch
 
b/sci-mathematics/btor2tools/files/btor2tools-1.0.0_pre20220518-btorsplit-cstdint.patch
new file mode 100644
index 000000000000..50ebb98fcf98
--- /dev/null
+++ 
b/sci-mathematics/btor2tools/files/btor2tools-1.0.0_pre20220518-btorsplit-cstdint.patch
@@ -0,0 +1,10 @@
+--- a/src/btorsplit.cpp
++++ b/src/btorsplit.cpp
+@@ -19,6 +19,7 @@
+ #include <sstream>
+ #include <unordered_set>
+ #include <vector>
++#include <cstdint>
+ 
+ /*--------------------------------------------------------------------------*/
+ 

Reply via email to