From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: java: How to patch a jar-sources Date: Mon, 15 Apr 2019 17:19:53 +0200 Message-ID: <20190415171953.655dd24d@scratchpost.org> References: <20190415080248.679c6749@alma-ubu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/2NT38mUAqhnhQsaKxcNzRVq"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hG3On-0001w9-0E for guix-devel@gnu.org; Mon, 15 Apr 2019 11:19:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hG3Om-00086N-53 for guix-devel@gnu.org; Mon, 15 Apr 2019 11:19:56 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:55364) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hG3Ol-00084r-Mo for guix-devel@gnu.org; Mon, 15 Apr 2019 11:19:56 -0400 In-Reply-To: <20190415080248.679c6749@alma-ubu> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?ISO-8859-1?Q?Bj=F6rn_H=F6fling?= Cc: guix-devel --Sig_/2NT38mUAqhnhQsaKxcNzRVq Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable (define* (unpack #:key source #:allow-other-keys) "Unpack the jar archive SOURCE. When SOURCE is not a jar archive fall ba= ck to the default GNU unpack strategy." (if (string-suffix? ".jar" source) (begin (mkdir "src") (with-directory-excursion "src" (invoke "jar" "-xf" source)) #t) ;; Use GNU unpack strategy for things that aren't jar archives. ((assq-ref gnu:%standard-phases 'unpack) #:source source))) Hmm... maybe the patched source gets a random name that doesn't end in ".ja= r" --Sig_/2NT38mUAqhnhQsaKxcNzRVq Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAly0oRkACgkQ5xo1VCww uqXpdgf8Cxu/WPeycF8aptWQAeoiipICdnmD8nNZXFULnBcSXVs34EvZa9q4kXNq CfHiNWMXBNS4FWpOj8irj8Hsu2ypqZbBxvclLChe/D8ZwJYcdb1iqRmv7jKDOq/s 34b2w7j5e5ijyi9k17T2232G5o15iZnPAp3GP5b/GH0jNAIkR2B/V3HKXfvijlC6 7goOpR+yOfW6OLNSRWjY0KfAJSCOpfhY0zm8rb/86SXqQeTRxumBmAGQ1JNMWQoQ IG8x9FoN4wuUkqueyE/cFuwEEzvCcRxEHCwsYfl7KFzQmkGp41zVggNihfXbdV6x Hb64p9G5761LU0QZ0z98Tvj5cDZvhg== =mypW -----END PGP SIGNATURE----- --Sig_/2NT38mUAqhnhQsaKxcNzRVq--