From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1523213832F for ; Fri, 19 Aug 2016 16:12:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1DCBBE0B0D; Fri, 19 Aug 2016 16:12:23 +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 7026BE0AB3 for ; Fri, 19 Aug 2016 16:12:22 +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 26913340688 for ; Fri, 19 Aug 2016 16:12:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CAC9E2461 for ; Fri, 19 Aug 2016 16:12:19 +0000 (UTC) From: "Mikhail Pukhlikov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mikhail Pukhlikov" Message-ID: <1471549655.fa22b03f30d95f7e0e14a11d68feffd27f102155.cynede@gentoo> Subject: [gentoo-commits] proj/dotnet:master commit in: eclass/ X-VCS-Repository: proj/dotnet X-VCS-Files: eclass/nuget.eclass X-VCS-Directories: eclass/ X-VCS-Committer: cynede X-VCS-Committer-Name: Mikhail Pukhlikov X-VCS-Revision: fa22b03f30d95f7e0e14a11d68feffd27f102155 X-VCS-Branch: master Date: Fri, 19 Aug 2016 16:12:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 893506f8-6eb1-49cf-99ba-f1488f5b4ad8 X-Archives-Hash: e00aa71c74a47561ddedcd26645c2632 commit: fa22b03f30d95f7e0e14a11d68feffd27f102155 Author: ArsenShnurkov gmail com> AuthorDate: Thu Aug 18 19:47:35 2016 +0000 Commit: Mikhail Pukhlikov gentoo org> CommitDate: Thu Aug 18 19:47:35 2016 +0000 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=fa22b03f replace prefix to dot eclass/nuget.eclass | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/eclass/nuget.eclass b/eclass/nuget.eclass index 5c59f05..c145dce 100644 --- a/eclass/nuget.eclass +++ b/eclass/nuget.eclass @@ -56,16 +56,27 @@ enuget_download_rogue_binary() { # Src_compile does nothing and src_install just installs sources from nuget_src_unpack nuget_src_unpack() { default + einfo "src_unpack() from nuget.eclass is called" NPN=${PN/_/.} - if [[ $PV == *_alpha* ]] || [[ $PV == *_beta* ]] || [[ $PV == *_pre* ]] || [[ $PV == *_p* ]] - then - NPV=${PVR/_/-} + if [[ $PV == *_alpha* ]] ; then + NPV=${PVR/_alpha/.} else - NPV=${PVR} + if [[ $PV == *_beta* ]] ; then + NPV=${PVR/_beta/.} + else + if [[ $PV == *_pre* ]] ; then + NPV=${PVR/_pre/.} + else + if [[ $PV == *_p* ]] ; then + NPV=${PVR/_p/.} + else + NPV=${PVR} + fi + fi + fi fi - nuget install "${NPN}" -Version "${NPV}" -OutputDirectory "${P}" }