Date: Tue, 12 Mar 2019 09:27:38 +0000 (UTC) From: Mateusz Piotrowski <0mp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r345057 - head/share/man/man7 Message-ID: <201903120927.x2C9Rc1B017630@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: 0mp (ports committer) Date: Tue Mar 12 09:27:37 2019 New Revision: 345057 URL: https://svnweb.freebsd.org/changeset/base/345057 Log: ports.7: Add an example of how to use flavors At the moment the manual page is not documenting how to build a flavored package. Let's start documenting flavors with an example of a typical use case. Reported by: cem, dim Reviewed by: bcr, cem, mat, matthew Approved by: cem (src) Differential Revision: https://reviews.freebsd.org/D19531 Modified: head/share/man/man7/ports.7 Modified: head/share/man/man7/ports.7 ============================================================================== --- head/share/man/man7/ports.7 Tue Mar 12 09:24:58 2019 (r345056) +++ head/share/man/man7/ports.7 Tue Mar 12 09:27:37 2019 (r345057) @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 12, 2019 +.Dd March 12, 2019 .Dt PORTS 7 .Os .Sh NAME @@ -587,7 +587,7 @@ The following command builds and installs Emacs. .Ed .It Sy Example 2\&: No Installing Dependencies with Xr pkg 8 .Pp -The following examples shows how to build and install a port without having to +The following example shows how to build and install a port without having to build its dependencies. Instead, the dependencies are downloaded via .Xr pkg 8 . @@ -603,6 +603,16 @@ The drawback is that .Xr pkg 8 offers only packages built with the default set of .Va OPTIONS . +.It Sy Example 3\&: No Building a Non-Default Flavor of a Port +.Pp +The following command builds a non-default flavor of a port. +(In this case +.Pa devel/py-pip +is going to be built with Python 3.7 support.) +.Bd -literal -offset 2n +.Li # Ic cd /usr/ports/devel/py-pip +.Li # Ic env FLAVOR=py37 make build +.Ed .El .Sh SEE ALSO .Xr make 1 ,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903120927.x2C9Rc1B017630>