From 29c51c6525d8e03765f641a769aed15a5be66b9c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 2 Aug 2022 19:47:50 +0300 Subject: gnu: wcalc: Remove pre-generated files. * gnu/packages/maths.scm (wcalc)[source]: Add snippet to remove files generated by bison and flex. [native-inputs]: Add bison, flex. --- gnu/packages/maths.scm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 8d71bf324f..a3825e5433 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -8,7 +8,7 @@ ;;; Copyright © 2015–2022 Ricardo Wurmus ;;; Copyright © 2015 Sou Bunnbu ;;; Copyright © 2015, 2018 Mark H Weaver -;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner +;;; Copyright © 2015-2022 Efraim Flashner ;;; Copyright © 2015 Fabian Harfert ;;; Copyright © 2016 Roel Janssen ;;; Copyright © 2016, 2018, 2020, 2021 Kei Kebreau @@ -5448,11 +5448,19 @@ FLANN is written in C++ and contains bindings for C, Octave and Python.") (uri (string-append "mirror://sourceforge/w-calc/Wcalc/" version "/" "wcalc-" version ".tar.bz2")) (sha256 - (base32 - "1vi8dl6rccqiq1apmpwawyg2ywx6a1ic1d3cvkf2hlwk1z11fb0f")))) + (base32 + "1vi8dl6rccqiq1apmpwawyg2ywx6a1ic1d3cvkf2hlwk1z11fb0f")) + (snippet + #~(begin + (for-each delete-file + (list "src/common/scanner.c" + "src/common/parser.c" + "src/common/parser.h")))))) (build-system gnu-build-system) (inputs (list mpfr readline)) + (native-inputs + (list bison flex)) (home-page "http://w-calc.sourceforge.net/index.php") (synopsis "Flexible command-line scientific calculator") (description "Wcalc is a very capable calculator. It has standard functions -- cgit v1.2.3