From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-880043-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 CF592138224 for <garchives@archives.gentoo.org>; Thu, 5 May 2016 10:27:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C38721C11D; Thu, 5 May 2016 10:27:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C9D4321C11D for <gentoo-commits@lists.gentoo.org>; Thu, 5 May 2016 10:27:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 73C2C340890 for <gentoo-commits@lists.gentoo.org>; Thu, 5 May 2016 10:27:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E51E335 for <gentoo-commits@lists.gentoo.org>; Thu, 5 May 2016 10:27:51 +0000 (UTC) From: "Johannes Huber" <johu@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Johannes Huber" <johu@gentoo.org> Message-ID: <1462443935.bb48bd139b6c0dac9f89415d31b7e955a7e7d3fc.johu@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/kde5.eclass X-VCS-Directories: eclass/ X-VCS-Committer: johu X-VCS-Committer-Name: Johannes Huber X-VCS-Revision: bb48bd139b6c0dac9f89415d31b7e955a7e7d3fc X-VCS-Branch: master Date: Thu, 5 May 2016 10:27:51 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b38be917-6f76-46b5-a0bd-697962723ae1 X-Archives-Hash: cbc13cedcaa7b23315061e46a500b67c commit: bb48bd139b6c0dac9f89415d31b7e955a7e7d3fc Author: Matt Whitlock <gentoo <AT> mattwhitlock <DOT> name> AuthorDate: Wed May 4 07:50:36 2016 +0000 Commit: Johannes Huber <johu <AT> gentoo <DOT> org> CommitDate: Thu May 5 10:25:35 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=bb48bd13 kde5.eclass: infer SRC_URI from KDEBASE and KMNAME Signed-off-by: Johannes Huber <johu <AT> gentoo.org> eclass/kde5.eclass | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index 7620966..d755887 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -326,6 +326,17 @@ _calculate_src_uri() { ;; esac + if [[ -z ${SRC_URI} && -n ${KDEBASE} ]] ; then + case ${PV} in + *.*.[6-9]? ) + SRC_URI="mirror://kde/unstable/${KDEBASE}/${PV}/src/${_kmname}-${PV}.tar.xz" + RESTRICT+=" mirror" + ;; + *) + SRC_URI="mirror://kde/stable/${KDEBASE}/${PV}/src/${_kmname}-${PV}.tar.xz" ;; + esac + fi + if _kde_is_unreleased ; then RESTRICT+=" fetch" fi