From owner-freebsd-ports Sun Apr 9 1:12:25 2000 Delivered-To: freebsd-ports@freebsd.org Received: from maynard.mail.mindspring.net (maynard.mail.mindspring.net [207.69.200.243]) by hub.freebsd.org (Postfix) with ESMTP id 8D9D937B700 for ; Sun, 9 Apr 2000 01:12:22 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca5-83.ix.netcom.com [209.109.234.83]) by maynard.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id EAA24560 for ; Sun, 9 Apr 2000 04:12:20 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id BAA04016; Sun, 9 Apr 2000 01:12:18 -0700 (PDT) Date: Sun, 9 Apr 2000 01:12:18 -0700 (PDT) Message-Id: <200004090812.BAA04016@silvia.hip.berkeley.edu> X-Authentication-Warning: silvia.hip.berkeley.edu: asami set sender to asami@cs.berkeley.edu using -f To: ports@freebsd.org Subject: Re: proposal: PRENAME variable From: asami@freebsd.org (Satoshi Asami) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi ports, Michael came up with the following idea. What do you guys think? Basically we set PKGNAMEPREFIX to "ja-" or "p5-" or whatever when the package name has a language-specifier as noted in the handbook. It will help for ports that have their PKGNAME and DISTNAME only differ by that part (most of "p5-" ports and a lot of natural language ports). We can even put "PKGNAMEPREFIX=ja-" in ports/japanese/Makefile.inc and let the bsd.port.mk inclusion rule take care of most of the ports (except for those use MASTERDIR in another category). Satoshi ------- Index: bsd.port.mk =================================================================== RCS file: /usr/cvs/ports/Mk/bsd.port.mk,v retrieving revision 1.333 diff -u -r1.333 bsd.port.mk --- bsd.port.mk 2000/04/04 07:05:36 1.333 +++ bsd.port.mk 2000/04/09 08:08:19 @@ -43,8 +43,9 @@ # # PORTNAME - Name of software. # PORTVERSION - Version of software. -# PKGNAME - Always defined as ${PORTNAME}-${PORTVERSION}. Do not -# define this in your Makefile. +# PKGNAMEPREFIX - Prefix to specify that port is language-specific, etc. +# PKGNAME - Always defined as ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}. +# Do not define this in your Makefile. # DISTNAME - Name of port or distribution used in generating # WRKSRC and DISTFILES below (default: # ${PORTNAME}-${PORTVERSION}). @@ -1113,8 +1114,8 @@ @${ECHO} "${PKGNAME}: You need to define PORTNAME and PORTVERSION instead of PKGNAME." @${FALSE} .endif -PKGNAME= ${PORTNAME}-${PORTVERSION} -DISTNAME?= ${PKGNAME} +PKGNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} +DISTNAME?= ${PORTNAME}-${PORTVERSION} .else # old style PKGNAME?= ${DISTNAME} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message