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 @@ -1654,15 +1654,16 @@ Variables Shortcut abbreviations are available for popular - archives like SourceForge (SF), GNU - (GNU), or Perl CPAN - (CPAN). MASTER_SITES - can use them directly: + archives like SourceForge (SOURCEFORGE), + GNU (GNU), or Perl CPAN + (PERL_CPAN). + MASTER_SITES can use them + directly: MASTER_SITES= GNU/make The older expanded format still works, but all ports - should be converted to the compact format. The expanded + have been converted to the compact format. The expanded format looks like this: MASTER_SITES= ${MASTER_SITE_GNU} @@ -1687,24 +1688,89 @@ MASTER_SITES= FOO/bar + + + Some + MASTER_SITE_* + names are quite long, and for ease of use, shortcuts have + been defined: + + + Shortcuts for + <varname>MASTER_SITE_<replaceable>*</replaceable></varname> + Macros + + + + + Macro + Shortcut + + + + + + PERL_CPAN + CPAN + + + + GITHUB + GH + + + + GITHUB_CLOUD + GHC + + + + LIBREOFFICE_DEV + LODEV + + + + NETLIB + NL + + + + RUBYGEMS + RG + + + + SOURCEFORGE + SF + + + + SOURCEFORGE_JP + SFJP + + + +
+
Magic MASTER_SITES Macros - Several magic macros exist for + Several magic macros exist for popular sites with a predictable directory structure. For - these, just use the abbreviation and the system will try to - guess the correct subdirectory automatically. For a port + these, just use the abbreviation and the system will use a + same default subdirectory automatically. For a port named Stardict, of version 1.2.3, and hosted on SourceForge, adding this line: MASTER_SITES= SF - Will infer a subdirectory named + infers a subdirectory named /project/stardict/stardict/1.2.3. If the - guess is incorrect, it can be overridden as follows. + inferred directory is incorrect, it can be + overridden: MASTER_SITES= SF/stardict/WyabdcRealPeopleTTS/${PORTVERSION} @@ -1714,7 +1780,7 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealPeopleTTS/${PORTVERSION}
- Popular Magic <varname>MASTER_SITES</varname> + <title>Magic <varname>MASTER_SITES</varname> Macros @@ -1752,6 +1818,11 @@ + CPAN + ${PORTNAME:C/-.*//} + + + DEBIAN pool/main/${PORTNAME:C/^((lib)?.).*$/\1/}/${PORTNAME} @@ -1762,11 +1833,26 @@ + FESTIVAL + ${PORTREVISION} + + + GCC releases/${DISTNAME} + GENTOO + distfiles + + + + GIMP + ${PORTNAME}/${PORTVERSION:R}/ + + + GH ${GH_ACCOUNT}/${GH_PROJECT}/tar.gz/${GH_TAGNAME}?dummy=/ @@ -1777,22 +1863,17 @@ - GHL - ${GH_ACCOUNT}/${GH_PROJECT}/legacy.tar.gz/${GH_TAGNAME}?dummy=/ - - - GNOME sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} - GIMP - ${PORTNAME}/${PORTVERSION:R}/ + GNU + ${PORTNAME} - GNU + GNUPG ${PORTNAME} @@ -1827,8 +1908,13 @@ - CPAN - ${PORTNAME:C/-.*//} + QT + archive/qt/${PORTVERSION:R} + + + + SAMBA + ${PORTNAME}