GNU bug report logs -
#31114
[PATCH] gnu: Add fortune-mod.
Previous Next
Reported by: Pierre Neidhardt <ambrevar <at> gmail.com>
Date: Mon, 9 Apr 2018 17:33:01 UTC
Severity: normal
Tags: patch
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
Full log
Message #17 received at 31114 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Leo Famulari <leo <at> famulari.name> writes:
> For an example of how to do that, look at the native-inputs field of the
> Git package definition. The Git manpages are downloaded separately for
> that package.
Thanks for the hint, it works like a charm!
(add-after 'unpack 'fix-build-env
(lambda* (#:key inputs #:allow-other-keys)
(let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
(copy-file cmake-rules "fortune-mod/cmake/Shlomif_Common.cmake")
(chdir "fortune-mod"))))
One nit: I want to install the file without specifying its destination
name (re-use the source name).
~install-file~ can do that but here ~cmake-rules~ contains the checksum
prefix.
I remember seeing a procedure to trim the checksum prefix from file
names somewhere...
More generally: is there an API reference or is it just the source code?
Development documentation seems a bit scarce...
--
Pierre Neidhardt
You will gain money by a speculation or lottery.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 7 years and 33 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.