summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-07 22:24:37 +0000
committerjoerg <joerg>2009-07-07 22:24:37 +0000
commit234c9baff9f1d102188c8cf2932afa03c5c3f93c (patch)
treef96a229af40ebecaca9c3b0aa9c20f2eabf862b7 /textproc
parent18a6e9a63592245fd0844e6432c4793022ae8a3d (diff)
downloadpkgsrc-234c9baff9f1d102188c8cf2932afa03c5c3f93c.tar.gz
user-destdir support
Diffstat (limited to 'textproc')
-rw-r--r--textproc/awf/Makefile6
-rw-r--r--textproc/awf/distinfo4
-rw-r--r--textproc/awf/patches/patch-aa19
3 files changed, 19 insertions, 10 deletions
diff --git a/textproc/awf/Makefile b/textproc/awf/Makefile
index 71f8aa7c56b..89f263f69da 100644
--- a/textproc/awf/Makefile
+++ b/textproc/awf/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/04/22 09:22:15 rillig Exp $
+# $NetBSD: Makefile,v 1.11 2009/07/07 22:24:37 joerg Exp $
#
DISTNAME= nroff-clone
@@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.scn.rain.com/pub/text/
COMMENT= Text formatter (nroff-clone) written in awk
+PKG_DESTDIR_SUPPORT= user-destdir
+
EXTRACT_CMD= ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SED} -e '1,/^\#!/d' | ${SH}
WRKSRC= ${WRKDIR}
@@ -22,4 +24,6 @@ SUBST_SED.awflib+= -e 's|/usr/lib/awf|${PREFIX}/share/awf|'
SUBST_SED.awflib+= -e 's|@AWK@|${AWK}|g'
SUBST_STAGE.awflib= pre-configure
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/awf/distinfo b/textproc/awf/distinfo
index 7a8e9b084af..97aa1c382ea 100644
--- a/textproc/awf/distinfo
+++ b/textproc/awf/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 14:48:40 agc Exp $
+$NetBSD: distinfo,v 1.4 2009/07/07 22:24:37 joerg Exp $
SHA1 (nroff-clone.shar.Z) = 4e4527234f97b16f62341b4b844d128b4cabd617
RMD160 (nroff-clone.shar.Z) = fcbea3f84521bd3694d17ec07230824d69733a94
Size (nroff-clone.shar.Z) = 26302 bytes
-SHA1 (patch-aa) = 486c404fcd90638c59fb3df01eb41ffeb2595982
+SHA1 (patch-aa) = 9169ba9db29a63316fc0adb891d5e718c3352093
SHA1 (patch-ab) = c2574a55bb9a9ab3b79c3a59d639ef534015a45c
diff --git a/textproc/awf/patches/patch-aa b/textproc/awf/patches/patch-aa
index 05f10fe1a06..e80b91065f0 100644
--- a/textproc/awf/patches/patch-aa
+++ b/textproc/awf/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.1.1.1 2003/12/04 08:33:59 agc Exp $
+$NetBSD: patch-aa,v 1.2 2009/07/07 22:24:37 joerg Exp $
---- Makefile 2003/11/04 18:25:04 1.1
-+++ Makefile 2003/11/04 18:23:55
-@@ -1,17 +1,15 @@
+--- Makefile.orig 2009-07-08 00:23:21.000000000 +0200
++++ Makefile
+@@ -1,29 +1,27 @@
-AWFLIB = /usr/lib/awf # beware, awf itself knows this
-BIN = /usr/bin
-MAN = /usr/man/man1
@@ -25,9 +25,14 @@ $NetBSD: patch-aa,v 1.1.1.1 2003/12/04 08:33:59 agc Exp $
+ AWFLIB=. ./awf -man awf.1 >tmp
install:
- -if test ! -d $(AWFLIB) ; then mkdir $(AWFLIB) ; fi
-@@ -20,10 +18,10 @@
- cp awf.1 $(MAN)
+- -if test ! -d $(AWFLIB) ; then mkdir $(AWFLIB) ; fi
+- cp $(CP) $(AWFLIB)
+- cp awf $(BIN)
+- cp awf.1 $(MAN)
++ -if test ! -d ${DESTDIR}$(AWFLIB) ; then mkdir ${DESTDIR}$(AWFLIB) ; fi
++ cp $(CP) ${DESTDIR}$(AWFLIB)
++ cp awf ${DESTDIR}$(BIN)
++ cp awf.1 ${DESTDIR}$(MAN)
rr: r testm tests.Z tests.out.Z
- AWFLIB=. awf -man testm >tmp