From owner-svn-doc-all@freebsd.org Mon Jun 29 15:17:23 2015 Return-Path: Delivered-To: svn-doc-all@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 7B0AA98FDED; Mon, 29 Jun 2015 15:17:23 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 6BB0E2F8E; Mon, 29 Jun 2015 15:17:23 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5TFHN5F085108; Mon, 29 Jun 2015 15:17:23 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5TFHNYD085107; Mon, 29 Jun 2015 15:17:23 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201506291517.t5TFHNYD085107@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Mon, 29 Jun 2015 15:17:23 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r46893 - 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-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2015 15:17:23 -0000 Author: mat Date: Mon Jun 29 15:17:22 2015 New Revision: 46893 URL: https://svnweb.freebsd.org/changeset/doc/46893 Log: Catch up with newly created macros. Approved by: wblock (mentor) Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D2539 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 Mon Jun 29 15:16:38 2015 (r46892) +++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Mon Jun 29 15:17:22 2015 (r46893) @@ -1654,15 +1654,16 @@ PORTEPOCH= 1 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_SITE_SUBDIR= makeMASTER_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 choose + a 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= make - Popular Magic <varname>MASTER_SITES</varname> + <title>Magic <varname>MASTER_SITES</varname> Macros @@ -1752,6 +1818,11 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealP + CPAN + ${PORTNAME:C/-.*//} + + + DEBIAN pool/main/${PORTNAME:C/^((lib)?.).*$/\1/}/${PORTNAME} @@ -1762,11 +1833,26 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealP + 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 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealP - 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 @@ MASTER_SITE_SUBDIR= stardict/WyabdcRealP - CPAN - ${PORTNAME:C/-.*//} + QT + archive/qt/${PORTVERSION:R} + + + + SAMBA + ${PORTNAME}