Pick a less generic variable for a MODULE: VERSION -> NPM_VERSION

no objection from jeremy@
This commit is contained in:
ajacoutot 2012-04-04 05:48:15 +00:00
parent cace488897
commit 39247360ed
6 changed files with 14 additions and 14 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/04/03 18:49:11 jeremy Exp $
# $OpenBSD: Makefile,v 1.2 2012/04/04 05:48:15 ajacoutot Exp $
COMMENT = postgresql client for nodejs
VERSION = 0.6.10
NPM_VERSION = 0.6.10
NPM_NAME = pg
CATEGORIES = databases

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/04/03 18:46:03 jeremy Exp $
# $OpenBSD: Makefile,v 1.2 2012/04/04 05:48:15 ajacoutot Exp $
# Currently node itself is only for amd64 and i386, but
# the coroutine library this uses only works on amd64
@ -8,7 +8,7 @@ ONLY_FOR_ARCHS= amd64 i386
COMMENT = fiber/coroutine support for nodejs
VERSION = 0.6.4
NPM_VERSION = 0.6.4
NPM_NAME = fibers
CATEGORIES = devel

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/04/03 18:47:26 jeremy Exp $
# $OpenBSD: Makefile,v 1.2 2012/04/04 05:48:15 ajacoutot Exp $
COMMENT = generic resource pool for nodejs
VERSION = 1.0.9
NPM_VERSION = 1.0.9
NPM_NAME = generic-pool
CATEGORIES = devel

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.2 2012/04/03 18:36:52 jeremy Exp $
# $OpenBSD: Makefile,v 1.3 2012/04/04 05:48:15 ajacoutot Exp $
COMMENT = little language that compiles to javascript
VERSION = 1.2.0
NPM_VERSION = 1.2.0
NPM_NAME = coffee-script
PKGNAME = coffeescript-${VERSION}
PKGNAME = coffeescript-${NPM_VERSION}
CATEGORIES = lang
REVISION = 0

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/04/03 18:41:57 jeremy Exp $
# $OpenBSD: Makefile,v 1.2 2012/04/04 05:48:15 ajacoutot Exp $
COMMENT = bcrypt hashing library for nodejs
VERSION = 0.5.0
NPM_VERSION = 0.5.0
NPM_NAME = bcrypt
CATEGORIES = security

View File

@ -1,4 +1,4 @@
# $OpenBSD: node.port.mk,v 1.1 2012/04/03 18:32:12 jeremy Exp $
# $OpenBSD: node.port.mk,v 1.2 2012/04/04 05:48:15 ajacoutot Exp $
# node module
@ -25,11 +25,11 @@ PKG_ARCH ?= *
. endif
# The npm package repository separates packages in different directories,
# so to eliminate duplication, you need to set the NPM_NAME and VERSION
# so to eliminate duplication, you need to set the NPM_NAME and NPM_VERSION
# variables so it can use the correct DISTNAME and MASTER_SITES.
# The NPM_NAME is required anyway during the install tasks, so it may as
# well be used here.
DISTNAME ?= ${NPM_NAME}-${VERSION}
DISTNAME ?= ${NPM_NAME}-${NPM_VERSION}
MASTER_SITES ?= ${MASTER_SITE_NPM}${NPM_NAME}/-/
EXTRACT_SUFX ?= .tgz
PKGNAME ?= node-${DISTNAME}