Received: by mail.netbsd.org (Postfix, from userid 605) id 62ABC84D26; Thu, 12 Apr 2018 15:40:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 63C5784CD3 for ; Thu, 12 Apr 2018 15:40:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id vGUZYbqFLZcO for ; Thu, 12 Apr 2018 15:40:18 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 8DEA984CCC for ; Thu, 12 Apr 2018 15:40:18 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 7D956FBEC; Thu, 12 Apr 2018 15:40:18 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_152354761829480" MIME-Version: 1.0 Date: Thu, 12 Apr 2018 15:40:18 +0000 From: "Min Sik Kim" Subject: CVS commit: pkgsrc/math/R To: pkgsrc-changes@NetBSD.org Reply-To: minskim@netbsd.org X-Mailer: log_accum Message-Id: <20180412154018.7D956FBEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_152354761829480 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: minskim Date: Thu Apr 12 15:40:18 UTC 2018 Modified Files: pkgsrc/math/R: Makefile.extension Log Message: math/R: Derive R_PKGNAME and R_PKGVER from DISTNAME This reduces # of variables to define in an R extension package. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 pkgsrc/math/R/Makefile.extension Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_152354761829480 Content-Disposition: inline Content-Length: 879 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/math/R/Makefile.extension diff -u pkgsrc/math/R/Makefile.extension:1.21 pkgsrc/math/R/Makefile.extension:1.22 --- pkgsrc/math/R/Makefile.extension:1.21 Mon Apr 9 21:57:46 2018 +++ pkgsrc/math/R/Makefile.extension Thu Apr 12 15:40:18 2018 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.extension,v 1.21 2018/04/09 21:57:46 minskim Exp $ +# $NetBSD: Makefile.extension,v 1.22 2018/04/12 15:40:18 minskim Exp $ # # This Makefile fragment is included by packages for R library packages. # @@ -8,7 +8,12 @@ # for the package desired. # (2) Include this Makefile fragment in the package Makefile, +.if defined(DISTNAME) +R_PKGNAME?= ${DISTNAME:C/_.*//} +R_PKGVER?= ${DISTNAME:C/.*_//} +.else DISTNAME?= ${R_PKGNAME}_${R_PKGVER} +.endif PKGNAME?= R-${R_PKGNAME}-${R_PKGVER:S/-/./} MASTER_SITES?= ${MASTER_SITE_R_CRAN:=contrib/} DIST_SUBDIR?= R --_----------=_152354761829480--