pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/archivers/gzip-base This previously didn't patch to st...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9bc1fc7d41b9
branches:  trunk
changeset: 474941:9bc1fc7d41b9
user:      reed <reed%pkgsrc.org@localhost>
date:      Fri May 07 21:41:43 2004 +0000

description:
This previously didn't patch to stop installing the gzip.info file
because it was just removed after.

But now use a patch to disable the install and disable the
creation of the ${PREFIX}/info directory.
(${PREFIX}/info is wrong; pkgsrc uses ${PREFIX}/${INFO_DIR}.)

(The patch also includes the BSD_INSTALL_SCRIPT change
which was previously done in the Makefile using sed.)

diffstat:

 archivers/gzip-base/Makefile         |  16 +---------------
 archivers/gzip-base/distinfo         |   3 ++-
 archivers/gzip-base/patches/patch-aa |  31 +++++++++++++++++++++++++++++++
 3 files changed, 34 insertions(+), 16 deletions(-)

diffs (73 lines):

diff -r 1b87375f4145 -r 9bc1fc7d41b9 archivers/gzip-base/Makefile
--- a/archivers/gzip-base/Makefile      Fri May 07 20:42:53 2004 +0000
+++ b/archivers/gzip-base/Makefile      Fri May 07 21:41:43 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2004/03/11 18:03:50 xtraeme Exp $
+# $NetBSD: Makefile,v 1.15 2004/05/07 21:41:43 reed Exp $
 #
 
 DISTNAME=      gzip-1.2.4a
@@ -19,18 +19,4 @@
 BUILD_TARGET=  all manlinks=so
 INSTALL_TARGET=        install manlinks=so
 
-do-patch:
-       f=${WRKSRC}/Makefile.in ; \
-       [ -f $$f.orig ] || ${CP} $$f $$f.orig ; \
-       ${SED} \
-               '/scriptdir/s/INSTALL_PROGRAM/BSD_INSTALL_SCRIPT/' \
-               < $$f.orig >$$f
-
-# We avoid using a patch for disabling the install of the info
-# file.  The easy part is that "install-info" is not called so
-# we can simply remove the single installed info file.
-
-post-install:
-       -${RM} -f ${PREFIX}/info/gzip.info
-
 .include "../../mk/bsd.pkg.mk"
diff -r 1b87375f4145 -r 9bc1fc7d41b9 archivers/gzip-base/distinfo
--- a/archivers/gzip-base/distinfo      Fri May 07 20:42:53 2004 +0000
+++ b/archivers/gzip-base/distinfo      Fri May 07 21:41:43 2004 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.2 2001/04/18 11:21:05 agc Exp $
+$NetBSD: distinfo,v 1.3 2004/05/07 21:41:43 reed Exp $
 
 SHA1 (gzip-1.2.4a.shar) = 1e1e513f48be32ecfe24c06b609329963d5a5288
 Size (gzip-1.2.4a.shar) = 832431 bytes
+SHA1 (patch-aa) = 449d3eb975b9ddc634ba0b3a245381f3f3e1f5e1
diff -r 1b87375f4145 -r 9bc1fc7d41b9 archivers/gzip-base/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/gzip-base/patches/patch-aa      Fri May 07 21:41:43 2004 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1 2004/05/07 21:41:43 reed Exp $
+
+--- Makefile.in.orig   Fri May  7 14:26:18 2004
++++ Makefile.in
+@@ -104,7 +104,7 @@ mandir = $(prefix)/man/man$(manext)
+ # Use manlinks=so to use the .so method instead of hard links
+ manlinks = ln
+ 
+-alldirs = $(bindir) $(scriptdir) $(datadir) $(libdir) $(infodir) $(mandir)
++alldirs = $(bindir) $(scriptdir) $(datadir) $(libdir) $(mandir)
+ 
+ #### End of system configuration section. ####
+ 
+@@ -206,7 +206,7 @@ install: installdirs installbin installm
+ installbin: all
+       $(INSTALL_PROGRAM) gzip$X $(bindir)/gzip$X
+       for f in $(SCRIPTS); do \
+-        $(INSTALL_PROGRAM) $${f} $(scriptdir)/$${f}; done
++        $(BSD_INSTALL_SCRIPT) $${f} $(scriptdir)/$${f}; done
+       rm -f $(scriptdir)/$(G)zcmp; \
+         ln $(scriptdir)/$(G)zdiff $(scriptdir)/$(G)zcmp
+       for f in gunzip$X ungzip$X $(ZCAT)$X ; do \
+@@ -237,8 +237,6 @@ installman: gzip.info
+         ln $(G)zdiff.$(manext) $(G)zcmp.$(manext);\
+         ln gzip.$(manext)  gunzip.$(manext);\
+       fi
+-      -cd $(srcdir); for f in gzip.info* ; do $(INSTALL_DATA) $${f} \
+-        $(infodir)/$${f}; done
+ 
+ uninstall: force
+       -cd $(bindir); rm -f gzip$X gunzip$X $(ZCAT)$X



Home | Main Index | Thread Index | Old Index