From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7VtJ-0002mc-3v for guix-patches@gnu.org; Sun, 07 May 2017 19:47:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7VtG-0006Rq-1W for guix-patches@gnu.org; Sun, 07 May 2017 19:47:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34515) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7VtF-0006Ri-TH for guix-patches@gnu.org; Sun, 07 May 2017 19:47:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7VtF-0000UT-Kf for guix-patches@gnu.org; Sun, 07 May 2017 19:47:01 -0400 Subject: bug#26822: [PATCH] gnu: Add git-repo. Resent-Message-ID: Date: Sun, 7 May 2017 19:46:45 -0400 From: Leo Famulari Message-ID: <20170507234645.GD20778@jasmine> References: <1494193267-26385-1-git-send-email-h.goebel@crazy-compilers.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iVCmgExH7+hIHJ1A" Content-Disposition: inline In-Reply-To: <1494193267-26385-1-git-send-email-h.goebel@crazy-compilers.com> 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: Hartmut Goebel Cc: 26822@debbugs.gnu.org --iVCmgExH7+hIHJ1A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, May 07, 2017 at 11:41:07PM +0200, Hartmut Goebel wrote: > * gnu/packages/android.scm (git-repo): New variable. Thanks! > + `(#:python ,python-2 If it only supports Python 2, can you say so in a comment? > + #:phases > + (modify-phases %standard-phases > + (replace 'build > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (repo-dir (string-append out "/share/" ,name))) > + (substitute* "repo" > + (("^repodir = '\\.repo'") > + (string-append "repodir = '" repo-dir "'")) > + (("^S_repo = 'repo'") "S_repo = '.'")) > + #t > + ))) For clarify, I think it should delete the build phase (since nothing is built here) and add a new phase for this substitution. --iVCmgExH7+hIHJ1A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlkPseUACgkQJkb6MLrK fwi/BhAAmNOYj3nMBBbesHmFFjEIEo3wh19clNP0ZMiZSi2sHRmojNA++YprHMYw de4/pkr40VWqtqDR3l/CaiWeqoeB2BIDST8aerWkZ3xitQe6es8IvPr3AsKf9S69 LaMc/e/b67+tcbd7dcGfFQfcPKd5NmA5lNjW7PBx1A+baN8oW9TJ8EVfbKZw8o+C qBNdTEbjZhEuZM9Q+WcpF9Hd0rLQY1c/iYbUHMF4UHnn9LGjX462mK1Z3AMDaV4x iE0rVYr36ERIwSXSNKouACmTOy/DTmltPH6+dHogKScEFb4N32pDYp+RNta8ZrLu DKlZ7FOYMarX7TEg7sEn3EUwtZhT18FWFrm57cM2mkQwJxDfCxHnE3kxTIEOXVvv nfT0hFWqM0KWIpYcDp2CcLXReIwVPR2+c6n7Qxwxmza6cehlAIXBLxCSxhvompdI YRtDA39/5376OwGmALL9d5jJBamsN2zDhLxzj4zFR2u2kK+JxZMhz1QKFcRMkn3y +YqmoC16mPBAdidsAkBpvh/rjZnANGXlGOLfbYlAH6DC8HhrM+/96Cs8sqkd2m7e 2ySjoqY6g6OcxsdDM2t0PDNKJadyHINfnuVUqPu3rl4eQ/ScNeeGNCwbaOQwyNA4 lX6RiR7Cyotb6fsnhwR9ZYIgQJY6dnMXaPzKMN6iW94UPXe3isI= =sE7o -----END PGP SIGNATURE----- --iVCmgExH7+hIHJ1A--