Index: en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml =================================================================== --- en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml +++ en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml @@ -1829,8 +1829,8 @@ Name of the tag to download (2.0.1, hash, ...) Using the name of a branch here is incorrect. It is also possible to use the hash of a commit id to do a - snapshot - ${DISTVERSION} + snapshot. + ${DISTVERSIONFULL} @@ -1883,6 +1883,30 @@ ${WRKDIR}/pkg-6dbb17b. + + Use of <varname>USE_GITHUB</varname> with + <varname>DISTVERSIONPREFIX</varname> + + From time to time, GH_TAGNAME is a + slight variation from PORTREVISION. + For example if the version is 1.0.2, + the tag is v1.0.2. In those cases, it + is possible to use DISTVERSIONPREFIX or + DISTVERSIONSUFFIX: + + PORTNAME= foo +PORTVERSION= 1.0.2 +DISTVERSIONPREFIX= v + +USE_GITHUB= yes + + It will automatically set + GH_TAGNAME to + v1.0.2, while WRKSRC + will be kept to + ${WRKDIR}/foo-1.0.2. + +