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
This commit is contained in:
parent
5437c8b88e
commit
96fdbc90b2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345057
@ -25,7 +25,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd February 12, 2019
|
.Dd March 12, 2019
|
||||||
.Dt PORTS 7
|
.Dt PORTS 7
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -587,7 +587,7 @@ The following command builds and installs Emacs.
|
|||||||
.Ed
|
.Ed
|
||||||
.It Sy Example 2\&: No Installing Dependencies with Xr pkg 8
|
.It Sy Example 2\&: No Installing Dependencies with Xr pkg 8
|
||||||
.Pp
|
.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.
|
build its dependencies.
|
||||||
Instead, the dependencies are downloaded via
|
Instead, the dependencies are downloaded via
|
||||||
.Xr pkg 8 .
|
.Xr pkg 8 .
|
||||||
@ -603,6 +603,16 @@ The drawback is that
|
|||||||
.Xr pkg 8
|
.Xr pkg 8
|
||||||
offers only packages built with the default set of
|
offers only packages built with the default set of
|
||||||
.Va OPTIONS .
|
.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
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr make 1 ,
|
.Xr make 1 ,
|
||||||
|
Loading…
Reference in New Issue
Block a user