| Summary: | [patch]Add EXTRACT_DEPENDS&PATCH_DEPENDS in Porter's Handbook | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Kang Liu <liukang> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Committed a slightly different version. Thanks! |
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. Fix: - $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>--s4p7P9u90Shhn8NzYf8MJYYR0gNjXx9OuMsrNYp3z2Zv7Jqp Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" 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 How-To-Repeat: n/a