pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/40000: [patch] destdir support for www/w3m
>Number: 40000
>Category: pkg
>Synopsis: [patch] destdir support for www/w3m
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 21 21:25:00 +0000 2008
>Originator: cheusov%tut.by@localhost
>Release: NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #1:
Fri Nov 21 18:49:50 EET 2008
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
patch for DESTDIR support.
Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/www/w3m/Makefile.common,v
retrieving revision 1.49
diff -u -r1.49 Makefile.common
--- Makefile.common 26 May 2008 02:13:25 -0000 1.49
+++ Makefile.common 21 Nov 2008 21:18:24 -0000
@@ -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...
@@ -52,6 +53,8 @@
SUBST_FILES.man-ja= Makefile.in config.h.dist
SUBST_SED.man-ja= -e 's|/ja/|/ja_JP.eucJP/|g'
+INSTALLATION_DIRS+= ${DOCDIR}
+
post-extract:
@cd ${WRKSRC}/doc; ${RM} -fr CVS
@cd ${WRKSRC}/doc-jp; ${RM} -fr CVS
@@ -62,11 +65,10 @@
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"
>Fix:
Unknown
Home |
Main Index |
Thread Index |
Old Index