pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/moreutils Instead of (wrongly) use the SUBST fram...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0019efbdec33
branches:  trunk
changeset: 367802:0019efbdec33
user:      leot <leot%pkgsrc.org@localhost>
date:      Thu Sep 07 08:18:44 2017 +0000

description:
Instead of (wrongly) use the SUBST framework just patch Makefile (that is
already patched!) introducing a MANDIR variable instead of hardcoding
`share/man' and pass PKGMANDIR via MAKE_ENV.

No PKGREVISION bump since it should fix the build on platforms where moreutils
was already broken.

Pointed out by Joyent's Darwin bulk build.

diffstat:

 misc/moreutils/Makefile               |   9 ++-------
 misc/moreutils/PLIST                  |   2 +-
 misc/moreutils/distinfo               |   4 ++--
 misc/moreutils/patches/patch-Makefile |  17 ++++++++++-------
 4 files changed, 15 insertions(+), 17 deletions(-)

diffs (92 lines):

diff -r 8c37366e0fa5 -r 0019efbdec33 misc/moreutils/Makefile
--- a/misc/moreutils/Makefile   Thu Sep 07 07:54:25 2017 +0000
+++ b/misc/moreutils/Makefile   Thu Sep 07 08:18:44 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2017/09/06 12:38:32 leot Exp $
+# $NetBSD: Makefile,v 1.3 2017/09/07 08:18:44 leot Exp $
 
 DISTNAME=      moreutils_0.60.orig
 PKGNAME=       ${DISTNAME:S/_/-/:S/.orig//}
@@ -29,14 +29,9 @@
 REPLACE_PERL+= vipe
 REPLACE_PERL+= zrun
 
-SUBST_CLASSES+=                        pkgmandir
-SUBST_STAGE.pkgmandir=         pre-configure
-SUBST_FILES.pkgmandir=         Makefile
-SUBST_MESSAGE.pkgmandir=       Fixing man page installation.
-SUBST_SED.pkgmandir=           -e 's,share/man,${PKGMANDIR},'
-
 MAKE_ENV+=     \
        PREFIX=${PREFIX} \
+       MANDIR=${PREFIX}/${PKGMANDIR} \
        CFLAGS=${CFLAGS:Q} \
        LDFLAGS=${LDFLAGS:Q} \
        DOCBOOKXSL=${PREFIX}/share/xsl/docbook \
diff -r 8c37366e0fa5 -r 0019efbdec33 misc/moreutils/PLIST
--- a/misc/moreutils/PLIST      Thu Sep 07 07:54:25 2017 +0000
+++ b/misc/moreutils/PLIST      Thu Sep 07 08:18:44 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/09/04 09:44:41 leot Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/09/07 08:18:44 leot Exp $
 bin/chronic
 bin/combine
 bin/errno
diff -r 8c37366e0fa5 -r 0019efbdec33 misc/moreutils/distinfo
--- a/misc/moreutils/distinfo   Thu Sep 07 07:54:25 2017 +0000
+++ b/misc/moreutils/distinfo   Thu Sep 07 08:18:44 2017 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.1 2017/09/04 09:44:41 leot Exp $
+$NetBSD: distinfo,v 1.2 2017/09/07 08:18:44 leot Exp $
 
 SHA1 (moreutils_0.60.orig.tar.xz) = 3af60490f763ece48b2fcba968903673c3e63495
 RMD160 (moreutils_0.60.orig.tar.xz) = aa3700e114f51513bf52123eae19d3f9625d7052
 SHA512 (moreutils_0.60.orig.tar.xz) = 3fb5d8e140a90d805c4cd0de74248a5ea830ba8f90c56afdeb537391c32984cbb9701d4d9caf187a5f9284dfe791d1f7a333af3aac2a4860e2041c414e5cb788
 Size (moreutils_0.60.orig.tar.xz) = 79360 bytes
-SHA1 (patch-Makefile) = 757f0d98eaa43537dfaadcda87346562e3a2137c
+SHA1 (patch-Makefile) = 80fb38e584db12f344ed66da76c8bee0127d17cc
 SHA1 (patch-ifdata.c) = 5c0d9737657354ad1877f2efc6ff08e76ca7bc62
 SHA1 (patch-is__utf8_Makefile) = 8feacdc8a0a0939aefd7f647be8196bdfdbda66c
diff -r 8c37366e0fa5 -r 0019efbdec33 misc/moreutils/patches/patch-Makefile
--- a/misc/moreutils/patches/patch-Makefile     Thu Sep 07 07:54:25 2017 +0000
+++ b/misc/moreutils/patches/patch-Makefile     Thu Sep 07 08:18:44 2017 +0000
@@ -1,20 +1,23 @@
-$NetBSD: patch-Makefile,v 1.1 2017/09/04 09:44:41 leot Exp $
+$NetBSD: patch-Makefile,v 1.2 2017/09/07 08:18:44 leot Exp $
 
-Instruct Makefile to properly handle also man pages and scripts via
-corresponding INSTALL_{MAN,SCRIPT} in a similar vein of INSTALL_BIN.
+- Instruct Makefile to properly handle also man pages and scripts via
+  corresponding INSTALL_{MAN,SCRIPT} in a similar vein of INSTALL_BIN.
+- Introduce MANDIR in order to ease the installation of man pages
 
 --- Makefile.orig      2016-08-13 13:58:21.000000000 +0000
 +++ Makefile
-@@ -3,6 +3,8 @@ PERLSCRIPTS=vidir vipe ts combine zrun c
+@@ -3,7 +3,10 @@ PERLSCRIPTS=vidir vipe ts combine zrun c
  MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 parallel.1 errno.1
  CFLAGS?=-O2 -g -Wall
  INSTALL_BIN?=install -s
 +INSTALL_MAN?=install
 +INSTALL_SCRIPT?=install
  PREFIX?=/usr
++MANDIR?=$(PREFIX)/man
  
  ifneq (,$(findstring CYGWIN,$(shell uname)))
-@@ -25,10 +27,10 @@ isutf8: is_utf8/*.c is_utf8/*.h
+       DOCBOOKXSL?=/usr/share/sgml/docbook/xsl-stylesheets
+@@ -25,10 +28,10 @@ isutf8: is_utf8/*.c is_utf8/*.h
  install:
        mkdir -p $(DESTDIR)$(PREFIX)/bin
        $(INSTALL_BIN) $(BINS) $(DESTDIR)$(PREFIX)/bin
@@ -23,8 +26,8 @@
  
 -      mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
 -      install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
-+      mkdir -p $(DESTDIR)$(PREFIX)/man/man1
-+      $(INSTALL_MAN) $(MANS) $(DESTDIR)$(PREFIX)/man/man1
++      mkdir -p $(DESTDIR)$(MANDIR)/man1
++      $(INSTALL_MAN) $(MANS) $(DESTDIR)$(MANDIR)/man1
  
  check: isutf8
        ./is_utf8/test.sh



Home | Main Index | Thread Index | Old Index