From owner-svn-doc-head@freebsd.org Tue Mar 1 20:23:19 2016 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50AD8ABD962; Tue, 1 Mar 2016 20:23:19 +0000 (UTC) (envelope-from mat@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 mx1.freebsd.org (Postfix) with ESMTPS id 2DF1818CE; Tue, 1 Mar 2016 20:23:19 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u21KNIl9011441; Tue, 1 Mar 2016 20:23:18 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u21KNI7H011440; Tue, 1 Mar 2016 20:23:18 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201603012023.u21KNI7H011440@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Tue, 1 Mar 2016 20:23:18 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r48308 - head/en_US.ISO8859-1/books/porters-handbook/makefiles X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2016 20:23:19 -0000 Author: mat Date: Tue Mar 1 20:23:18 2016 New Revision: 48308 URL: https://svnweb.freebsd.org/changeset/doc/48308 Log: Add a bit of documentation about the upcoming GH_TUPLE. PR: 204772 Reviewed by: wblock Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D5509 Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Tue Mar 1 16:41:09 2016 (r48307) +++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Tue Mar 1 20:23:18 2016 (r48308) @@ -1977,10 +1977,27 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealP snapshot. ${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} + + + GH_TUPLE + GH_TUPLE allows putting all + the GH_ACCOUNT, + GH_PROJECT, and + GH_TAGNAME into one variable. The + format is + account:project:tagname:group. + It is helpful when there is more than one GitHub + project from which to fetch. + + + Do not use GH_TUPLE for the default + distribution file, as it has no default. + + Simple Use of <varname>USE_GITHUB</varname> @@ -2052,7 +2069,7 @@ USE_GITHUB= yes ${WRKDIR}/foo-1.0.2. - + Fetching Multiple Files from GitHub The USE_GITHUB framework also @@ -2071,6 +2088,11 @@ USE_GITHUB= yes . + GH_TUPLE can also be used when there + are a lot of distribution files. It helps keep the account, + project, tagname, and group information at the same + place. + For each tag, a ${WRKSRC_tag} helper variable is created, containing the directory into @@ -2133,6 +2155,33 @@ post-extract: ${WRKSRC_contrib} and contains ${WRKDIR}/foo-contrib-fa579bc. + + + Use of <varname>USE_GITHUB</varname> with Multiple + Distribution Files Using + <varname>GH_TUPLE</varname> + + This is functionally equivalent to , but + using GH_TUPLE: + + PORTNAME= foo +PORTVERSION= 1.0.2 + +USE_GITHUB= yes +GH_TUPLE= bar:foo-icons:1.0:icons \ + bar:foo-contrib:fa579bc:contrib + +CONFIGURE_ARGS= --with-contrib=${WRKSRC_contrib} + +post-extract: + @${MV} ${WRKSRC_icons} ${WRKSRC}/icons + + Grouping was used in the previous example with + bar:icons,contrib. Some redundant + information is present with GH_TUPLE + because grouping is not possible. +