From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: 38098@debbugs.gnu.org
Subject: [bug#38098] [PATCH 2/2] gnu: astyle: Install header file, too.
Date: Thu, 7 Nov 2019 11:18:10 +0100 [thread overview]
Message-ID: <20191107101810.3284-2-h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <20191107101810.3284-1-h.goebel@crazy-compilers.com>
* gnu/packages/code.scm(astyle)[arguments]<phases>{install-libs}: Also
install header file.
---
gnu/packages/code.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index a277434b36..ba350b98e5 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -609,8 +609,9 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features:
(lambda _ (chdir "build/gcc") #t))
(add-after 'install 'install-libs
(lambda* (#:key outputs #:allow-other-keys)
- ;; Libraries are not installed by default
+ ;; Libraries and includes are not installed by default
(let* ((output (assoc-ref outputs "out"))
+ (incdir (string-append output "/include"))
(libdir (string-append output "/lib")))
(define (make-so-link sofile strip-pattern)
(symlink
@@ -618,6 +619,9 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features:
(regexp-substitute #f
(string-match strip-pattern sofile)
'pre)))
+ (mkdir-p incdir)
+ (copy-file "../../src/astyle.h"
+ (string-append incdir "/astyle.h"))
(mkdir-p libdir)
(for-each (lambda (l)
(copy-file
--
2.21.0
next prev parent reply other threads:[~2019-11-07 10:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-07 10:16 [bug#38098] [PATCH 0/2] Fix build for astyle Hartmut Goebel
2019-11-07 10:18 ` [bug#38098] [PATCH 1/2] gnu: astyle: Create symlinks for .so files, too Hartmut Goebel
2019-11-07 10:18 ` Hartmut Goebel [this message]
[not found] ` <handler.38098.B.15731217779844.ack@debbugs.gnu.org>
2019-11-21 18:00 ` bug#38098: Acknowledgement ([PATCH 0/2] Fix build for astyle) Hartmut Goebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191107101810.3284-2-h.goebel@crazy-compilers.com \
--to=h.goebel@crazy-compilers.com \
--cc=38098@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).