From 7dd530d90d6c9dfedab9ca714027d16209486a27 Mon Sep 17 00:00:00 2001 From: obache Date: Sat, 19 Mar 2011 03:58:20 +0000 Subject: * add user-destdir installation support. * fixes a linterpreter line. * remove post-configure subst, no information in commit log and the file will not created there. --- shells/scsh/Makefile | 19 ++++++++++++------- shells/scsh/distinfo | 4 ++-- shells/scsh/patches/patch-aa | 4 ++-- 3 files changed, 16 insertions(+), 11 deletions(-) (limited to 'shells/scsh') diff --git a/shells/scsh/Makefile b/shells/scsh/Makefile index d2c4dd9b03e..3a4cb28c4da 100644 --- a/shells/scsh/Makefile +++ b/shells/scsh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2010/05/07 12:02:45 jmmv Exp $ +# $NetBSD: Makefile,v 1.41 2011/03/19 03:58:20 obache Exp $ DISTNAME= scsh-0.6.7 PKGREVISION= 1 @@ -9,9 +9,12 @@ MASTER_SITES= http://ftp.scsh.net/pub/scsh/0.6/ \ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.scsh.net/ COMMENT= Unix shell embedded into Scheme, with access to all Posix calls +LICENSE= modified-bsd NOT_FOR_PLATFORM= *-*-alpha # Needs scheme +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= yes BUILD_TARGET= enough @@ -25,14 +28,16 @@ INSTALLATION_DIRS= share/doc CHECK_WRKREF_SKIP+= lib/scsh/scsh.image CHECK_WRKREF_SKIP+= lib/scsh/stripped-scsh.image -post-configure: - cd ${WRKSRC}/scsh/bsd; ${SED} -e '/LIBGEN/d' sysdep.h >xx ; ${MV} xx sysdep.h +REPLACE_INTERPRETER+= scsh +REPLACE.scsh.old= .*scsh[^[:space:]]* +REPLACE.scsh.new= ${PREFIX}/bin/scsh +REPLACE_FILES.scsh= scsh/ekko.scm post-install: - @strip ${PREFIX}/bin/scsh + @strip ${DESTDIR}${PREFIX}/bin/scsh (cd ${WRKSRC} ; \ - ${INSTALL_DATA} README RELEASE COPYING ${PREFIX}/lib/scsh/doc) - ${RM} -f ${PREFIX}/share/doc/scsh - ${LN} -fs ${PREFIX}/lib/scsh/doc ${PREFIX}/share/doc/scsh + ${INSTALL_DATA} README RELEASE COPYING ${DESTDIR}${PREFIX}/lib/scsh/doc) + ${RM} -f ${DESTDIR}${PREFIX}/share/doc/scsh + ${LN} -fs ${PREFIX}/lib/scsh/doc ${DESTDIR}${PREFIX}/share/doc/scsh .include "../../mk/bsd.pkg.mk" diff --git a/shells/scsh/distinfo b/shells/scsh/distinfo index 146cbf894e9..056d55a3d81 100644 --- a/shells/scsh/distinfo +++ b/shells/scsh/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.13 2011/01/25 22:22:14 shattered Exp $ +$NetBSD: distinfo,v 1.14 2011/03/19 03:58:20 obache Exp $ SHA1 (scsh-0.6.7.tar.gz) = a1eaf0d0593e14914824898a0c3ec166429affd7 RMD160 (scsh-0.6.7.tar.gz) = f017c5a157cd1a3ad5daeaecba43ce84784c7e51 Size (scsh-0.6.7.tar.gz) = 4367439 bytes -SHA1 (patch-aa) = 2826391983edc5e1dc2720426bf75e1f37921092 +SHA1 (patch-aa) = af4a92d782141363ac90ef774e1ff397e1ca4001 SHA1 (patch-ab) = e796b61e4cc1c6e29f8fa0bf78a1204cb0e79cfc SHA1 (patch-ac) = a410fae673574d465591b75d14be1909cd19337a SHA1 (patch-ad) = 46825c2742f8c3f41ce6300411841fde6fa63de0 diff --git a/shells/scsh/patches/patch-aa b/shells/scsh/patches/patch-aa index d55009812be..eb3953b5d1d 100644 --- a/shells/scsh/patches/patch-aa +++ b/shells/scsh/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.11 2006/09/03 11:39:08 kristerw Exp $ +$NetBSD: patch-aa,v 1.12 2011/03/19 03:58:20 obache Exp $ --- Makefile.in.orig 2006-09-03 13:12:21.000000000 +0200 +++ Makefile.in 2006-09-03 13:20:50.000000000 +0200 @@ -24,7 +24,7 @@ $NetBSD: patch-aa,v 1.11 2006/09/03 11:39:08 kristerw Exp $ $(INSTALL_DATA) $$f $(DESTDIR)$(LIB)/rts || exit 1; \ + done && \ + for f in emacs/*; do \ -+ $(INSTALL_DATA) $$f $(LIB)/emacs || exit 1; \ ++ $(INSTALL_DATA) $$f $(DESTDIR)$(LIB)/emacs || exit 1; \ done inst-doc: -- cgit v1.2.3