summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNigko Yerden <nigko.yerden@gmail.com>2026-03-19 09:08:49 +0500
committerAndreas Enge <andreas@enge.fr>2026-03-19 11:45:05 +0100
commit3c79f7f58a91ee45c00cbd28b5d7cf7268226efd (patch)
treeada659e991e571dabd6431a72ef6f2ba2bf56a7b /gnu
parentd830f7cf001d3a81ec94219dc6566546922ae0af (diff)
gnu: reduce: Wrap with let binding 'revision.
* gnu/packages/algebra.scm (reduce): Wrap with let binding 'revision. Change-Id: I2beda9e1a079da0b4064c11fe2c7890ffc15627f Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/algebra.scm233
1 files changed, 117 insertions, 116 deletions
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index d5434376deb..e9911d65619 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -2205,119 +2205,120 @@ and not by the available RAM.")
2205@code{parform}, a version of FORM parallelized using OpenMPI.")))) 2205@code{parform}, a version of FORM parallelized using OpenMPI."))))
2206 2206
2207(define-public reduce 2207(define-public reduce
2208 (package 2208 (let ((revision 7333))
2209 (name "reduce") 2209 (package
2210 (version "2026-03-11") 2210 (name "reduce")
2211 (source (origin 2211 (version "2026-03-11")
2212 (method svn-fetch) 2212 (source (origin
2213 (uri (svn-reference 2213 (method svn-fetch)
2214 (url "https://svn.code.sf.net/p/reduce-algebra/code/trunk") 2214 (uri (svn-reference
2215 (revision 7333))) 2215 (url "https://svn.code.sf.net/p/reduce-algebra/code/trunk")
2216 (file-name (string-append name "-" version "-checkout")) 2216 (revision revision)))
2217 (sha256 2217 (file-name (string-append name "-" version "-checkout"))
2218 (base32 2218 (sha256
2219 "04n7z6abfpqxgmdc1vpv2yy4qccvyxdp6klld94wr740dv8r49l2")) 2219 (base32
2220 (modules '((guix build utils))) 2220 "04n7z6abfpqxgmdc1vpv2yy4qccvyxdp6klld94wr740dv8r49l2"))
2221 (patches (search-patches "reduce-unbundle-libffi.patch")) 2221 (modules '((guix build utils)))
2222 (snippet '(map delete-file-recursively 2222 (patches (search-patches "reduce-unbundle-libffi.patch"))
2223 (append (find-files "csl/generated-c" "\\.img$") 2223 (snippet '(map delete-file-recursively
2224 '("common-lisp" 2224 (append (find-files "csl/generated-c" "\\.img$")
2225 "contrib" 2225 '("common-lisp"
2226 "csl/embedded" 2226 "contrib"
2227 "csl/new-embedded" 2227 "csl/embedded"
2228 "csl/support-packages" 2228 "csl/new-embedded"
2229 "csl/winbuild" 2229 "csl/support-packages"
2230 "generic/breduce" 2230 "csl/winbuild"
2231 "generic/casefold" 2231 "generic/breduce"
2232 "generic/emacs" 2232 "generic/casefold"
2233 "generic/qreduce" 2233 "generic/emacs"
2234 "generic/rbench" 2234 "generic/qreduce"
2235 "generic/rlsmt" 2235 "generic/rbench"
2236 "generic/texmacs" 2236 "generic/rlsmt"
2237 "jlisp" 2237 "generic/texmacs"
2238 "jslisp" 2238 "jlisp"
2239 "libedit" 2239 "jslisp"
2240 "libraries/asmjit" 2240 "libedit"
2241 "libraries/C-Quadratic-Sieve" 2241 "libraries/asmjit"
2242 "libraries/core-math" 2242 "libraries/C-Quadratic-Sieve"
2243 ;; "libraries/crlibm" 2243 "libraries/core-math"
2244 ;; "libraries/libedit-20140620-3.1" 2244 ;; "libraries/crlibm"
2245 "libraries/libedit-20210216-3.1" 2245 ;; "libraries/libedit-20140620-3.1"
2246 "libraries/libffi" 2246 "libraries/libedit-20210216-3.1"
2247 "libraries/original" 2247 "libraries/libffi"
2248 ;; "libraries/SoftFloat-3a" 2248 "libraries/original"
2249 "libraries/SoftFloat-3e" 2249 ;; "libraries/SoftFloat-3a"
2250 "libraries/webview" 2250 "libraries/SoftFloat-3e"
2251 "libraries/wineditline" 2251 "libraries/webview"
2252 "macbuild" 2252 "libraries/wineditline"
2253 "MacPorts" 2253 "macbuild"
2254 "mac-universal" 2254 "MacPorts"
2255 "psl" 2255 "mac-universal"
2256 "reduce2" 2256 "psl"
2257 "reduce2-2025" 2257 "reduce2"
2258 "vsl" 2258 "reduce2-2025"
2259 "web" 2259 "vsl"
2260 "winbuild64" 2260 "web"
2261 "windows-config-cache")))))) 2261 "winbuild64"
2262 (build-system gnu-build-system) 2262 "windows-config-cache"))))))
2263 (arguments 2263 (build-system gnu-build-system)
2264 (list #:parallel-build? #f 2264 (arguments
2265 #:configure-flags 2265 (list #:parallel-build? #f
2266 #~(list "--without-autogen" 2266 #:configure-flags
2267 ;; fix conflict with internal build name determination 2267 #~(list "--without-autogen"
2268 "--build=" 2268 ;; fix conflict with internal build name determination
2269 "--with-csl" 2269 "--build="
2270 (string-append "CPPFLAGS=-I" 2270 "--with-csl"
2271 #$freetype 2271 (string-append "CPPFLAGS=-I"
2272 "/include/freetype2")) 2272 #$freetype
2273 #:make-flags #~(list "csl") 2273 "/include/freetype2"))
2274 #:phases 2274 #:make-flags #~(list "csl")
2275 #~(modify-phases %standard-phases 2275 #:phases
2276 (replace 'check 2276 #~(modify-phases %standard-phases
2277 (lambda* (#:key tests? #:allow-other-keys) 2277 (replace 'check
2278 (when tests? 2278 (lambda* (#:key tests? #:allow-other-keys)
2279 (invoke "scripts/testall.sh" "--csl" "--noregressions")))) 2279 (when tests?
2280 (add-before 'patch-source-shebangs 'autogen 2280 (invoke "scripts/testall.sh" "--csl" "--noregressions"))))
2281 (lambda _ 2281 (add-before 'patch-source-shebangs 'autogen
2282 (invoke "sh" "autogen.sh"))) 2282 (lambda _
2283 (add-after 'autogen 'fix-version 2283 (invoke "sh" "autogen.sh")))
2284 (lambda _ 2284 (add-after 'autogen 'fix-version
2285 (substitute* "csl/cslbase/version.h" 2285 (lambda _
2286 (("(#define VERSION_ID )\"\\$Id\\$\"" all def) 2286 (substitute* "csl/cslbase/version.h"
2287 (format #f 2287 (("(#define VERSION_ID )\"\\$Id\\$\"" all def)
2288 "~a \"$Id: version.h ~a ~a 00:00:00Z somebody $\"" 2288 (format #f
2289 def 7333 #$version))))) 2289 "~a \"$Id: version.h ~a ~a 00:00:00Z somebody $\""
2290 (add-after 'install 'fix-install 2290 def #$revision #$version)))))
2291 (lambda _ 2291 (add-after 'install 'fix-install
2292 (copy-file "bin/rfcsl" 2292 (lambda _
2293 (string-append #$output "/bin/rfcsl")) 2293 (copy-file "bin/rfcsl"
2294 (copy-file "generic/newfront/redfront.1" 2294 (string-append #$output "/bin/rfcsl"))
2295 (string-append #$output 2295 (copy-file "generic/newfront/redfront.1"
2296 "/share/man/man1/rfcsl.1")) 2296 (string-append #$output
2297 (let ((.desktop-file 2297 "/share/man/man1/rfcsl.1"))
2298 "debianbuild/reduce/debian/redcsl.desktop") 2298 (let ((.desktop-file
2299 (icon "debianbuild/reduce/debian/reduce.png")) 2299 "debianbuild/reduce/debian/redcsl.desktop")
2300 (install-file .desktop-file 2300 (icon "debianbuild/reduce/debian/reduce.png"))
2301 (string-append #$output 2301 (install-file .desktop-file
2302 "/share/applications")) 2302 (string-append #$output
2303 (install-file icon 2303 "/share/applications"))
2304 (string-append 2304 (install-file icon
2305 #$output 2305 (string-append
2306 "/share/icons/hicolor/32x32/apps"))) 2306 #$output
2307 (with-directory-excursion #$output 2307 "/share/icons/hicolor/32x32/apps")))
2308 (map (lambda (dir) 2308 (with-directory-excursion #$output
2309 (map (lambda (file) 2309 (map (lambda (dir)
2310 (chmod file #o444)) 2310 (map (lambda (file)
2311 (find-files dir))) 2311 (chmod file #o444))
2312 '("share/man/man1" "share/reduce/fonts")))))))) 2312 (find-files dir)))
2313 (native-inputs (list autoconf automake libtool which)) 2313 '("share/man/man1" "share/reduce/fonts"))))))))
2314 (inputs 2314 (native-inputs (list autoconf automake libtool which))
2315 ;; bundled libraries: fox (adjusted) editline (adjusted) 2315 (inputs
2316 ;; crlibm softfloat 2316 ;; bundled libraries: fox (adjusted) editline (adjusted)
2317 (list freetype libffi libx11 libxext libxft ncurses)) 2317 ;; crlibm softfloat
2318 (synopsis "Portable general-purpose computer algebra system") 2318 (list freetype libffi libx11 libxext libxft ncurses))
2319 (description 2319 (synopsis "Portable general-purpose computer algebra system")
2320 "REDUCE is a portable general-purpose computer algebra system. It is a 2320 (description
2321 "REDUCE is a portable general-purpose computer algebra system. It is a
2321system for doing scalar, vector and matrix algebra by computer, which also 2322system for doing scalar, vector and matrix algebra by computer, which also
2322supports arbitrary precision numerical approximation and interfaces to 2323supports arbitrary precision numerical approximation and interfaces to
2323gnuplot to provide graphics. It can be used interactively for simple 2324gnuplot to provide graphics. It can be used interactively for simple
@@ -2326,9 +2327,9 @@ similar to other modern programming languages. REDUCE supports alternative
2326user interfaces including Run-REDUCE, TeXmacs and GNU Emacs. This package 2327user interfaces including Run-REDUCE, TeXmacs and GNU Emacs. This package
2327provides the Codemist Standard Lisp (CSL) version of REDUCE. It uses the 2328provides the Codemist Standard Lisp (CSL) version of REDUCE. It uses the
2328gnuplot program, if installed, to draw figures.") 2329gnuplot program, if installed, to draw figures.")
2329 (home-page "https://reduce-algebra.sourceforge.io/") 2330 (home-page "https://reduce-algebra.sourceforge.io/")
2330 (license (license:non-copyleft "file://README" 2331 (license (license:non-copyleft "file://README"
2331 "See README in the distribution.")))) 2332 "See README in the distribution.")))))
2332 2333
2333(define-public msolve 2334(define-public msolve
2334 (package 2335 (package