pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/w3m pkg/40000; user-destdir support for w3m. From...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b09ca76ea053
branches:  trunk
changeset: 550514:b09ca76ea053
user:      uebayasi <uebayasi%pkgsrc.org@localhost>
date:      Sun Nov 23 16:16:35 2008 +0000

description:
pkg/40000; user-destdir support for w3m.  From Aleksey Cheusov <cheusov%tut.by@localhost>.

diffstat:

 www/w3m/Makefile.common |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r d6388b05b6e9 -r b09ca76ea053 www/w3m/Makefile.common
--- a/www/w3m/Makefile.common   Sun Nov 23 16:07:16 2008 +0000
+++ b/www/w3m/Makefile.common   Sun Nov 23 16:16:35 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.49 2008/05/26 02:13:25 joerg Exp $
+# $NetBSD: Makefile.common,v 1.50 2008/11/23 16:16:35 uebayasi Exp $
 #
 
 DISTNAME=      w3m-${W3M_VERS}
@@ -9,6 +9,7 @@
 HOMEPAGE=      http://w3m.sourceforge.net/
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 GNU_CONFIGURE= yes
 USE_TOOLS+=    gmake   # Needed for some combinations of options...
@@ -60,13 +61,14 @@
 post-patch:
        @${FIND} ${WRKSRC} -type f -name '*.orig' -print | ${XARGS} ${RM}
 
+INSTALLATION_DIRS+=    ${DOCDIR}
+
 post-install:
        # Install help files.
-       @cd ${WRKSRC}; ${MAKE_PROGRAM} install-helpfile
+       @cd ${WRKSRC}; ${MAKE_PROGRAM} DESTDIR=${DESTDIR} install-helpfile
        # Use pax to discard uid/gid.  Exclude manuals (*.1).
-       ${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
        @cd ${WRKSRC}; pax -w -s ',.*\.1$$,,' doc doc-jp | \
-           ( cd ${PREFIX}/${DOCDIR}; pax -r )
+           ( cd ${DESTDIR}${PREFIX}/${DOCDIR}; pax -r )
 
 .include "../../devel/boehm-gc/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"



Home | Main Index | Thread Index | Old Index