From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-158849-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3C65D13838B for <garchives@archives.gentoo.org>; Sat, 20 Sep 2014 18:28:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C52BE0ACE; Sat, 20 Sep 2014 18:28:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 63FB7E0A9E for <gentoo-user@lists.gentoo.org>; Sat, 20 Sep 2014 18:28:44 +0000 (UTC) Received: from [192.168.1.100] (c-68-49-223-78.hsd1.md.comcast.net [68.49.223.78]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mjo) by smtp.gentoo.org (Postfix) with ESMTPSA id 4BC5133FEC9 for <gentoo-user@lists.gentoo.org>; Sat, 20 Sep 2014 18:28:43 +0000 (UTC) Message-ID: <541DC759.5000208@gentoo.org> Date: Sat, 20 Sep 2014 14:28:41 -0400 From: Michael Orlitzky <mjo@gentoo.org> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: SRC_URISRC_URI.mirror References: <loom.20140920T185304-350@post.gmane.org> <541DBA85.6020202@gentoo.org> <loom.20140920T194738-483@post.gmane.org> <541DC032.5070601@gentoo.org> <loom.20140920T200717-893@post.gmane.org> In-Reply-To: <loom.20140920T200717-893@post.gmane.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: c5b5e112-4bf2-434c-9f53-57903a4c8c54 X-Archives-Hash: abfd568cbb58d9cd00cc8666948b1cce On 09/20/2014 02:08 PM, James wrote: > Michael Orlitzky <mjo <at> gentoo.org> writes: > > >>> MY_PV=${PV/_/} > >>> SRC_URI="http://www.apache.org/dist/spark/${PV}/${P}.tgz" > >> Because that's the wrong URL =) > > SRC_URI="http://www.apache.org/dist/spark/spark-1.1.0/${P}.tgz" > > Works. Is this correct? > (sorry for being dense) > Yes, and you can replace "spark-1.1.0" by ${P} in the path as well. The link that Bryan posted has a list of all of the variables that are available. You can go pretty crazy with some of them, but in this case the only other thing I would replace is "spark" by ${PN}.