[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Package version at build side
From: |
Eric Bavier |
Subject: |
Re: Package version at build side |
Date: |
Tue, 04 Nov 2014 14:55:58 -0600 |
User-agent: |
mu4e 0.9.9.5; emacs 23.3.1 |
Andreas Enge writes:
> Hello,
>
> for kdelibs, I need to pass the version of the input docbook-xsl as
> a configure flag. So I added something like
>
> #:configure-flags
> (list "-DCMAKE_VERBOSE_MAKEFILE=ON" ; for debugging
> (let ((docbook-xsl (assoc-ref %build-inputs "docbook-xsl")))
> (string-append "-DDOCBOOKXSL_DIR="
> docbook-xsl
> "/xml/xsl/docbook-xsl-"
> (package-version docbook-xsl)
> "/")))
[...]
> Is there a simpler solution?
You should be able to do this by quasi-quoting the list and unquoting
package-version. See e.g. the definition of maxima in maths.scm:891.
--
Eric Bavier
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html