Subject: hyphen in package version
To: None <tech-pkg@netbsd.org>
From: SUNAGAWA Keiki <Keiki_SUNAGAWA@yokogawa.co.jp>
List: tech-pkg
Date: 10/21/1999 09:53:43
Hi,

I updated php3 pkg to php-3.0.12jp-beta4, which is
i18n-version of php-3.0.12, to use Japanese with it.

The problem is that it contains a hyphen in it's version
number (3.0.12jp-beta4).

I heard pkg's version number should not contain a hyphen, so
I changed php3/Makefile as below, but found other pkgs e.g.
php3-pgsql defines its PKGNAME as php-pgsql-${PHP_VERSION}.

Where is the right way?  Should I replace PKGNAMEs around of
related pkg or not (I think I shouldn't)?

Comments, suggestions, etc. are appriciated.

--- /usr/pkgsrc/www/php3.orig/Makefile	Wed Jun 16 20:38:43 1999
+++ /usr/pkgsrc/www/php3/Makefile	Thu Oct 21 09:06:53 1999
@@ -2,15 +2,17 @@
 #
 
 DISTNAME=	php-${PHP_VERSION}
+PKGNAME?=	php-3.0.12jp_beta4
 CATEGORIES=	www
-MASTER_SITES=	ftp://ftp.php.net/pub/distributions/
+MASTER_SITES=	http://php.jpnet.com/ \
+		ftp://ftp.happysize.co.jp/php-ja-jp/
 
 MAINTAINER=	cjs@netbsd.org
 HOMEPAGE=	http://www.php.net/
 
 # This is needed because other pkgs .include this Makefile
 DISTFILES+=	${DISTNAME}.tar.gz
-PHP_VERSION=	3.0.7
+PHP_VERSION=	3.0.12jp-beta4
 
 DEPENDS+=	gdbm-1.7.3:../../databases/gdbm
 
@@ -28,7 +30,8 @@
 		--with-exec-dir=${PREFIX}/libexec/php3 \
 		--enable-track-vars --enable-force-cgi-redirect \
 		--enable-discard-path --enable-memory-limit \
-		--enable-sysvsem --enable-sysvshm
+		--enable-sysvsem --enable-sysvshm \
+		--enable-i18n --enable-mbregex
 CONFIGURE_ENV+=	PERL_PATH=${LOCALBASE}/bin/perl
 
 .if !defined(BUILDING_EXTENSION_MODULE)


--
SUNAGAWA Keiki <Keiki_SUNAGAWA@yokogawa.co.jp>