pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/ja-grep user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6f36b7128053
branches:  trunk
changeset: 395379:6f36b7128053
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 21:45:56 2009 +0000

description:
user-destdir support

diffstat:

 textproc/ja-grep/Makefile |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r c2d2599d701a -r 6f36b7128053 textproc/ja-grep/Makefile
--- a/textproc/ja-grep/Makefile Tue Jul 07 21:44:19 2009 +0000
+++ b/textproc/ja-grep/Makefile Tue Jul 07 21:45:56 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2007/02/22 19:27:14 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2009/07/07 21:45:56 joerg Exp $
 
 DISTNAME=      grep-2.4.2
 PKGNAME=       ja-grep-2.4.2
@@ -9,6 +9,8 @@
 PATCHFILES=    grep-2.4.2-mlb2.patch.gz
 PATCH_DIST_STRIP=      -p1
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 CONFLICTS+=    grep-[0-9]*
 
 MAINTAINER=    tech-pkg-ja%jp.NetBSD.org@localhost
@@ -22,9 +24,12 @@
 TEST_TARGET=   check
 INFO_FILES=    # PLIST
 
+INSTALLATION_DIRS=     share/doc/ja-grep
+
+INSTALL_MAKE_FLAGS+=   gnulocaledir=${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale
+
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ja-grep
-       ${INSTALL_DATA} ${WRKSRC}/README.MB ${PREFIX}/share/doc/ja-grep
+       ${INSTALL_DATA} ${WRKSRC}/README.MB ${DESTDIR}${PREFIX}/share/doc/ja-grep
 
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index