pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/ircII Manage compression of the help files using ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/185e2dd1d0ae
branches:  trunk
changeset: 514579:185e2dd1d0ae
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Jun 14 14:23:32 2006 +0000

description:
Manage compression of the help files using the doc-compress script
and be more precise about which files are handled instead of touching
all the files in share/irc/help.  Also, use PLIST_SUBST instead of
manually replacing @GZ@ in the PLIST.

diffstat:

 chat/ircII/Makefile |    25 +-
 chat/ircII/PLIST    |  1014 +++++++++++++++++++++++++-------------------------
 2 files changed, 520 insertions(+), 519 deletions(-)

diffs (truncated from 1075 to 300 lines):

diff -r 59793d20d791 -r 185e2dd1d0ae chat/ircII/Makefile
--- a/chat/ircII/Makefile       Wed Jun 14 13:35:50 2006 +0000
+++ b/chat/ircII/Makefile       Wed Jun 14 14:23:32 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2006/03/04 21:29:03 jlam Exp $
+# $NetBSD: Makefile,v 1.43 2006/06/14 14:23:32 jlam Exp $
 
 DISTNAME=              ircii-${VERS}
 PKGNAME=               ircII-${VERS}
@@ -32,8 +32,6 @@
 # (Leave the line in to still get it into the README-IPv6.html!)
 BUILD_DEFS+=           USE_INET6
 
-PLIST_SRC=             ${WRKDIR}/PLIST.tmp
-
 .include "options.mk"
 
 # Allow customizations from ${MAKECONF}
@@ -46,16 +44,19 @@
 CONFIGURE_ARGS+=       --with-non-blocking=none
 .endif
 
-pre-install:
-       @(if [ "X${MANZ}" != X"" ]; then \
-               GZSUFFIX=.gz; \
-       fi; \
-       ${SED} -e 's|@.GZ@|'$$GZSUFFIX'|g' ${PKGDIR}/PLIST > ${PLIST_SRC})
+# Optionally install compressed help files if MANZ is defined.
+.if defined(MANZ)
+PLIST_SUBST+=          GZSUFFIX=".gz"
+DOC_COMPRESS_ARGS=     -z ${PREFIX}
+.else
+PLIST_SUBST+=          GZSUFFIX=
+DOC_COMPRESS_ARGS=     ${PREFIX}
+.endif
 
 post-install:
-       @if [ "X${MANZ}" != X"" ]; then \
-               ${ECHO} Compressing help files; \
-               ${FIND} ${PREFIX}/share/irc/help -type f -print | ${XARGS} ${GZIP_CMD}; \
-       fi
+       ${AWK} '/^share\/irc\/help\// { sub("\\$${GZSUFFIX}$$", ""); print }' \
+               ${PLIST_SRC} |                                          \
+       ${SETENV} PATH=${PATH:Q} PKG_VERBOSE=${PKG_VERBOSE:Q}           \
+       ${SH} ${PKGSRCDIR}/mk/plist/doc-compress ${DOC_COMPRESS_ARGS}
 
 .include "../../mk/bsd.pkg.mk"
diff -r 59793d20d791 -r 185e2dd1d0ae chat/ircII/PLIST
--- a/chat/ircII/PLIST  Wed Jun 14 13:35:50 2006 +0000
+++ b/chat/ircII/PLIST  Wed Jun 14 14:23:32 2006 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.15 2004/02/21 22:06:37 snj Exp $
+@comment $NetBSD: PLIST,v 1.16 2006/06/14 14:23:32 jlam Exp $
 bin/irc
 bin/irc-${VERS}
 bin/ircbug
@@ -8,512 +8,512 @@
 man/man1/irc.1
 man/man1/ircII.1
 man/man1/ircbug.1
-share/irc/help/!@.GZ@
-share/irc/help/.date@.GZ@
-share/irc/help/:@.GZ@
-share/irc/help/@@.GZ@
-share/irc/help/abort@.GZ@
-share/irc/help/admin@.GZ@
-share/irc/help/alias/alias@.GZ@
-share/irc/help/alias/functions@.GZ@
-share/irc/help/alias/quote@.GZ@
-share/irc/help/alias/special@.GZ@
-share/irc/help/alias/width@.GZ@
-share/irc/help/assign@.GZ@
-share/irc/help/away@.GZ@
-share/irc/help/basics@.GZ@
-share/irc/help/beep@.GZ@
-share/irc/help/bind/backspace@.GZ@
-share/irc/help/bind/backward_character@.GZ@
-share/irc/help/bind/backward_history@.GZ@
-share/irc/help/bind/backward_word@.GZ@
-share/irc/help/bind/beginning_of_line@.GZ@
-share/irc/help/bind/bind@.GZ@
-share/irc/help/bind/clear_screen@.GZ@
-share/irc/help/bind/command_completion@.GZ@
-share/irc/help/bind/delete_character@.GZ@
-share/irc/help/bind/delete_next_word@.GZ@
-share/irc/help/bind/delete_previous_word@.GZ@
-share/irc/help/bind/end_of_line@.GZ@
-share/irc/help/bind/enter_digraph@.GZ@
-share/irc/help/bind/enter_menu@.GZ@
-share/irc/help/bind/erase_line@.GZ@
-share/irc/help/bind/erase_to_beg_of_line@.GZ@
-share/irc/help/bind/erase_to_end_of_line@.GZ@
-share/irc/help/bind/examples@.GZ@
-share/irc/help/bind/forward_character@.GZ@
-share/irc/help/bind/forward_history@.GZ@
-share/irc/help/bind/forward_word@.GZ@
-share/irc/help/bind/help_character@.GZ@
-share/irc/help/bind/keys@.GZ@
-share/irc/help/bind/meta1_character@.GZ@
-share/irc/help/bind/meta2_character@.GZ@
-share/irc/help/bind/meta3_character@.GZ@
-share/irc/help/bind/meta4_character@.GZ@
-share/irc/help/bind/meta5_character@.GZ@
-share/irc/help/bind/meta6_character@.GZ@
-share/irc/help/bind/meta7_character@.GZ@
-share/irc/help/bind/meta8_character@.GZ@
-share/irc/help/bind/next_window@.GZ@
-share/irc/help/bind/nothing@.GZ@
-share/irc/help/bind/parse_command@.GZ@
-share/irc/help/bind/previous_window@.GZ@
-share/irc/help/bind/quit_irc@.GZ@
-share/irc/help/bind/quote_character@.GZ@
-share/irc/help/bind/refresh_inputline@.GZ@
-share/irc/help/bind/refresh_screen@.GZ@
-share/irc/help/bind/scroll_backward@.GZ@
-share/irc/help/bind/scroll_end@.GZ@
-share/irc/help/bind/scroll_forward@.GZ@
-share/irc/help/bind/scroll_start@.GZ@
-share/irc/help/bind/self_insert@.GZ@
-share/irc/help/bind/send_line@.GZ@
-share/irc/help/bind/stop_irc@.GZ@
-share/irc/help/bind/switch_channels@.GZ@
-share/irc/help/bind/toggle_insert_mode@.GZ@
-share/irc/help/bind/toggle_stop_screen@.GZ@
-share/irc/help/bind/transpose_characters@.GZ@
-share/irc/help/bind/type_text@.GZ@
-share/irc/help/bind/unstop_all_windows@.GZ@
-share/irc/help/bind/yank_from_cutbuffer@.GZ@
-share/irc/help/brick@.GZ@
-share/irc/help/bye@.GZ@
-share/irc/help/cat@.GZ@
-share/irc/help/cd@.GZ@
-share/irc/help/channel@.GZ@
-share/irc/help/clear@.GZ@
-share/irc/help/commands@.GZ@
-share/irc/help/comment@.GZ@
-share/irc/help/connect@.GZ@
-share/irc/help/ctcp/action@.GZ@
-share/irc/help/ctcp/clientinfo@.GZ@
-share/irc/help/ctcp/ctcp@.GZ@
-share/irc/help/ctcp/echo@.GZ@
-share/irc/help/ctcp/finger@.GZ@
-share/irc/help/ctcp/ping@.GZ@
-share/irc/help/ctcp/time@.GZ@
-share/irc/help/ctcp/userinfo@.GZ@
-share/irc/help/ctcp/utc@.GZ@
-share/irc/help/ctcp/version@.GZ@
-share/irc/help/date@.GZ@
-share/irc/help/dcc/chat@.GZ@
-share/irc/help/dcc/close@.GZ@
-share/irc/help/dcc/dcc@.GZ@
-share/irc/help/dcc/get@.GZ@
-share/irc/help/dcc/list@.GZ@
-share/irc/help/dcc/raw@.GZ@
-share/irc/help/dcc/rename@.GZ@
-share/irc/help/dcc/send@.GZ@
-share/irc/help/deop@.GZ@
-share/irc/help/describe@.GZ@
-share/irc/help/die@.GZ@
-share/irc/help/digraph@.GZ@
-share/irc/help/disconnect@.GZ@
-share/irc/help/dmsg@.GZ@
-share/irc/help/dquery@.GZ@
-share/irc/help/echo@.GZ@
-share/irc/help/encrypt@.GZ@
-share/irc/help/etiquette@.GZ@
-share/irc/help/eval@.GZ@
-share/irc/help/exec@.GZ@
-share/irc/help/exit@.GZ@
-share/irc/help/expressions@.GZ@
-share/irc/help/flush@.GZ@
-share/irc/help/foreach@.GZ@
-share/irc/help/help@.GZ@
-share/irc/help/history@.GZ@
-share/irc/help/hook@.GZ@
-share/irc/help/icb@.GZ@
-share/irc/help/if@.GZ@
-share/irc/help/ignore@.GZ@
-share/irc/help/info@.GZ@
-share/irc/help/input@.GZ@
-share/irc/help/intro@.GZ@
-share/irc/help/invite@.GZ@
-share/irc/help/ircii/copyright@.GZ@
-share/irc/help/ison@.GZ@
-share/irc/help/join@.GZ@
-share/irc/help/kick@.GZ@
-share/irc/help/kill@.GZ@
-share/irc/help/lastlog@.GZ@
-share/irc/help/leave@.GZ@
-share/irc/help/links@.GZ@
-share/irc/help/list@.GZ@
-share/irc/help/load/2.9script@.GZ@
-share/irc/help/load/action@.GZ@
-share/irc/help/load/alias@.GZ@
-share/irc/help/load/autoop@.GZ@
-share/irc/help/load/autoquery@.GZ@
-share/irc/help/load/basical@.GZ@
-share/irc/help/load/bigcheese@.GZ@
-share/irc/help/load/brc@.GZ@
-share/irc/help/load/channel@.GZ@
-share/irc/help/load/columns@.GZ@
-share/irc/help/load/commander@.GZ@
-share/irc/help/load/cursor@.GZ@
-share/irc/help/load/dccchan@.GZ@
-share/irc/help/load/deutsch@.GZ@
-share/irc/help/load/disc@.GZ@
-share/irc/help/load/edit@.GZ@
-share/irc/help/load/english@.GZ@
-share/irc/help/load/events@.GZ@
-share/irc/help/load/extensions@.GZ@
-share/irc/help/load/finger.who@.GZ@
-share/irc/help/load/finger@.GZ@
-share/irc/help/load/flood@.GZ@
-share/irc/help/load/fnet@.GZ@
-share/irc/help/load/functions@.GZ@
-share/irc/help/load/help@.GZ@
-share/irc/help/load/history@.GZ@
-share/irc/help/load/icb@.GZ@
-share/irc/help/load/irciihelp@.GZ@
-share/irc/help/load/ircprimer@.GZ@
-share/irc/help/load/kickmenu@.GZ@
-share/irc/help/load/killpath@.GZ@
-share/irc/help/load/kpstat@.GZ@
-share/irc/help/load/list@.GZ@
-share/irc/help/load/listidle@.GZ@
-share/irc/help/load/load@.GZ@
-share/irc/help/load/local@.GZ@
-share/irc/help/load/lynx_ircrc@.GZ@
-share/irc/help/load/meta1@.GZ@
-share/irc/help/load/meta2@.GZ@
-share/irc/help/load/msg@.GZ@
-share/irc/help/load/mudlike@.GZ@
-share/irc/help/load/nemesis@.GZ@
-share/irc/help/load/netsplit@.GZ@
-share/irc/help/load/newaway@.GZ@
-share/irc/help/load/nicks@.GZ@
-share/irc/help/load/oldping@.GZ@
-share/irc/help/load/oper@.GZ@
-share/irc/help/load/prefix@.GZ@
-share/irc/help/load/recursion@.GZ@
-share/irc/help/load/repeat@.GZ@
-share/irc/help/load/screen@.GZ@
-share/irc/help/load/service@.GZ@
-share/irc/help/load/shell@.GZ@
-share/irc/help/load/silent@.GZ@
-share/irc/help/load/smileys@.GZ@
-share/irc/help/load/suggestions@.GZ@
-share/irc/help/load/tabkey@.GZ@
-share/irc/help/load/time@.GZ@
-share/irc/help/load/traces@.GZ@
-share/irc/help/load/troy@.GZ@
-share/irc/help/load/uhnotify@.GZ@
-share/irc/help/load/version@.GZ@
-share/irc/help/load/wallopstat@.GZ@
-share/irc/help/load/whowas@.GZ@
-share/irc/help/load/window@.GZ@
-share/irc/help/lusers@.GZ@
-share/irc/help/me@.GZ@
-share/irc/help/menus@.GZ@
-share/irc/help/mload@.GZ@
-share/irc/help/mode@.GZ@
-share/irc/help/motd@.GZ@
-share/irc/help/msg@.GZ@
-share/irc/help/names@.GZ@
-share/irc/help/news@.GZ@
-share/irc/help/newuser@.GZ@
-share/irc/help/nick@.GZ@
-share/irc/help/note/antiwall@.GZ@
-share/irc/help/note/count@.GZ@
-share/irc/help/note/deny@.GZ@
-share/irc/help/note/find@.GZ@
-share/irc/help/note/flag@.GZ@
-share/irc/help/note/key@.GZ@
-share/irc/help/note/log@.GZ@
-share/irc/help/note/ls@.GZ@
-share/irc/help/note/news@.GZ@
-share/irc/help/note/note@.GZ@
-share/irc/help/note/rm@.GZ@
-share/irc/help/note/save@.GZ@
-share/irc/help/note/send@.GZ@
-share/irc/help/note/sent@.GZ@
-share/irc/help/note/service@.GZ@
-share/irc/help/note/spy@.GZ@
-share/irc/help/note/stats@.GZ@
-share/irc/help/note/user@.GZ@
-share/irc/help/note/waitfor@.GZ@
-share/irc/help/note/wall@.GZ@
-share/irc/help/note/wallops@.GZ@
-share/irc/help/notice@.GZ@
-share/irc/help/notify@.GZ@
-share/irc/help/on/action@.GZ@
-share/irc/help/on/channel_nick@.GZ@
-share/irc/help/on/channel_signoff@.GZ@
-share/irc/help/on/connect@.GZ@
-share/irc/help/on/ctcp@.GZ@
-share/irc/help/on/ctcp_reply@.GZ@
-share/irc/help/on/dcc_chat@.GZ@
-share/irc/help/on/dcc_list@.GZ@
-share/irc/help/on/dcc_raw@.GZ@
-share/irc/help/on/disconnect@.GZ@



Home | Main Index | Thread Index | Old Index