From owner-svn-src-head@freebsd.org Sun Dec 30 00:27:29 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 215581431BCB; Sun, 30 Dec 2018 00:27:29 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA1EA8B5BC; Sun, 30 Dec 2018 00:27:28 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9FA781AAF8; Sun, 30 Dec 2018 00:27:28 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBU0RSsP063061; Sun, 30 Dec 2018 00:27:28 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBU0RSpv063060; Sun, 30 Dec 2018 00:27:28 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <201812300027.wBU0RSpv063060@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Sun, 30 Dec 2018 00:27:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r342602 - head/share/man/man7 X-SVN-Group: head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: head/share/man/man7 X-SVN-Commit-Revision: 342602 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: BA1EA8B5BC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.95)[-0.955,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.998,0] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Dec 2018 00:27:29 -0000 Author: 0mp (ports committer) Date: Sun Dec 30 00:27:28 2018 New Revision: 342602 URL: https://svnweb.freebsd.org/changeset/base/342602 Log: ports.7: Add an example of getting dependencies without building them While here, improve formatting of the EXAMPLES section in general. Reviewed by: bcr Approved by: bcr (doc) Approved by: krion (mentor, implicit), mat (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D18682 Modified: head/share/man/man7/ports.7 Modified: head/share/man/man7/ports.7 ============================================================================== --- head/share/man/man7/ports.7 Sat Dec 29 23:08:59 2018 (r342601) +++ head/share/man/man7/ports.7 Sun Dec 30 00:27:28 2018 (r342602) @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 20, 2018 +.Dd December 30, 2018 .Dt PORTS 7 .Os .Sh NAME @@ -537,11 +537,33 @@ The default ports directory. The big Kahuna. .El .Sh EXAMPLES -Build and install Emacs: -.Bd -literal -offset indent -cd /usr/ports/editors/emacs -make install +.Bl -tag -width 0n +.It Sy Example 1\&: No Building and Installing a Port +.Pp +The following command builds and installs Emacs. +.Bd -literal -offset 2n +.Li # Ic cd /usr/ports/editors/emacs +.Li # Ic make install .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 +build its dependencies. +Instead, the dependencies are downloaded via +.Xr pkg 8 . +.Bd -literal -offset 2n +.Li # Ic make missing | xargs pkg install --automatic --yes +.Li # Ic make install +.Ed +.Pp +It is especially useful, when the dependencies are costly +in time and resources to build +.Pq like Pa lang/rust . +The drawback is that +.Xr pkg 8 +offers only packages built with the default set of +.Va OPTIONS . +.El .Sh SEE ALSO .Xr make 1 , .Xr make.conf 5 ,