aboutsummaryrefslogtreecommitdiff
path: root/share/man/man7
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2019-03-12 09:27:37 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2019-03-12 09:27:37 +0000
commit96fdbc90b25d86756e90dd5aea16c8204bd59068 (patch)
treef0c03edd1501eea11143d13b60c1a79f4434fa84 /share/man/man7
parent5437c8b88e7c8074da51580129d57719c5cc8f7f (diff)
downloadsrc-96fdbc90b25d86756e90dd5aea16c8204bd59068.tar.gz
src-96fdbc90b25d86756e90dd5aea16c8204bd59068.zip
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
Notes
Notes: svn path=/head/; revision=345057
Diffstat (limited to 'share/man/man7')
-rw-r--r--share/man/man7/ports.714
1 files changed, 12 insertions, 2 deletions
diff --git a/share/man/man7/ports.7 b/share/man/man7/ports.7
index 51ae35959415..ae885d79a10b 100644
--- a/share/man/man7/ports.7
+++ b/share/man/man7/ports.7
@@ -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 ,