Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 15:20:54 -0600 (CST)
From:      "Brandon D. Valentine" <ports@brandon.dvalentine.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/63083: [patch] bsd.port.mk proposal: UNIQUENAME in DOCSDIR, et al.
Message-ID:  <200402192120.i1JLKskp023845@dallben.prydain.us>
Resent-Message-ID: <200402192130.i1JLUGq3061670@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         63083
>Category:       ports
>Synopsis:       [patch] bsd.port.mk proposal: UNIQUENAME in DOCSDIR, et al.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 19 13:30:16 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Brandon D. Valentine
>Release:        FreeBSD 5.2.1-RC2 i386
>Organization:
N/A
>Environment:
System: FreeBSD dallben.prydain.us 5.2.1-RC2 FreeBSD 5.2.1-RC2 #0: Wed Feb 11 18:49:59 CST 2004 root@dallben.prydain.us:/usr/obj/usr/src/sys/DALLBEN i386

>Description:

  I propose the attached small change to bsd.port.mk which will define
  DOCSDIR, EXAMPLESDIR and DATADIR using UNIQUENAME rather than
  PORTNAME.  This seems to be the right thing to do for the same reasons
  that UNIQUENAME is valuable in OPTIONSFILE.  There any many PORTNAME
  conflicts in the tree and using PORTNAME to define DOCSDIR,
  EXAMPLESDIR, and DATADIR may cause collisions.

>How-To-Repeat:
	N/A
>Fix:

--- bsd.port.mk-dir_20040219.patch begins here ---
Index: ports/Mk/bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.484
diff -u -r1.484 bsd.port.mk
--- ports/Mk/bsd.port.mk	4 Feb 2004 04:27:04 -0000	1.484
+++ ports/Mk/bsd.port.mk	19 Feb 2004 21:09:53 -0000
@@ -2760,9 +2760,9 @@
 .endif
 .endif
 
-DOCSDIR?=	${PREFIX}/share/doc/${PORTNAME}
-EXAMPLESDIR?=	${PREFIX}/share/examples/${PORTNAME}
-DATADIR?=	${PREFIX}/share/${PORTNAME}
+DOCSDIR?=	${PREFIX}/share/doc/${UNIQUENAME}
+EXAMPLESDIR?=	${PREFIX}/share/examples/${UNIQUENAME}
+DATADIR?=	${PREFIX}/share/${UNIQUENAME}
 
 PLIST_SUB+=	DOCSDIR="${DOCSDIR:S,^${PREFIX}/,,}" \
 		EXAMPLESDIR="${EXAMPLESDIR:S,^${PREFIX}/,,}" \
--- bsd.port.mk-dir_20040219.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402192120.i1JLKskp023845>