Date: Sun, 12 Sep 2021 14:56:47 +0200 From: Harry Schmalzbauer <freebsd@omnilan.de> To: Mel Pilgrim <list_freebsd@bluerosetech.com>, freebsd-ports@freebsd.org Subject: Re: How do I depend on a flavoured PHP port? The Handbook is wrong?? Message-ID: <d294fcb0-ed58-2a8c-6d07-7330c283a801@omnilan.de> In-Reply-To: <776bba3c-0bc1-85a9-8a06-b8ed5ffeb19f@bluerosetech.com> References: <7baa71b4-1459-83ae-a532-56e33956dd3a@bluerosetech.com> <PSAPR03MB5639C53D2110B7105DBF802FFAD39@PSAPR03MB5639.apcprd03.prod.outlook.com> <776bba3c-0bc1-85a9-8a06-b8ed5ffeb19f@bluerosetech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 07.09.2021 um 04:15 schrieb Mel Pilgrim: > On 2021-09-06 17:35, Tatsuki Makino wrote: >> Mel Pilgrim wrote on 2021/09/04 09:36: >>> I'm trying to add a dependency on a flavoured PHP application, but >>> the Porter's Handbook (section 7.3.1) instructions don't work. It >>> says to just add "@${PHP_FLAVOR}" but that's an empty variable. >>> >>> I can't add php:flavors to the USES line because that then requires >>> this port be flavoured as if it were itself a PHP application (it's >>> not, it's just a metaport). >>> >>> Adding "php" to USES works, but adds an unnecessary lang/php?? >>> dependency. >>> >>> What I need is the PHP counterpart to python:env, but I can't seem >>> to find it? >>> >> >> The RUN_DEPENDS+= near line 271 of Mk/Uses/php.mk seems to always be >> executed. >> It would be an excessive dependency if PHP was used as a script just >> for building. >> >> That's what this is about, isn't it? :) > > It's for a metaport that wants to add a flavored PHP port to > RUN_DEPENDS; but yes, needing PHP as a BUILD_DEPEND would probably be > another example. > I can't remember if this still is undocumented... and if I already reported that this is missing to be documented. Also can't remember where I found that it can look like this, most likely underneith ports/Mk: .if ${PORT_OPTIONS:MGITT} RUN_DEPENDS= git:${PORTSDIR}/devel/git@tiny .endif It's from one of my local meta-ports. As far as I remember, it worked as intended. Best, -harry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d294fcb0-ed58-2a8c-6d07-7330c283a801>