From owner-freebsd-ports@freebsd.org Mon Apr 27 09:51:42 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CD43A2B1949 for ; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 499g6654nvz3Gqs for ; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id AE55E2B1946; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AE1042B1945; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 499g664DPjz3Gqr; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from mx.bofh.network (mx.bofh.network [IPv6:2001:19f0:5001:2b77:5400:2ff:fe7b:aa2c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.bofh.network", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: bofh/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 27F9B1C8C8; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from [IPv6:2402:54c0:ffff:ffff:3c3f:b695:df7f:e11d] ( [2402:54c0:ffff:ffff:3c3f:b695:df7f:e11d]) by mx.bofh.network (OpenSMTPD) with ESMTPSA id cc0fffc4 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 27 Apr 2020 09:51:34 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Using pkg in documentation From: Muhammad Moinur Rahman In-Reply-To: Date: Mon, 27 Apr 2020 15:51:31 +0600 Cc: "ports@freebsd.org" , python@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <1F41F6EB-D21F-4D87-9958-07C47EEF9ADD@freebsd.org> References: <51F445F4-9F4F-4B64-BFC3-FBCC337A8267@freebsd.org> To: Samy Mahmoudi X-Mailer: Apple Mail (2.3608.80.23.2.2) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2020 09:51:42 -0000 > On 27 Apr, 2020, at 05:54, Samy Mahmoudi = wrote: >=20 > Hi, >=20 > What about using the meta-port lang/python ? You could write something = like > the following lines in your documentation: > PY=3D`pkg rquery -r FreeBSD "%dn" lang/python | head -n 1 | sed = "s/python//"` > pkg install py${PY}-babel >=20 > "-r FreeBSD" can indeed be ommited in a default configuration where = the > user has not configured several repositories. As you cannot guarantee = that > last condition is met, I would suggest not to omit that part. >=20 > I hope this will help, > Samy Mahmoudi > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to = "freebsd-ports-unsubscribe@freebsd.org=E2=80=9D That=E2=80=99s one possible way of doing it. But we don=E2=80=99t have a = meta port for php so it=E2=80=99s not going to work for that. I am = looking for a uniform way of doing it.