monego pushed a commit to branch master
in repository guix.

commit d26d95c5f2c88901dc5a3c37c9cda040452a24a7
Author: Vinicius Monego <[email protected]>
AuthorDate: Sat Mar 15 11:50:22 2025 -0300

    gnu: ta-lib: Update to 0.6.4.
    
    * gnu/packages/finance.scm (ta-lib): Update to 0.6.4.
    [source]: Fetch from new official home on GitHub.
    [arguments]: Use Gexp. Add #:tests?. Remove #:parallel-build. Delete the
    'link-math-library phase.
    [native-inputs]: Add autoconf-2.71, automake, libtool.
    
    Change-Id: I2853ba504a406a0d5d399449ce0345078e7499e5
---
 gnu/packages/finance.scm | 33 +++++++++++----------------------
 1 file changed, 11 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index bb1234ebd9..37c1034ac8 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -19,7 +19,7 @@
 ;;; Copyright © 2020 Christine Lemmer-Webber <[email protected]>
 ;;; Copyright © 2020 Tom Zander <[email protected]>
 ;;; Copyright © 2020, 2023 Marius Bakke <[email protected]>
-;;; Copyright © 2020, 2021, 2022, 2024 Vinicius Monego <[email protected]>
+;;; Copyright © 2020, 2021, 2022, 2024, 2025 Vinicius Monego 
<[email protected]>
 ;;; Copyright © 2020 Carlo Holl <[email protected]>
 ;;; Copyright © 2020 Giacomo Leidi <[email protected]>
 ;;; Copyright © 2021 ZmnSCPxj jxPCSnmZ <[email protected]>
@@ -2255,32 +2255,21 @@ providing common functions for the technical analysis 
of financial market data."
 (define-public ta-lib
   (package
     (name "ta-lib")
-    (version "0.4.0")
+    (version "0.6.4")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "mirror://sourceforge/ta-lib/ta-lib/"
-                           version "/ta-lib-" version "-src.tar.gz"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/TA-Lib/ta-lib";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "0lf69nna0aahwpgd9m9yjzbv2fbfn081djfznssa84f0n7y1xx4z"))))
+        (base32 "012sp7s1fxp6lnh3am0r6r46ya9jwnarkvlvq21w2nndqd4n4d39"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'link-math-library
-           (lambda _
-             (substitute* "src/Makefile.am"
-               (("ta_common/libta_common.la")
-                "ta_common/libta_common.la -lm"))
-             (substitute* "src/Makefile.in"
-               (("\\$\\(libta_lib_la_LDFLAGS\\) \\$\\(LDFLAGS\\) -o \\$@")
-                "$(libta_lib_la_LDFLAGS) $(LDFLAGS) -lm -o $@")))))
-       ;; Parallel build fails with:
-       ;; mv -f .deps/gen_code-gen_code.Tpo .deps/gen_code-gen_code.Po
-       ;; mv: cannot stat '.deps/gen_code-gen_code.Tpo': No such file or 
directory
-       ;; Makefile:254: recipe for target 'gen_code-gen_code.o' failed
-       #:parallel-build? #f
-       #:configure-flags '("--disable-static")))
+     (list #:tests? #f ; no tests
+           #:configure-flags #~(list "--disable-static")))
+    (native-inputs (list autoconf-2.71 automake libtool))
     (home-page "https://ta-lib.org";)
     (synopsis "Technical analysis library")
     (description

Reply via email to