diff options
author | kim <kim@pkgsrc.org> | 2021-11-13 06:50:03 +0000 |
---|---|---|
committer | kim <kim@pkgsrc.org> | 2021-11-13 06:50:03 +0000 |
commit | eba975763480b3347bf442ec603372bac7c8a38d (patch) | |
tree | d88b1948c3ca69dd3927a8bc11541a9c6a3d727d /shells | |
parent | 71522daf9b2b2ce635c6628630de6aa8bbf806ca (diff) | |
download | pkgsrc-eba975763480b3347bf442ec603372bac7c8a38d.tar.gz |
{,standalone-,static-}tcsh: Bring back creating install directories
Installing into DESTDIR failed in standalone-tcsh while it used to work
thanks to the tcsh Makefile creating install directories.
Diffstat (limited to 'shells')
-rw-r--r-- | shells/tcsh/distinfo | 4 | ||||
-rw-r--r-- | shells/tcsh/patches/patch-Makefile.in | 30 |
2 files changed, 24 insertions, 10 deletions
diff --git a/shells/tcsh/distinfo b/shells/tcsh/distinfo index 7b322a4f074..67542743d40 100644 --- a/shells/tcsh/distinfo +++ b/shells/tcsh/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.52 2021/11/11 14:10:25 kim Exp $ +$NetBSD: distinfo,v 1.53 2021/11/13 06:50:03 kim Exp $ BLAKE2s (tcsh-6.23.00.tar.gz) = a61b142efc2ca927cb33ea4eb87c0530cacc0c79ff1c30d5e9022a4404cef72d SHA512 (tcsh-6.23.00.tar.gz) = 8ea491e9409f12ab113bf5551398cb827692a50340318b050d0f8278d3cd9c133ba89a407dc692d9c4bd69957ecd6d4d92db7ccfacc7064ace3b09e3bd562f30 Size (tcsh-6.23.00.tar.gz) = 1010250 bytes -SHA1 (patch-Makefile.in) = 6ec2bcee6029e733743a73d267aa51bfcc898843 +SHA1 (patch-Makefile.in) = 16ae4c595c8e23be1acbfa0263334df569300a79 SHA1 (patch-config_f.h) = 715d939e8a8f4917bd219dccd91d5c49ae502939 SHA1 (patch-nls_Makefile.in) = 58d859e8a50e6436b9bc6514497eb876426d92d7 SHA1 (patch-sh.h) = ac6211ddd5e552e9baec2d35aed5e7e573cab04e diff --git a/shells/tcsh/patches/patch-Makefile.in b/shells/tcsh/patches/patch-Makefile.in index 3e3b4f965a4..3cb49024f52 100644 --- a/shells/tcsh/patches/patch-Makefile.in +++ b/shells/tcsh/patches/patch-Makefile.in @@ -1,20 +1,32 @@ -$NetBSD: patch-Makefile.in,v 1.1 2021/11/11 13:20:13 kim Exp $ +$NetBSD: patch-Makefile.in,v 1.2 2021/11/13 06:50:03 kim Exp $ - Adjust mandir -- Use BSD_INSTALL_* +- Use INSTALL_DATA, INSTALL_PROGRAM, and MKDIR_P ---- Makefile.in.orig 2015-08-24 16:09:04.000000000 -0400 -+++ Makefile.in 2016-11-24 10:43:07.000000000 -0500 -@@ -357,7 +357,7 @@ +--- Makefile.in.orig 2021-11-11 09:54:05.000000000 +0000 ++++ Makefile.in 2021-11-13 06:25:54.773703072 +0000 +@@ -9,6 +9,10 @@ + ENVCMD=/usr/bin/env + VERSION=@PACKAGE_VERSION@ + BUILD=tcsh$(EXEEXT) ++INSTALL=@INSTALL@ ++INSTALL_DATA=@INSTALL_DATA@ ++INSTALL_PROGRAM=@INSTALL_PROGRAM@ ++MKDIR_P?=$(INSTALL) -d + VPATH=@srcdir@ + srcdir=@srcdir@ + +@@ -356,7 +360,8 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ -mandir=@datarootdir@/man ++datarootdir=@datarootdir@ +mandir=@mandir@ MANSECT=1 DESTBIN=${DESTDIR}${bindir} DESTMAN=${DESTDIR}${mandir}/man${MANSECT} -@@ -597,19 +597,13 @@ +@@ -596,19 +601,15 @@ -strip ${DESTBIN}/tcsh$(EXEEXT) install: tcsh$(EXEEXT) install.catalogs install.man @@ -22,7 +34,8 @@ $NetBSD: patch-Makefile.in,v 1.1 2021/11/11 13:20:13 kim Exp $ - -mv -f ${DESTBIN}/tcsh$(EXEEXT) ${DESTBIN}/tcsh.old - cp tcsh$(EXEEXT) ${DESTBIN}/tcsh$(EXEEXT) - chmod 755 ${DESTBIN}/tcsh$(EXEEXT) -+ ${BSD_INSTALL_PROGRAM} tcsh${EXEEXT} ${DESTBIN}/tcsh${EXEEXT} ++ $(MKDIR_P) ${DESTBIN} ++ $(INSTALL_PROGRAM) tcsh$(EXEEXT) ${DESTBIN}/tcsh$(EXEEXT) install.catalogs: @test "x${BUILD_CATALOGS}" = "xyes" && (cd nls; ${MAKE} install DESTDIR=${DESTDIR}) || exit 0 @@ -32,7 +45,8 @@ $NetBSD: patch-Makefile.in,v 1.1 2021/11/11 13:20:13 kim Exp $ - -rm -f ${DESTMAN}/tcsh.${MANSECT} - cp $(srcdir)/tcsh.man ${DESTMAN}/tcsh.${MANSECT} - chmod 444 ${DESTMAN}/tcsh.${MANSECT} -+ ${BSD_INSTALL_MAN} tcsh.man ${DESTMAN}/tcsh.${MANSECT} ++ $(MKDIR_P) ${DESTMAN} ++ $(INSTALL_DATA) $(srcdir)/tcsh.man ${DESTMAN}/tcsh.${MANSECT} # Amiga Unix #install.man: tcsh.man |