pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76ad5fa7d357
branches:  trunk
changeset: 395366:76ad5fa7d357
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 21:33:07 2009 +0000

description:
user-destdir support

diffstat:

 textproc/jing/Makefile            |  20 ++++++++++----------
 textproc/kakasi/Makefile          |   8 +++++---
 textproc/kbanner/Makefile         |   6 +++++-
 textproc/kbanner/distinfo         |   4 ++--
 textproc/kbanner/patches/patch-aa |   9 ++++-----
 5 files changed, 26 insertions(+), 21 deletions(-)

diffs (132 lines):

diff -r 5c4ea0d31509 -r 76ad5fa7d357 textproc/jing/Makefile
--- a/textproc/jing/Makefile    Tue Jul 07 21:32:22 2009 +0000
+++ b/textproc/jing/Makefile    Tue Jul 07 21:33:07 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2008/05/26 02:13:24 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2009/07/07 21:34:26 joerg Exp $
 #
 
 DISTNAME=              jing-20030619
@@ -10,6 +10,8 @@
 HOMEPAGE=              http://www.thaiopensource.com/relaxng/trang.html
 COMMENT=               RELAX NG validator in Java
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_TOOLS+=    pax
 
 USE_JAVA=              run
@@ -19,16 +21,14 @@
        ${ECHO} "#!/bin/sh" > ${WRKSRC}/jing
        ${ECHO} "${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/libexec/jing/jing.jar"' "$$@"' >> ${WRKSRC}/jing
 
+INSTALLATION_DIRS=     bin libexec/jing/lib share/doc/jing/doc
+
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/jing ${PREFIX}/bin
-       ${INSTALL_DATA_DIR} ${PREFIX}/libexec/jing
-       ${INSTALL_DATA} ${WRKSRC}/bin/* ${PREFIX}/libexec/jing
-       ${INSTALL_DATA_DIR} ${PREFIX}/libexec/jing/lib
-       ${INSTALL_DATA} ${WRKSRC}/lib/* ${PREFIX}/libexec/jing/lib
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jing
-       ${INSTALL_DATA} ${WRKSRC}/readme.html ${PREFIX}/share/doc/jing
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jing/doc
-       cd ${WRKSRC}/doc && pax -pp -rw * ${PREFIX}/share/doc/jing/doc
+       ${INSTALL_SCRIPT} ${WRKSRC}/jing ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKSRC}/bin/* ${DESTDIR}${PREFIX}/libexec/jing
+       ${INSTALL_DATA} ${WRKSRC}/lib/* ${DESTDIR}${PREFIX}/libexec/jing/lib
+       ${INSTALL_DATA} ${WRKSRC}/readme.html ${DESTDIR}${PREFIX}/share/doc/jing
+       cd ${WRKSRC}/doc && pax -pp -rw * ${DESTDIR}${PREFIX}/share/doc/jing/doc
 
 .include "../../mk/java-vm.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 5c4ea0d31509 -r 76ad5fa7d357 textproc/kakasi/Makefile
--- a/textproc/kakasi/Makefile  Tue Jul 07 21:32:22 2009 +0000
+++ b/textproc/kakasi/Makefile  Tue Jul 07 21:33:07 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2009/05/01 14:59:30 zafer Exp $
+# $NetBSD: Makefile,v 1.18 2009/07/07 21:34:32 joerg Exp $
 
 DISTNAME=      kakasi-2.3.4
 PKGREVISION=   4
@@ -9,14 +9,16 @@
 HOMEPAGE=      http://kakasi.namazu.org/
 COMMENT=       Kanji-Kana Simple Inverter, language filter for Japanese
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE=         YES
 USE_TOOLS+=            gmake
 USE_LIBTOOL=           YES
 INSTALLATION_DIRS=     ${PKGMANDIR}/ja_JP.EUC/cat1 ${PKGMANDIR}/ja_JP.EUC/man1
 
 post-install:
-       ${INSTALL_MAN} ${WRKSRC}/doc/kakasi.1 ${PREFIX}/${PKGMANDIR}/ja_JP.EUC/man1
+       ${INSTALL_MAN} ${WRKSRC}/doc/kakasi.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/ja_JP.EUC/man1
        ${INSTALL_MAN} ${WRKSRC}/doc/kakasi.cat \
-               ${PREFIX}/${PKGMANDIR}/ja_JP.EUC/cat1/kakasi.0
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/ja_JP.EUC/cat1/kakasi.0
 
 .include "../../mk/bsd.pkg.mk"
diff -r 5c4ea0d31509 -r 76ad5fa7d357 textproc/kbanner/Makefile
--- a/textproc/kbanner/Makefile Tue Jul 07 21:32:22 2009 +0000
+++ b/textproc/kbanner/Makefile Tue Jul 07 21:33:07 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2007/02/22 19:01:25 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2009/07/07 21:33:07 joerg Exp $
 
 DISTNAME=      kbanner2
 PKGNAME=       kbanner-2.1
@@ -10,6 +10,10 @@
 HOMEPAGE=      http://kanji.zinbun.kyoto-u.ac.jp/~yasuoka/program.html
 COMMENT=       Display kanji files in large letters
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+
 BUILD_TARGET=  kbanner
 
 .include "../../mk/bsd.pkg.mk"
diff -r 5c4ea0d31509 -r 76ad5fa7d357 textproc/kbanner/distinfo
--- a/textproc/kbanner/distinfo Tue Jul 07 21:32:22 2009 +0000
+++ b/textproc/kbanner/distinfo Tue Jul 07 21:33:07 2009 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 14:48:43 agc Exp $
+$NetBSD: distinfo,v 1.3 2009/07/07 21:33:08 joerg Exp $
 
 SHA1 (kbanner2.tar.Z) = a557fd49ef76797513894ac8f7e218be52efb219
 RMD160 (kbanner2.tar.Z) = 42cdc13bbc5defd5825303fd17d664b40b7bfcb9
 Size (kbanner2.tar.Z) = 240221 bytes
-SHA1 (patch-aa) = 0b30d5b1af326e28fe581486931336b27dd26124
+SHA1 (patch-aa) = 707ed4b3f0b25d1f26db1dcb60d41822b7203a6d
 SHA1 (patch-ab) = a85c604703743047147e15a48705ad5f517e5273
 SHA1 (patch-ac) = 1f6964b8c936199e408ab5aceb06ddeb1a249751
 SHA1 (patch-ad) = 9f3a26d4ac3eab9e9c0094d02de09925f47b2b7b
diff -r 5c4ea0d31509 -r 76ad5fa7d357 textproc/kbanner/patches/patch-aa
--- a/textproc/kbanner/patches/patch-aa Tue Jul 07 21:32:22 2009 +0000
+++ b/textproc/kbanner/patches/patch-aa Tue Jul 07 21:33:07 2009 +0000
@@ -1,13 +1,12 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/05/31 13:00:29 seb Exp $
+$NetBSD: patch-aa,v 1.2 2009/07/07 21:33:08 joerg Exp $
 
 --- Makefile.orig      Fri Oct 15 14:19:54 1993
 +++ Makefile   Thu May 18 00:48:33 2000
-@@ -1,21 +1,21 @@
+@@ -1,21 +1,20 @@
  SHELL = /bin/sh
 -DESTDIR = /usr/local/bin
 -MANUAL = /usr/local/man/man1/kbanner.1
 -CFLAGS = -O -KEOPT -KBREG -KINF
-+DESTDIR = $(PREFIX)/bin
 +MANUAL = $(PREFIX)/man/man1/kbanner.1
 +#CFLAGS = -O -KEOPT -KBREG -KINF
  OBJ = kbanner.o font1.o font2.o font3.o
@@ -29,5 +28,5 @@
  install: kbanner
 -      cp kbanner $(DESTDIR)/
 -      cp kbanner.1 $(MANUAL)
-+      $(BSD_INSTALL_PROGRAM) kbanner $(DESTDIR)/
-+      $(BSD_INSTALL_MAN) kbanner.1 $(MANUAL)
++      $(BSD_INSTALL_PROGRAM) kbanner $(DESTDIR)${PREFIX}/bin
++      $(BSD_INSTALL_MAN) kbanner.1 ${DESTDIR}$(MANUAL)



Home | Main Index | Thread Index | Old Index