[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25787: [PATCH 3/6] gnu: Add cryptopp.
From: |
Marius Bakke |
Subject: |
bug#25787: [PATCH 3/6] gnu: Add cryptopp. |
Date: |
Wed, 22 Feb 2017 17:28:07 +0100 |
User-agent: |
Notmuch/0.23.5 (https://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu) |
Marius Bakke <address@hidden> writes:
>> + (add-after 'install 'install-pkg-config
>> + (lambda* (#:key outputs #:allow-other-keys)
>> + (let* ((out (assoc-ref outputs "out"))
>> + (pkgconfig-path (string-append out
>> "/lib/pkgconfig")))
>> + (mkdir-p pkgconfig-path)
>> + (with-output-to-file
>> + (string-append pkgconfig-path "/libcrypto++.pc")
>> + (lambda _
>> + (format #t
>> + "address@hidden@
>> + libdir=${prefix}/lib~@
>> + includedir=${prefix}/include~@
>> + Name: address@hidden@
>> + Description: Class library of cryptographic
>> schemes~@
>> + Version: address@hidden@
>> + Libs: -L${libdir} -lcryptopp~@
>> + Cflags: -I${includedir}~%"
>> + out version)))))))))
>
> Ahh.. This is why it was let-bound. You can "unquote" version here to
> make it be evaluated without binding it at the top level. Note: You
> probably also have to "quasiquote" the arguments with ` instead of ' (on
> the line that contains #:phases).
I forgot to explain what "unquote" means. It's the ',' symbol, meaning
"insert the result of this expression". Read more about unquote and
quasiquote here:
https://www.gnu.org/software/guile/manual/guile.html#Expression-Syntax
signature.asc
Description: PGP signature
- bug#25787: [PATCH 0/6] Add Clementine music player., Pierre Langlois, 2017/02/18
- bug#25787: [PATCH 5/6] gnu: sqlite: Enable FTS3., Pierre Langlois, 2017/02/18
- bug#25787: [PATCH 1/6] gnu: Add qjson., Pierre Langlois, 2017/02/18
- bug#25787: [PATCH 2/6] gnu: Add libechonest., Pierre Langlois, 2017/02/18
- bug#25787: [PATCH 4/6] gnu: nss: Update to 3.28.1., Pierre Langlois, 2017/02/18
- bug#25787: [PATCH 3/6] gnu: Add cryptopp., Pierre Langlois, 2017/02/18
- bug#25787: [PATCH 6/6] gnu: Add Clementine., Pierre Langlois, 2017/02/18
- bug#25787: [PATCH 6/6], Thomas Danckaert, 2017/02/20
- bug#25787: [PATCH 0/6] Add Clementine music player., Marius Bakke, 2017/02/22