From owner-svn-doc-head@freebsd.org Fri Jun 10 23:23:34 2016 Return-Path: Delivered-To: svn-doc-head@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 4C8B3AEF484; Fri, 10 Jun 2016 23:23:34 +0000 (UTC) (envelope-from jgh@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 2796220EB; Fri, 10 Jun 2016 23:23:34 +0000 (UTC) (envelope-from jgh@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u5ANNXhe041516; Fri, 10 Jun 2016 23:23:33 GMT (envelope-from jgh@FreeBSD.org) Received: (from jgh@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u5ANNXX6041513; Fri, 10 Jun 2016 23:23:33 GMT (envelope-from jgh@FreeBSD.org) Message-Id: <201606102323.u5ANNXX6041513@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jgh set sender to jgh@FreeBSD.org using -f From: Jason Helfman Date: Fri, 10 Jun 2016 23:23:33 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r48913 - in head/en_US.ISO8859-1/books/porters-handbook: makefiles porting-samplem special X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2016 23:23:34 -0000 Author: jgh Date: Fri Jun 10 23:23:32 2016 New Revision: 48913 URL: https://svnweb.freebsd.org/changeset/doc/48913 Log: - remove applicable ${PORTSDIR} referrences PR: 210066 Reported by: rwestlun@gmail.com Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml head/en_US.ISO8859-1/books/porters-handbook/porting-samplem/chapter.xml head/en_US.ISO8859-1/books/porters-handbook/special/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 Fri Jun 10 23:10:09 2016 (r48912) +++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Fri Jun 10 23:23:32 2016 (r48913) @@ -3239,7 +3239,7 @@ ALWAYS_KEEP_DISTFILES= yes directory in which to find it in case it is not available. For example, - LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg + LIB_DEPENDS= libjpeg.so:graphics/jpeg will check for a shared jpeg library with any version, and descend into the graphics/jpeg @@ -3274,8 +3274,8 @@ ALWAYS_KEEP_DISTFILES= yes For example, - RUN_DEPENDS= ${LOCALBASE}/news/bin/innd:${PORTSDIR}/news/inn \ - xmlcatmgr:${PORTSDIR}/textproc/xmlcatmgr + RUN_DEPENDS= ${LOCALBASE}/news/bin/innd:news/inn \ + xmlcatmgr:textproc/xmlcatmgr will check if the file or directory /usr/local/news/bin/innd exists, and @@ -3335,8 +3335,8 @@ ALWAYS_KEEP_DISTFILES= yes BUILD_DEPENDS and RUN_DEPENDS: - MY_DEPENDS= some:${PORTSDIR}/devel/some \ - other:${PORTSDIR}/lang/other + MY_DEPENDS= some:devel/some \ + other:lang/other BUILD_DEPENDS= ${MY_DEPENDS} RUN_DEPENDS= ${MY_DEPENDS} @@ -3358,7 +3358,7 @@ RUN_DEPENDS= ${MY_DEPENDS}path:dir:target tuples. For example, - BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip + BUILD_DEPENDS= unzip:archivers/unzip will check for an executable called unzip, and descend into the @@ -3382,7 +3382,7 @@ RUN_DEPENDS= ${MY_DEPENDS}path:dir:target tuples. For example, - FETCH_DEPENDS= ncftp2:${PORTSDIR}/net/ncftp2 + FETCH_DEPENDS= ncftp2:net/ncftp2 will check for an executable called ncftp2, and descend into the @@ -3403,7 +3403,7 @@ RUN_DEPENDS= ${MY_DEPENDS}path:dir:target tuples. For example, - EXTRACT_DEPENDS= unzip:${PORTSDIR}/archivers/unzip + EXTRACT_DEPENDS= unzip:archivers/unzip will check for an executable called unzip, and descend into the @@ -3433,7 +3433,7 @@ RUN_DEPENDS= ${MY_DEPENDS}path:dir:target tuples. For example, - PATCH_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/java/jfc:extract + PATCH_DEPENDS= ${NONEXISTENT}:java/jfc:extract will descend into the java/jfc subdirectory of the ports tree to extract it. @@ -3560,7 +3560,7 @@ RUN_DEPENDS= ${MY_DEPENDS}LIB_DEPENDS using this syntax: - p5-Spiffy>=0.26:${PORTSDIR}/devel/p5-Spiffy + p5-Spiffy>=0.26:devel/p5-Spiffy The first field contains a dependent package name, which must match the entry in the package database, a comparison @@ -3598,7 +3598,7 @@ RUN_DEPENDS= ${MY_DEPENDS} - BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/jpeg:extract + BUILD_DEPENDS= ${NONEXISTENT}:graphics/jpeg:extract will always descend to the jpeg port and extract it. @@ -3640,7 +3640,7 @@ RUN_DEPENDS= ${MY_DEPENDS}.include <bsd.port.pre.mk> .if exists(${LOCALBASE}/bin/foo) -LIB_DEPENDS= libbar.so:${PORTSDIR}/foo/bar +LIB_DEPENDS= libbar.so:foo/bar .endif @@ -3660,7 +3660,7 @@ LIB_DEPENDS= libbar.so:${PORTSDIR}/foo/b OPTIONS_DEFINE= BAR BAR_DESC= Calling cellphones via bar -BAR_LIB_DEPENDS= libbar.so:${PORTSDIR}/foo/bar +BAR_LIB_DEPENDS= libbar.so:foo/bar Testing option variables is the correct method. It will @@ -3972,7 +3972,7 @@ OPTIONS_DEFAULT=FOO # Will add --with-foo / --without-foo FOO_CONFIGURE_WITH= foo -BAR_RUN_DEPENDS= bar:${PORTSDIR}/bar/bar +BAR_RUN_DEPENDS= bar:bar/bar .include <bsd.port.mk> @@ -4019,7 +4019,7 @@ PGSQL_USE= pgsql=yes # Will add --enable-postgres / --disable-postgres PGSQL_CONFIGURE_ENABLE= postgres -ICU_LIB_DEPENDS= libicuuc.so:${PORTSDIR}/devel/icu +ICU_LIB_DEPENDS= libicuuc.so:devel/icu # Will add --with-examples / --without-examples EXAMPLES_CONFIGURE_WITH= examples @@ -4080,7 +4080,7 @@ EXAMPLES_CONFIGURE_WITH= examples Wrong Handling of an Option .if ${PORT_OPTIONS:MFOO} -LIB_DEPENDS+= libfoo.so:${PORTSDIR}/devel/foo +LIB_DEPENDS+= libfoo.so:devel/foo CONFIGURE_ARGS+= --enable-foo .endif @@ -4098,7 +4098,7 @@ CONFIGURE_ARGS+= --enable-foo Correct Handling of an Option - FOO_LIB_DEPENDS= libfoo.so:${PORTSDIR}/devel/foo + FOO_LIB_DEPENDS= libfoo.so:devel/foo # Will add --enable-foo / --disable-foo FOO_CONFIGURE_ENABLE= foo @@ -4603,8 +4603,8 @@ BIN3_BUILD= no selected. For example: OPTIONS_DEFINE= OPT1 -OPT1_LIB_DEPENDS= liba.so:${PORTSDIR}/devel/a -OPT1_LIB_DEPENDS_OFF= libb.so:${PORTSDIR}/devel/b +OPT1_LIB_DEPENDS= liba.so:devel/a +OPT1_LIB_DEPENDS_OFF= libb.so:devel/b is equivalent to: @@ -4613,9 +4613,9 @@ OPT1_LIB_DEPENDS_OFF= libb.so:${PORTSDIR .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MOPT1} -LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a +LIB_DEPENDS+= liba.so:devel/a .else -LIB_DEPENDS+= libb.so:${PORTSDIR}/devel/b +LIB_DEPENDS+= libb.so:devel/b .endif Modified: head/en_US.ISO8859-1/books/porters-handbook/porting-samplem/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/porting-samplem/chapter.xml Fri Jun 10 23:10:09 2016 (r48912) +++ head/en_US.ISO8859-1/books/porters-handbook/porting-samplem/chapter.xml Fri Jun 10 23:23:32 2016 (r48913) @@ -66,7 +66,7 @@ MAINTAINER= asami@FreeBSD.org COMMENT= DVI Previewer for the X Window System [dependencies -- can be empty] -RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript +RUN_DEPENDS= gs:print/ghostscript [this section is for other standard bsd.port.mk variables that do not belong to any of the above] Modified: head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml Fri Jun 10 23:10:09 2016 (r48912) +++ head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml Fri Jun 10 23:23:32 2016 (r48913) @@ -840,7 +840,7 @@ CMAKE_SOURCE_PATH= ${WRKSRC}/subp libltdl.so, add a dependency on it: - LIB_DEPENDS= libltdl.so:${PORTSDIR}/devel/libltdl + LIB_DEPENDS= libltdl.so:devel/libltdl @@ -1148,7 +1148,7 @@ PLIST_SUB+= NLS="@comment " Perl Dependency Example - p5-IO-Tee>=0.64:${PORTSDIR}/devel/p5-IO-Tee + p5-IO-Tee>=0.64:devel/p5-IO-Tee For Perl ports that install manual pages, the macro