pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/figlet Add PKG_DESTDIR_SUPPORT.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ed5b58200b8
branches:  trunk
changeset: 568316:1ed5b58200b8
user:      abs <abs%pkgsrc.org@localhost>
date:      Thu Dec 10 21:13:07 2009 +0000

description:
Add PKG_DESTDIR_SUPPORT.
The package's Makefile was using 'DESTDIR' as "directory into which
to install binaries", which was a little unconventional. Use BINDIR
instead and treat DESTDIR like the rest of the world.

diffstat:

 misc/figlet/Makefile         |   4 +++-
 misc/figlet/distinfo         |   4 ++--
 misc/figlet/patches/patch-aa |  32 ++++++++++++++++++++------------
 3 files changed, 25 insertions(+), 15 deletions(-)

diffs (85 lines):

diff -r 10e951c4d9f1 -r 1ed5b58200b8 misc/figlet/Makefile
--- a/misc/figlet/Makefile      Thu Dec 10 20:59:22 2009 +0000
+++ b/misc/figlet/Makefile      Thu Dec 10 21:13:07 2009 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2006/10/25 14:36:09 rillig Exp $
+# $NetBSD: Makefile,v 1.20 2009/12/10 21:13:07 abs Exp $
 
 DISTNAME=      figlet222
 PKGNAME=       figlet-2.2.2
+PKGREVISION=   1
 CATEGORIES=    misc
 MASTER_SITES=  ftp://ftp.figlet.org/pub/figlet/program/unix/
 
@@ -10,6 +11,7 @@
 COMMENT=       Print text banners in fancy ASCII art characters
 
 PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 MAKE_FLAGS+=   MANDIR=${PREFIX}/${PKGMANDIR}/man6
 
diff -r 10e951c4d9f1 -r 1ed5b58200b8 misc/figlet/distinfo
--- a/misc/figlet/distinfo      Thu Dec 10 20:59:22 2009 +0000
+++ b/misc/figlet/distinfo      Thu Dec 10 21:13:07 2009 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.7 2005/10/15 22:16:05 tonio Exp $
+$NetBSD: distinfo,v 1.8 2009/12/10 21:13:07 abs Exp $
 
 SHA1 (figlet222.tar.gz) = 138aa027f90c0d68429c7b71af4e51c176bab92b
 RMD160 (figlet222.tar.gz) = fc39809b1f5d5e498d722d49ae88132528633d9f
 Size (figlet222.tar.gz) = 166727 bytes
-SHA1 (patch-aa) = 879fceade48291a5e18dcd22606883df80e5ccec
+SHA1 (patch-aa) = a12ec7c8374eff78a12340cfea2664bfd3ecd262
diff -r 10e951c4d9f1 -r 1ed5b58200b8 misc/figlet/patches/patch-aa
--- a/misc/figlet/patches/patch-aa      Thu Dec 10 20:59:22 2009 +0000
+++ b/misc/figlet/patches/patch-aa      Thu Dec 10 21:13:07 2009 +0000
@@ -1,8 +1,16 @@
-$NetBSD: patch-aa,v 1.6 2005/10/15 22:16:05 tonio Exp $
+$NetBSD: patch-aa,v 1.7 2009/12/10 21:13:07 abs Exp $
 
---- Makefile.orig      2005-07-05 11:57:46.000000000 +0200
+--- Makefile.orig      2005-07-05 09:57:46.000000000 +0000
 +++ Makefile
-@@ -11,19 +11,19 @@
+@@ -4,26 +4,26 @@
+ # Copyright 1996, 1997, 1998, 1999, 2000, 2001 John Cowan
+ # Copyright 2002 Christiaan Keet
+ 
+-# Please make sure DESTDIR, MANDIR, DEFAULTFONTDIR and
++# Please make sure BINDIR, MANDIR, DEFAULTFONTDIR and
+ #   DEFAULTFONTFILE are defined to reflect the situation
+ #   on your computer.  See README for details.
+ 
  # Don't change this even if your shell is different. The only reason
  # for changing this is if sh is not in the same place.
  SHELL = /bin/sh
@@ -13,7 +21,7 @@
  
  # Where the executables should be put
 -DESTDIR = /usr/local/bin
-+DESTDIR = ${PREFIX}/bin
++BINDIR = ${PREFIX}/bin
  
  # Where the man page should be put
 -MANDIR = /usr/local/man/man6
@@ -40,11 +48,11 @@
 -      cp showfigfonts $(DESTDIR)
 -      cp fonts/*.flf $(DEFAULTFONTDIR)
 -      cp fonts/*.flc $(DEFAULTFONTDIR)
-+      ${BSD_INSTALL_DATA_DIR} $(DEFAULTFONTDIR)
-+      ${BSD_INSTALL_PROGRAM} figlet $(DESTDIR)
-+      ${BSD_INSTALL_DATA} figlet.6 $(MANDIR)
-+      ${BSD_INSTALL_PROGRAM} chkfont $(DESTDIR)
-+      ${BSD_INSTALL_SCRIPT} figlist $(DESTDIR)
-+      ${BSD_INSTALL_SCRIPT} showfigfonts $(DESTDIR)
-+      ${BSD_INSTALL_DATA} fonts/*.flf $(DEFAULTFONTDIR)
-+      ${BSD_INSTALL_DATA} fonts/*.flc $(DEFAULTFONTDIR)
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(DEFAULTFONTDIR)
++      ${BSD_INSTALL_PROGRAM} figlet $(DESTDIR)$(BINDIR)
++      ${BSD_INSTALL_DATA} figlet.6 $(DESTDIR)$(MANDIR)
++      ${BSD_INSTALL_PROGRAM} chkfont $(DESTDIR)$(BINDIR)
++      ${BSD_INSTALL_SCRIPT} figlist $(DESTDIR)$(BINDIR)
++      ${BSD_INSTALL_SCRIPT} showfigfonts $(DESTDIR)$(BINDIR)
++      ${BSD_INSTALL_DATA} fonts/*.flf $(DESTDIR)$(DEFAULTFONTDIR)
++      ${BSD_INSTALL_DATA} fonts/*.flc $(DESTDIR)$(DEFAULTFONTDIR)



Home | Main Index | Thread Index | Old Index