From liukang@bjpu.edu.cn  Thu Sep  4 10:11:42 2003
Return-Path: <liukang@bjpu.edu.cn>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 917CF16A4BF
	for <freebsd-gnats-submit@freebsd.org>; Thu,  4 Sep 2003 10:11:42 -0700 (PDT)
Received: from bjpu.edu.cn (egw.bjpu.edu.cn [202.112.78.77])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 416D843F93
	for <freebsd-gnats-submit@freebsd.org>; Thu,  4 Sep 2003 10:11:41 -0700 (PDT)
	(envelope-from liukang@bjpu.edu.cn)
Received: (eyou gateway send program); Fri, 05 Sep 2003 01:10:52 +0800
Received: from unknown (HELO ssc) (unknown@61.51.121.146)
 by 202.112.78.77 with ; Fri, 05 Sep 2003 01:10:52 +0800
Message-Id: <000301c37308$1097eaf0$0501a8c0@ssc>
Date: Fri, 5 Sep 2003 01:14:56 +0800
From: "Kang Liu" <liukang@bjpu.edu.cn>
To: <FreeBSD-gnats-submit@freebsd.org>
Subject: [patch]Add EXTRACT_DEPENDS&PATCH_DEPENDS in Porter's Handbook

>Number:         56452
>Category:       docs
>Synopsis:       [patch]Add EXTRACT_DEPENDS&PATCH_DEPENDS in Porter's Handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 04 10:20:11 PDT 2003
>Closed-Date:    Tue Jan 20 13:09:55 PST 2004
>Last-Modified:  Tue Jan 20 13:09:55 PST 2004
>Originator:     Kang Liu
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
Beijing University of Technology
>Environment:
System: FreeBSD ipfwtest.frontfree.net 5.1-CURRENT FreeBSD 5.1-CURRENT #9: Sat Aug 9 22:50:36 CST 2003
root@testipfw.bjpu.edu.cn:/usr/obj/usr/src/sys/IPFW i386
>Description:
EXTRACT_DEPENDS and PATCH_DEPENDS was added into bsd.port.mk in March. (PR: 29856)
The porter's book is not up to date in section 4.7 Dependencies.
>How-To-Repeat:
n/a
>Fix:
Index: book.sgml
===================================================================
RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v
retrieving revision 1.324
diff -u -r1.324 book.sgml
--- book.sgml	2 Sep 2003 16:25:19 -0000	1.324
+++ book.sgml	4 Sep 2003 16:54:31 -0000
@@ -1,7 +1,7 @@
 <!--
      The FreeBSD Documentation Project

-     $FreeBSD: doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v 1.324 2003/09/02 16:25:19 glewis Exp $
+     $FreeBSD: /repoman/r/dcvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v 1.324 2003/09/02 16:25:19 glewis Exp $
 -->

 <!DOCTYPE BOOK PUBLIC "-//FreeBSD//DTD DocBook V4.1-Based Extension//EN" [
@@ -2722,6 +2722,61 @@
         </sect2>

         <sect2>
+          <title><makevar>FETCH_DEPENDS</makevar></title>
+
+          <para>This variable specifies executables or files this port
+            requires to fetch.  Like the previous two, it is a list of
+            <replaceable>path</replaceable>:<replaceable>dir</replaceable><optional><replaceable>:target</replaceable></optional>
+            tuples.  For example, <programlisting> FETCH_DEPENDS=
+              ncftp2:${PORTSDIR}/net/ncftp2</programlisting> will check for an
+            executable called <command>ncftp2</command>, and descend into the
+            <filename>net/ncftp2</filename> subdirectory of your ports tree to
+            build and install it if it is not found.</para>
+
+          <para>The dependency is checked from within the
+            <maketarget>fetch</maketarget> target.  The
+            <replaceable>target</replaceable> part can be omitted if it is the
+            same as <makevar>DEPENDS_TARGET</makevar>.</para>
+        </sect2>
+
+        <sect2>
+          <title><makevar>EXTRACT_DEPENDS</makevar></title>
+
+          <para>This variable specifies executables or files this port
+            requires to extract.  Like the previous three, it is a list of
+            <replaceable>path</replaceable>:<replaceable>dir</replaceable><optional><replaceable>:target</replaceable></optional>
+            tuples.  For example, <programlisting> EXTRACT_DEPENDS=
+              ${LOCALBASE}/bin/rpm2cpio:${PORTSDIR}/archivers/rpm
+		</programlisting> will check for an
+            executable called <command>rpm2cpio</command>, and descend into the
+            <filename>archivers/rpm</filename> subdirectory of your ports tree to
+            build and install it if it is not found.</para>
+
+          <para>The dependency is checked from within the
+            <maketarget>extract</maketarget> target.  The
+            <replaceable>target</replaceable> part can be omitted if it is the
+            same as <makevar>DEPENDS_TARGET</makevar>.</para>
+        </sect2>
+
+        <sect2>
+          <title><makevar>PATCH_DEPENDS</makevar></title>
+
+          <para>This variable specifies executables or files this port
+            requires to patch.  Like the previous four, it is a list of
+            <replaceable>path</replaceable>:<replaceable>dir</replaceable><optional><replaceable>:target</replaceable></optional>
+            tuples.  For example, <programlisting> PATCH_DEPENDS=
+              ${NONEXISTENT}:${PORTSDIR}/java/jfc:extract
+		</programlisting>will descend into the
+            <filename>java/jfc</filename> subdirectory of your ports tree to
+            extract its source before patch if it is not extracted.</para>
+
+          <para>The dependency is checked from within the
+            <maketarget>patch</maketarget> target.  The
+            <replaceable>target</replaceable> part can be omitted if it is the
+            same as <makevar>DEPENDS_TARGET</makevar>.</para>
+        </sect2>
+
+        <sect2>
           <title><makevar>BUILD_DEPENDS</makevar></title>

           <para>This variable specifies executables or files this port
@@ -2735,30 +2790,12 @@
             ports tree to build and install it if it is not found.</para>

           <note>
-            <para><quote>build</quote> here means everything from extraction to
+            <para><quote>build</quote> here means everything from configure to
               compilation.  The dependency is checked from within the
-              <maketarget>extract</maketarget> target.  The
+              <maketarget>configure(if needed)</maketarget> target.  The
               <replaceable>target</replaceable> part can be omitted if it is
               the same as <makevar>DEPENDS_TARGET</makevar></para>
           </note>
-        </sect2>
-
-        <sect2>
-          <title><makevar>FETCH_DEPENDS</makevar></title>
-
-          <para>This variable specifies executables or files this port
-            requires to fetch.  Like the previous two, it is a list of
-            <replaceable>path</replaceable>:<replaceable>dir</replaceable><optional><replaceable>:target</replaceable></optional>
-            tuples.  For example, <programlisting> FETCH_DEPENDS=
-              ncftp2:${PORTSDIR}/net/ncftp2</programlisting> will check for an
-            executable called <command>ncftp2</command>, and descend into the
-            <filename>net/ncftp2</filename> subdirectory of your ports tree to
-            build and install it if it is not found.</para>
-
-          <para>The dependency is checked from within the
-            <maketarget>fetch</maketarget> target.  The
-            <replaceable>target</replaceable> part can be omitted if it is the
-            same as <makevar>DEPENDS_TARGET</makevar>.</para>
         </sect2>

         <sect2>


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: schweikh 
State-Changed-When: Tue Jan 20 13:09:17 PST 2004 
State-Changed-Why:  
Committed a slightly different version. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56452 
>Unformatted:
