Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2002 13:32:10 -0500
From:      Alan Eldridge <alane@geeksrus.net>
To:        Sergey Skvortsov <skv@protey.ru>
Cc:        ports@FreeBSD.ORG, portmgr@FreeBSD.ORG
Subject:   Re: patch for ports/Mk/bsd.port.mk
Message-ID:  <20020126183209.GA67709@wwweasel.geeksrus.net>
In-Reply-To: <3C52F476.CA20E11E@protey.ru>
References:  <200201251504.g0PF4Re43715@freefall.freebsd.org> <20020125160633.GA70080@wwweasel.geeksrus.net> <3C52F476.CA20E11E@protey.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 26, 2002 at 09:24:54PM +0300, Sergey Skvortsov wrote:
>Eldridge wrote:
>> 
>> How about:
>>                 ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
>
>I think no.
>${PKGNAMESUFFIX} is "Suffix to specify compilation options".
>Imho DOCS, EXAMPLES, DATA can't be different for port which different only
>in compilation options. But not sure for DATA.

You are correct here.

>> >+DATADIR?=     ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
>> Are you *SURE* about this one? I'd hate to see things break because of
>> hidden assumptions that packages have about this.
>
>No, I don't sure and want to listen other opinions & suggestions.
>
>Maybe current xxxDIRs are adequate for common cases and solution is next:
>override these variables for some well-known prefixes (like p5-, ruby-, py-)?

I think you're correct that we need to at least put the prefix in front
of DOCSDIR, and EXAMPLESDIR should follow DOCSDIR, so as not to confuse the
hell out of people, since both those directories are intended for use by
*people*, not programs.

>Moreover, maybe best solution is
>DATADIR?=     ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}
>because its semantics?
>I doubt whether it's a good idea :)

So do I. I think leaving DATADIR alone is probably a good idea.

>Other way - localize these changes to bsd.perl.mk or variables like PERL_(DOCS|EXAMPLES|DATA)DIR.
>This way seems not elegant to me.

Py- (or py22-) ports need it, too. :) And ruby, etc, etc.	

-- 
Alan Eldridge
Pmmfmffmmfmp mmmpppppffmpmfpmpppff PmpMpmMpp ppfppp MpfpffmppmppMmpFmmMpm 
mfpmmmmmfpmpmpppff.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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