diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml
index 84d5616224..5df02a4707 100644
--- a/en_US.ISO8859-1/books/porters-handbook/book.sgml
+++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml
@@ -683,9 +683,7 @@ PLIST_DIRS= lib/X11/oneko
&man.sed.1;. This is very useful when you need to patch in
a variable value. Example:
- USE_REINPLACE= yes
-
-post-patch:
+ post-patch:
@${REINPLACE_CMD} -e 's|for Linux|for FreeBSD|g' ${WRKSRC}/README
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure
@@ -694,19 +692,12 @@ post-patch:
the CR/LF convention for most of its source files. This may cause
problems with further patching, compiler warnings, scripts
execution (/bin/sh^M not found), etc. To
- quickly convert those files from CR/LF to just LF, you can do
- something like this:
+ quickly convert all files from CR/LF to just LF, add
+ USE_DOS2UNIX=yes to the port
+ Makefile. A list of files to convert can
+ be specified:
- USE_REINPLACE= yes
-
-post-extract:
- @${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|cpp|h|txt)" -print0 | \
- ${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//'
-
- Of course, if you need to process each and every file,
- above can be omitted. Be aware that this
- piece of code will strip all trailing control characters from each
- line of processed file (except \n).
+ USE_DOS2UNIX= util.c util.h
@@ -6038,14 +6029,14 @@ lib/X11/oneko/sounds/cat.au
However, sometimes @dirrm will give you
errors because other ports share the same directory. You
- can call rmdir from @unexec to
+ can use @dirrmtry to
remove only empty directories without warning.
- @unexec rmdir %D/share/doc/gimp 2>/dev/null || true
+ @dirrmtry share/doc/gimpThis will neither print any error messages nor cause
&man.pkg.delete.1; to exit abnormally even if
- PREFIX/share/doc/gimp is not
+ ${PREFIX}/share/doc/gimp is not
empty due to other ports installing some files in there.
@@ -9655,17 +9646,12 @@ bacula:*:910:Implementation Notes
- Due to vagaries in the usage of IGNORECMD
- in bsd.port.mk among other places,
- the value of BROKEN should be enclosed
- in quotes, and the value of IGNORE should
- not be enclosed in quotes.
-
- Also, the wording of the string should be somewhat
+ The strings should not be quoted.
+ Also, the wording of the string should be somewhat
different due to the way the information is shown to the
user. Examples:
- BROKEN= "this port is unsupported on FreeBSD 5.x"
+ BROKEN= this port is unsupported on FreeBSD 5.xIGNORE= is unsupported on FreeBSD 5.x