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/9f34a8e4247d
branches:  trunk
changeset: 561231:9f34a8e4247d
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 59149cac3ce0 -r 9f34a8e4247d 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