From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0WLl-0002M7-LO for guix-patches@gnu.org; Mon, 26 Mar 2018 13:56:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0WLi-0004pM-JQ for guix-patches@gnu.org; Mon, 26 Mar 2018 13:56:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:46794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0WLi-0004pF-Ev for guix-patches@gnu.org; Mon, 26 Mar 2018 13:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f0WLi-0004nC-7M for guix-patches@gnu.org; Mon, 26 Mar 2018 13:56:02 -0400 Subject: [bug#30924] [PATCH] gnu: Add cloud-foundry-cli. Resent-Message-ID: From: Marius Bakke In-Reply-To: <20180324160404.1759-1-mail@cbaines.net> References: <87vadl344t.fsf@cbaines.net> <20180324160404.1759-1-mail@cbaines.net> Date: Mon, 26 Mar 2018 19:55:54 +0200 Message-ID: <87zi2uiuvp.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: Christopher Baines , 30924@debbugs.gnu.org --=-=-= Content-Type: text/plain Christopher Baines writes: > * gnu/packages/cloud-foundry.scm: New file. [...] > + (build-system go-build-system) > + (arguments > + '(#:import-path "code.cloudfoundry.org/cli" > + #:phases > + (modify-phases %standard-phases > + ;; This should be redundant once the vendor directory is removed from > + ;; this package > + (add-before 'reset-gzip-timestamps 'remove-readonly-gzip-files > + (lambda* (#:key outputs #:allow-other-keys) > + (for-each delete-file > + (find-files > + (assoc-ref outputs "out") > + ".*\\.gz")))) 'for-each' has an unspecified return value, so please add #t here. > + (add-after 'install 'rename-binary > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((out (assoc-ref outputs "out"))) > + (rename-file (string-append out "/bin/cli") > + (string-append out "/bin/cf")))))))) Ditto for 'rename-file'. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlq5NCoACgkQoqBt8qM6 VPrXSQgAkSe4lJhYrGFfbsqTUWkP3D2S0gLcOrmWavGw5VK+JM+p0IuxBN0Acjps vCSDYhHvUSWM1f+0iWyPNHDWK3JQRTzdPIQdmAQBtioK7dWSEpKFjPgQehq+ZG45 wx6OlGYYbq1IyyBYn04j7YibjdtjTQLXCkxITAo7i6Fl8FT8AyrkbzjTTGs2OuUu /GajaVP5Sl+5Y9GtISLO3Wn6DsARRyTYOsH8c/ci+xBZCnXDrQI4VrlunBI3h9xW FtCi21Daw31a14b0V9j9/1ePCZ8F+petRtiTEApS0pE7LVZolyTUr4kYqDGqf60O E5pLDDxFweB25RardeUO5jP90TCh1Q== =aqbH -----END PGP SIGNATURE----- --=-=-=--