GNU bug report logs -
#38436
[PATCH] gnu; Add gfortran-toolchain
Previous Next
Full log
View this message in rfc822 format
Hi Konrad,
Konrad Hinsen <konrad.hinsen <at> fastmail.net> skribis:
>> xgettext recognizes (synopsis "foo"), but it won’t catch the variables
>> defined above, because they’re not preceded by the ‘synopsis’ keyword or
>> anything.
>
> OK, so what's the exact rule? If the literal string has to be right
> after the symbol "synopsis", then your optional-arg approach shouldn't
> work when the argument is supplied at the call site (in
> gfortran-toolchain).
Good point!
The exact rule is given the the ‘--keyword’ options in
po/packages/Makevars. Namely, xgettext will recognize:
(synopsis "…")
Thus, something like:
(define* (foo #:key (synopsis "…"))
…)
works.
Now, for gfortran, you could resort to a not-so-fancy hack (used in
‘define-word-list-dictionary’ in (gnu packages aspell)) like this:
(let-syntax ((synopsis (syntax-rules () ((_ str) str))))
(make-gcc-toolchain gfortran #:synopsis (synopsis "…")))
Quite an effort for this little thing, but I couldn’t find of anything
simpler.
HTH,
Ludo’.
This bug report was last modified 5 years and 155 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.