From f507ad7318edbfd2fc22b25c0746601412111ad3 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Thu, 19 Mar 2015 20:01:45 +0000 Subject: [PATCH] Document the changes in USE_GITHUB. Differential Revision: https://reviews.freebsd.org/D2100 Approved by: brd Sponsored by: Absolight --- .../porters-handbook/makefiles/chapter.xml | 29 +++++-------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml index a6d6cffe4a..acfc9ee326 100644 --- a/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml @@ -1721,7 +1721,7 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealPeopleTTS/${PORTVERSION} GH - /${GH_ACCOUNT}/${GH_PROJECT}/legacy.tar.gz/${GH_TAGNAME}?dummy=/ + /${GH_ACCOUNT}/${GH_PROJECT}/tar.gz/${GH_TAGNAME} @@ -1806,7 +1806,6 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealPeopleTTS/${PORTVERSION} Variable Description Default - Mandatory @@ -1815,8 +1814,7 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealPeopleTTS/${PORTVERSION} GH_ACCOUNT Account name of the GitHub user hosting the project - none - Mandatory + ${PORTNAME} @@ -1830,21 +1828,10 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealPeopleTTS/${PORTVERSION} GH_TAGNAME Name of the tag to download (2.0.1, hash, ...) Using the name of a branch here is incorrect. It is - possible to do - GH_TAGNAME=${GH_COMMIT} to do a + also possible to use the hash of a commit id to do a snapshot ${DISTVERSION} - - - GH_COMMIT - first 7 digits of the commit that generated - GH_TAGNAME (see - git-describe(1)) - none - Mandatory - @@ -1863,13 +1850,12 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealPeopleTTS/${PORTVERSION} PORTVERSION= 1.2.7 USE_GITHUB= yes -GH_ACCOUNT= freebsd -GH_COMMIT= f53e577 +GH_ACCOUNT= freebsd It will automatically have MASTER_SITES set to GH GHC and WRKSRC to - ${WRKDIR}/freebsd-pkg-f53e577. + ${WRKDIR}/pkg-1.2.7. @@ -1889,13 +1875,12 @@ PORTVERSION= 1.3.0.a.20140411 USE_GITHUB= yes GH_ACCOUNT= freebsd GH_PROJECT= pkg -GH_TAGNAME= ${GH_COMMIT} -GH_COMMIT= 6dbb17b +GH_TAGNAME= 6dbb17b It will automatically have MASTER_SITES set to GH GHC and WRKSRC to - ${WRKDIR}/freebsd-pkg-6dbb17b. + ${WRKDIR}/pkg-6dbb17b.