From owner-freebsd-ports@freebsd.org Sun Apr 26 23:54:27 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 1F8D12C1299 for ; Sun, 26 Apr 2020 23:54:27 +0000 (UTC) (envelope-from samy.mahmoudi@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 499Pry6Vwxz48gx for ; Sun, 26 Apr 2020 23:54:26 +0000 (UTC) (envelope-from samy.mahmoudi@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id DBB3E2C1297; Sun, 26 Apr 2020 23:54:26 +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 DB2402C1295; Sun, 26 Apr 2020 23:54:26 +0000 (UTC) (envelope-from samy.mahmoudi@gmail.com) Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 499Pry3k4dz48gs; Sun, 26 Apr 2020 23:54:26 +0000 (UTC) (envelope-from samy.mahmoudi@gmail.com) Received: by mail-io1-xd2b.google.com with SMTP id w4so16942334ioc.6; Sun, 26 Apr 2020 16:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Xa8c0Pn1tbRsuO7+xOacHLf+NW3qDPDjHhCrSXxJCQE=; b=jFxwRTHFkVwiK+5QVQxox4j2R3f5/GsaucbmjoJmxCdTrDSqACJAqDgS+/F+52Ux4/ +KwVyX1pq+1x7Oy9m0kO5JFakuTXlVo/YSobMkDUOMJXbUugCIkEDjtLyLdrOFI+rc6p jiL3FfSTwE385E5eSyyM6yGlfEoqFerIuAjZ+4qyv96Tnn7QgXlJdqPhW1WD8NP5iSPJ tqUBmtYWcFZySrxdw+WyTleDyKiHxuU1bIDPN4M0emqVH2JAUfHAx8PHRQ2NTcfD/XOh wjHIkIM+l20lQ0LfiOAj3EdT9I3ZfFLm8sDbaKSEL4gPMyjE8cxPdstULwF2tBUxNBGm jRqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Xa8c0Pn1tbRsuO7+xOacHLf+NW3qDPDjHhCrSXxJCQE=; b=cTSegHg1X4gkmQxe9t1IwLQ0YEYXws94nkunDOt/g+dM3fh3+Bp3z+A8U6LDDyjmgt rwiOtgwfARlaUGSIhqspaDLoy7HkiWSGX4qTbCJKSS4bA6IXSoTWzB1E9CazSjPfAo1s zw689KQfGiU4EyDuPEFXo0odfy2dDtnRcogF47Rern5mlp83YMfwRCfH416hSvPJfkbP l9CmZmNDULmoNctPQfIME2x9G5BlIF1Tj8WbUFAn9pdXRZ/l9lI7HzmD7yXECpxF3oMP /YmF1iBk6Xww1HUQHlZY1+GKwM5XSu4LVO2KjigRsxWYulr7oc4vcPndoEBLpTlB9M7o xU+w== X-Gm-Message-State: AGi0PuasfgcK7CV7IozjHAkvrwaRAsCsBMcVYeMqzotyWE7Ou1kQAPXn ROuclEexHN5RTPgrqUMgteT0rpUiQVNlhnkUdLTXoD5R X-Google-Smtp-Source: APiQypIU4OJixGIxrUSleihV2CtmBVcnFobJ/RecBwnkd0hDLcGYi0ZOLQdQopxaK6nxDlK+uhJhc3HTgYDhBVFKBXo= X-Received: by 2002:a05:6602:1da:: with SMTP id w26mr18820687iot.191.1587945264635; Sun, 26 Apr 2020 16:54:24 -0700 (PDT) MIME-Version: 1.0 References: <51F445F4-9F4F-4B64-BFC3-FBCC337A8267@freebsd.org> In-Reply-To: <51F445F4-9F4F-4B64-BFC3-FBCC337A8267@freebsd.org> From: Samy Mahmoudi Date: Mon, 27 Apr 2020 01:54:12 +0200 Message-ID: Subject: Re: Using pkg in documentation To: Muhammad Moinur Rahman Cc: "ports@freebsd.org" , python@freebsd.org X-Rspamd-Queue-Id: 499Pry3k4dz48gs X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sun, 26 Apr 2020 23:54:27 -0000 Hi, What about using the meta-port lang/python ? You could write something like the following lines in your documentation: PY=`pkg rquery -r FreeBSD "%dn" lang/python | head -n 1 | sed "s/python//"` pkg install py${PY}-babel "-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. I hope this will help, Samy Mahmoudi