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 97B29139695 for ; Sun, 21 May 2017 15:05:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 952BD21C094; Sun, 21 May 2017 15:05:13 +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 7024521C092 for ; Sun, 21 May 2017 15:05:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0AE2A3416BE for ; Sun, 21 May 2017 15:05:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B24F7460 for ; Sun, 21 May 2017 15:05:10 +0000 (UTC) From: "Kent Fredric" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kent Fredric" Message-ID: <1495379100.50d3d23d9c063541f9adce95d4dc7d3e3a4c7042.kentnl@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/perl/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/perl/perl-5.26.9999.ebuild X-VCS-Directories: dev-lang/perl/ X-VCS-Committer: kentnl X-VCS-Committer-Name: Kent Fredric X-VCS-Revision: 50d3d23d9c063541f9adce95d4dc7d3e3a4c7042 X-VCS-Branch: master Date: Sun, 21 May 2017 15:05:10 +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: 6034f08d-a925-4aec-b802-54ca4f78e0d5 X-Archives-Hash: 246dd8221f8c484f2c08d843cdb0ab76 commit: 50d3d23d9c063541f9adce95d4dc7d3e3a4c7042 Author: Kent Fredric gentoo org> AuthorDate: Sun May 21 13:44:29 2017 +0000 Commit: Kent Fredric gentoo org> CommitDate: Sun May 21 15:05:00 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50d3d23d dev-lang/perl: Commonize SHORT_PV/MY_P/MY_PV calculation Package-Manager: Portage-2.3.5, Repoman-2.3.2 dev-lang/perl/perl-5.26.9999.ebuild | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dev-lang/perl/perl-5.26.9999.ebuild b/dev-lang/perl/perl-5.26.9999.ebuild index 5162f548470..58540d5d313 100644 --- a/dev-lang/perl/perl-5.26.9999.ebuild +++ b/dev-lang/perl/perl-5.26.9999.ebuild @@ -19,18 +19,19 @@ PERL_BIN_OLDVERSEN="" PERL_OLDVERSEN="5.26.0-RC1 5.25.12 5.25.11 5.24.2 5.24.1 5.24.0 5.22.3 5.22.2 5.22.1 5.22.0" if [[ "${PV##*.}" == "9999" ]]; then DIST_VERSION=5.26.0-RC1 - SHORT_PV="${DIST_VERSION%.*}" # Devel Releases are not ABI-intercompatible + # remove only trailing RC SUBSLOT="${DIST_VERSION%-RC*}" - MY_P="perl-${DIST_VERSION/_rc/-RC}" - MY_PV="${DIST_VERSION%-RC*}" else + DIST_VERSION="${PV/_rc/-RC}" # First 2 digits only - SHORT_PV="${PV%.*}" - SUBSLOT="${SHORT_PV}" - MY_P="perl-${PV/_rc/-RC}" - MY_PV="${PV%_rc*}" + SUBSLOT="${DIST_VERSION%.*}" fi +SHORT_PV="${DIST_VERSION%.*}" +# Used only in tar paths +MY_P="perl-${DIST_VERSION}" +# Used in library paths +MY_PV="${DIST_VERSION%-RC*}" DESCRIPTION="Larry Wall's Practical Extraction and Report Language"