[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/49: gnu: astyle: Update to 3.5.
From: |
guix-commits |
Subject: |
11/49: gnu: astyle: Update to 3.5. |
Date: |
Mon, 24 Jun 2024 09:04:29 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 0fe46e53bbd7e190c3e757fb842cd3e45e73f4e8
Author: Artyom V. Poptsov <poptsov.artyom@gmail.com>
AuthorDate: Thu Jun 13 21:54:05 2024 +0300
gnu: astyle: Update to 3.5.
* gnu/packages/code.scm (astyle): Update to 3.5.
[source]: Change source archive file name to match the upstream.
[arguments]: Remove "modules". Add "patch-makefile" phase to set
the C++ compiler to version c++17 as it is required for the build.
Simplify "install-more" file.
Change-Id: I8777710d723d22320c288c331645f8d61d5e640e
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/code.scm | 28 ++++++++++------------------
1 file changed, 10 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index d6ac8178f3..44edf43db5 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -20,6 +20,7 @@
;;; Copyright © 2023 Fries <fries1234@protonmail.com>
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
+;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -823,14 +824,14 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features:
(define-public astyle
(package
(name "astyle")
- (version "3.4.8")
+ (version "3.5")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/astyle/astyle/astyle%20"
- version "/astyle_" version "_linux.tar.gz"))
+ version "/astyle-" version ".tar.bz2"))
(sha256
- (base32 "1ms54wcs7hg1bsywqwf2lhdfizgbk7qxc9ghasxk8i99jvwlrk6b"))))
+ (base32 "0g4jyp47iz97ld9ac4wb5k59j4cs8dbw4dp8f32bwqx8pyvirz6y"))))
(build-system gnu-build-system)
(arguments
(list
@@ -839,11 +840,13 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features:
#~(list (string-append "prefix=" #$output)
"INSTALL=install"
"release" "shared")
- #:modules '((guix build gnu-build-system) ;FIXME use %default-modules
- (guix build utils)
- (ice-9 regex))
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-makefile
+ (lambda _
+ (substitute* "build/gcc/Makefile"
+ (("CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions
-std=c\\+\\+11")
+ "CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions
-std=c++17"))))
(replace 'configure
(lambda _
(chdir "build/gcc")))
@@ -852,12 +855,6 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features:
;; Libraries and headers aren't installed by default.
(let ((include (string-append #$output "/include"))
(lib (string-append #$output "/lib")))
- (define (link.so file strip-pattern)
- (symlink
- (basename file)
- (regexp-substitute #f
- (string-match strip-pattern file)
- 'pre)))
(mkdir-p include)
(copy-file "../../src/astyle.h"
(string-append include "/astyle.h"))
@@ -865,12 +862,7 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features:
(for-each (lambda (l)
(copy-file
l (string-append lib "/" (basename l))))
- (find-files "bin" "^lib.*\\.so"))
- (for-each
- (lambda (file)
- (link.so file "(\\.[0-9]+){3}$") ;.so
- (link.so file "(\\.[0-9]+){2}$")) ;.so.3
- (find-files lib "lib.*\\.so\\..*"))))))))
+ (find-files "bin" "^lib.*\\.so"))))))))
(home-page "https://astyle.sourceforge.net/";)
(synopsis "Source code indenter, formatter, and beautifier")
(description
- 40/49: gnu: readymedia: Update to 1.3.3., (continued)
- 40/49: gnu: readymedia: Update to 1.3.3., guix-commits, 2024/06/24
- 44/49: doc: Improve description of nginx's configuration., guix-commits, 2024/06/24
- 43/49: gnu: kakoune: Update to 2024.05.18., guix-commits, 2024/06/24
- 49/49: gnu: patch: Update to latest commit [security fixes]., guix-commits, 2024/06/24
- 48/49: gnu: gnulib: Update to 2024-05-30-1.ac4b301., guix-commits, 2024/06/24
- 09/49: services: networking: Allow dhcp-client to use a config file., guix-commits, 2024/06/24
- 18/49: gnu: wxwidgets: Update to 3.2.5., guix-commits, 2024/06/24
- 10/49: doc: Prepend ISC to DHCP client references., guix-commits, 2024/06/24
- 08/49: gnu: fio: Update to 3.37., guix-commits, 2024/06/24
- 12/49: gnu: nginx: Update to 1.27.0., guix-commits, 2024/06/24
- 11/49: gnu: astyle: Update to 3.5.,
guix-commits <=
- 28/49: gnu: mtools: Update to 4.0.44., guix-commits, 2024/06/24
- 30/49: gnu: sddm: Update to 0.21.0., guix-commits, 2024/06/24
- 37/49: gnu: sameboy: Update to 0.16.3., guix-commits, 2024/06/24
- 39/49: gnu: godot-lts: Improve package style., guix-commits, 2024/06/24
- 46/49: gnu: torbrowser: Add bash-minimal., guix-commits, 2024/06/24
- 19/49: gnu: octave: Update to 9.2.0., guix-commits, 2024/06/24
- 25/49: gnu: python-pulsectl: Update to 24.4.0., guix-commits, 2024/06/24
- 32/49: manifest: Streamline; add packages useful for patch review/submission., guix-commits, 2024/06/24
- 03/49: doc: Fix Reviewed-by format., guix-commits, 2024/06/24
- 04/49: services: mpd: Fix log to file., guix-commits, 2024/06/24