pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Add PKGVERSION_NOREV to complemenet PKGNAME_NOREV.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5ae41148ae57
branches:  trunk
changeset: 539576:5ae41148ae57
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Mar 08 14:28:05 2008 +0000

description:
Add PKGVERSION_NOREV to complemenet PKGNAME_NOREV.

diffstat:

 mk/bsd.pkg.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r f293f63372e8 -r 5ae41148ae57 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sat Mar 08 14:21:12 2008 +0000
+++ b/mk/bsd.pkg.mk     Sat Mar 08 14:28:05 2008 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1939 2008/02/26 13:46:21 joerg Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1940 2008/03/08 14:28:05 joerg Exp $
 #
 # This file is in the public domain.
 #
@@ -61,6 +61,7 @@
 
 PKGBASE?=              ${PKGNAME:C/-[^-]*$//}
 PKGVERSION?=           ${PKGNAME:C/^.*-//}
+PKGVERSION?=           ${PKGNAME:C/^.*-//}
 .if defined(PKGREVISION) && !empty(PKGREVISION) && (${PKGREVISION} != "0")
 .  if defined(PKGNAME)
 PKGNAME_NOREV:=                ${PKGNAME}
@@ -73,6 +74,7 @@
 PKGNAME?=              ${DISTNAME}
 PKGNAME_NOREV=         ${PKGNAME}
 .endif
+PKGVERSION_NOREV=      ${PKGNAME_NOREV:C/^.*-//}
 
 # A meta-package is a package that does not have any files and whose
 # only purpose is to depend on other packages, giving that collection



Home | Main Index | Thread Index | Old Index