Index: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
===================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
+++ head/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.
+ ${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
@@ -1883,6 +1883,30 @@
${WRKDIR}/pkg-6dbb17b.
+
+ Use of USE_GITHUB with
+ DISTVERSIONPREFIX
+
+ 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.
+
+