[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#38090] [PATCH 2/2] gnu: astyle: Create symlinks for .so files, too.
From: |
Hartmut Goebel |
Subject: |
[bug#38090] [PATCH 2/2] gnu: astyle: Create symlinks for .so files, too. |
Date: |
Wed, 6 Nov 2019 17:40:38 +0100 |
The Makefile only creates files with a versioned extension (.so.3.1.0),
which are not picked up be cmake's `find_libarary()`. (Instead cmake
picks up the static .a library.)
* gnu/packages/code.scm(astyle)[argumements]<modules>: New element.
<phases>{install-libs}: Add creating symlinks.
---
gnu/packages/code.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index d1c3540bd4..9aa5bb3bec 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -600,6 +600,9 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features:
#:make-flags (list (string-append "prefix=" %output)
"INSTALL=install"
"all")
+ #:modules ((guix build gnu-build-system) ;; FIXME use %default-modules
+ (guix build utils)
+ (ice-9 regex))
#:phases
(modify-phases %standard-phases
(replace 'configure
@@ -618,7 +621,14 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features:
(for-each (lambda (l)
(copy-file
l (string-append libdir "/" (basename l))))
- (find-files "bin" "lib*"))))
+ (find-files "bin" "lib*"))
+ (for-each
+ (lambda (l)
+ (symlink (basename l)
+ (regexp-substitute #f
+ (string-match "(\\.[0-9]){3}$" l)
+ 'pre)))
+ (find-files libdir "lib.*\\.so\\..*"))))
#t)))))
(home-page "http://astyle.sourceforge.net/")
(synopsis "Source code indenter, formatter, and beautifier")
--
2.21.0