From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:54699) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if20C-0007g6-Iv for guix-patches@gnu.org; Wed, 11 Dec 2019 08:26:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1if20B-0003L9-CR for guix-patches@gnu.org; Wed, 11 Dec 2019 08:26:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51039) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1if20B-0003GV-7u for guix-patches@gnu.org; Wed, 11 Dec 2019 08:26:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1if1cw-00059V-9o for guix-patches@gnu.org; Wed, 11 Dec 2019 08:02:02 -0500 Subject: [bug#38436] [PATCH] gnu: Add gfortran-toolchain Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Wed, 11 Dec 2019 12:12:04 +0100 In-Reply-To: (Konrad Hinsen's message of "Wed, 11 Dec 2019 11:30:38 +0100") Message-ID: <87y2vjjeuz.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Konrad Hinsen Cc: 38436@debbugs.gnu.org Hi Konrad, Konrad Hinsen skribis: > * gnu/packages/commencement.scm: (gfortran-toolchain): New variable. > * gnu/packages/commencement.scm: (make-gcc-toolchain): Added argument "la= nguage" We=E2=80=99re almost there. :-) > +;; The synopsis and description must be literal strings (not constructed > +;; using string-append or format) to make them translatable. > +(define gcc-synopsis > + "Complete GCC tool chain for C/C++ development") > +(define gcc-description > + "This package provides a complete GCC tool chain for C/C++ development= to > +be installed in user profiles. This includes GCC, as well as libc (head= ers > +and binaries, plus debugging symbols in the @code{debug} output), and > +binutils.") >=20=20 > (define* (make-gcc-toolchain gcc > - #:optional > - (libc #f)) > - "Return a complete toolchain for GCC. If LIBC is specified, target tha= t libc." > + #:optional > + (synopsis gcc-synopsis) > + (description gcc-description) xgettext recognizes (synopsis "foo"), but it won=E2=80=99t catch the variab= les defined above, because they=E2=80=99re not preceded by the =E2=80=98synopsi= s=E2=80=99 keyword or anything. That=E2=80=99s why I proposed in to arrange to keep the string wrapped in (synopsis =E2=80=A6). It=E2=80=99d be great if you could give it a spin, or I can make the change= on your behalf if you prefer. Apologies for making something simple somewhat complicated! Thanks, Ludo=E2=80=99.