diff options
author | asau <asau@pkgsrc.org> | 2009-12-12 21:58:18 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2009-12-12 21:58:18 +0000 |
commit | 2e045c8460d0afc39f5bf02631be8fb267713c8b (patch) | |
tree | 29e39572745a02c964a834a2812cc321b29ae90f /lang/kali | |
parent | 53d3bcc5574c0956f1cc00a49ada5540c1937c09 (diff) | |
download | pkgsrc-2e045c8460d0afc39f5bf02631be8fb267713c8b.tar.gz |
Support staged installation.
Diffstat (limited to 'lang/kali')
-rw-r--r-- | lang/kali/Makefile | 7 | ||||
-rw-r--r-- | lang/kali/distinfo | 4 | ||||
-rw-r--r-- | lang/kali/patches/patch-aa | 95 |
3 files changed, 98 insertions, 8 deletions
diff --git a/lang/kali/Makefile b/lang/kali/Makefile index c1dc0a4635e..2aedf2e1964 100644 --- a/lang/kali/Makefile +++ b/lang/kali/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2008/09/06 22:37:04 dholland Exp $ +# $NetBSD: Makefile,v 1.11 2009/12/12 21:58:18 asau Exp $ DISTNAME= kali-0.47 CATEGORIES= lang @@ -8,9 +8,12 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.neci.nj.nec.com/PLS/Kali.html COMMENT= Distributed implementation of Scheme +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= yes BUILD_TARGET= # empty -INSTALLATION_DIRS= bin include lib +MAKE_ENV= mandir=$(PREFIX)/$(PKGMANDIR)/man1 +INSTALLATION_DIRS= bin include lib $(PKGMANDIR)/man1 # Thoroughly broken on 64-bit architectures. NOT_FOR_PLATFORM= *-*-alpha *-*-sparc64 *-*-x86_64 diff --git a/lang/kali/distinfo b/lang/kali/distinfo index 4cff15d95c9..40e14c50a83 100644 --- a/lang/kali/distinfo +++ b/lang/kali/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.4 2007/06/17 15:38:54 salo Exp $ +$NetBSD: distinfo,v 1.5 2009/12/12 21:58:18 asau Exp $ SHA1 (kali-0.47.tar.gz) = 6f55c4b58304b337453e51c284e08e50d355fd55 RMD160 (kali-0.47.tar.gz) = f2ea2b3ba55e534365c3d6082f91feb773285cd7 Size (kali-0.47.tar.gz) = 970455 bytes -SHA1 (patch-aa) = 1852dd676cd52676bcfe6f745eb5ed667df91c6f +SHA1 (patch-aa) = 4a4625a7dfeece3f13b738f43b94ff698af78732 diff --git a/lang/kali/patches/patch-aa b/lang/kali/patches/patch-aa index a381865d68c..5ad7d7c2e92 100644 --- a/lang/kali/patches/patch-aa +++ b/lang/kali/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.1 2007/06/17 15:38:54 salo Exp $ +$NetBSD: patch-aa,v 1.2 2009/12/12 21:58:18 asau Exp $ ---- Makefile.in.orig 1997-01-21 23:41:37.000000000 +0100 -+++ Makefile.in 2007-06-17 17:32:26.000000000 +0200 -@@ -98,7 +98,7 @@ CONFIG_FILES = scheme/interfaces.scm sch +--- Makefile.in.orig 1997-01-22 01:41:37.000000000 +0300 ++++ Makefile.in 2009-12-13 00:48:07.000000000 +0300 +@@ -98,7 +98,7 @@ # The following is the first rule and therefore the "make" command's # default target. @@ -11,3 +11,90 @@ $NetBSD: patch-aa,v 1.1 2007/06/17 15:38:54 salo Exp $ # The developers are curious to know. Don't be concerned if this fails. .notify: build/minor-version-number +@@ -150,21 +150,21 @@ + install: enough dirs inst-script inst-vm inst-misc inst-man inst-inc inst-image + + inst-vm: +- $(INSTALL_PROGRAM) $(VM) $(LIB) ++ $(INSTALL_PROGRAM) $(VM) $(DESTDIR)$(LIB) + + inst-image: + rm -f '/tmp/$(IMAGE)' && \ + build/build-usual-image . '$(LIB)' '/tmp/$(IMAGE)' './$(VM)' \ + '$(INITIAL)' && \ +- $(INSTALL_DATA) /tmp/$(IMAGE) $(LIB) && \ ++ $(INSTALL_DATA) /tmp/$(IMAGE) $(DESTDIR)$(LIB) && \ + rm /tmp/$(IMAGE) + + inst-man: +- if [ -d $(mandir) -a -w $(mandir) ]; then \ ++ if [ -d $(DESTDIR)$(mandir) -a -w $(DESTDIR)$(mandir) ]; then \ + sed 's=LBIN=$(bindir)=g' doc/scheme48.man | \ + sed 's=LLIB=$(LIB)=g' | \ + sed 's=LS48=$(RUNNABLE)=g' >$(MANPAGE) && \ +- $(INSTALL_DATA) $(MANPAGE) $(mandir) && \ ++ $(INSTALL_DATA) $(MANPAGE) $(DESTDIR)$(mandir) && \ + rm $(MANPAGE); \ + else \ + echo "$(mandir) not writable dir, not installing man page" \ +@@ -172,29 +172,29 @@ + fi + + inst-inc: +- $(INSTALL_DATA) c/kali.h $(incdir) ++ $(INSTALL_DATA) c/kali.h $(DESTDIR)$(incdir) + + inst-misc: + for stub in env big opt misc link; do \ + for f in scheme/$$stub/*.scm; do \ +- $(INSTALL_DATA) $$f $(LIB)/$$stub || exit 1; \ ++ $(INSTALL_DATA) $$f $(DESTDIR)$(LIB)/$$stub || exit 1; \ + done; \ + done && \ + for f in scheme/rts/*num.scm scheme/rts/jar-defrecord.scm; do \ +- $(INSTALL_DATA) $$f $(LIB)/rts || exit 1; \ ++ $(INSTALL_DATA) $$f $(DESTDIR)$(LIB)/rts || exit 1; \ + done && \ + sed 's;LBIN;$(bindir);g' <daemon | \ +- sed 's;LS48;$(RUNNABLE);g' >$(LIB)/daemon && \ +- chmod 655 $(LIB)/daemon ++ sed 's;LS48;$(RUNNABLE);g' >$(DESTDIR)$(LIB)/daemon && \ ++ chmod 655 $(DESTDIR)$(LIB)/daemon + + inst-script: + script=$(bindir)/$(RUNNABLE) && \ +- echo '#!/bin/sh' >$$script && \ +- echo >>$$script && \ +- echo 'lib=$(LIB)' >>$$script && \ ++ (echo '#!/bin/sh' && \ ++ echo && \ ++ echo 'lib=$(LIB)' && \ + echo 'exec $$lib/$(VM) -o $$lib/$(VM) -i $$lib/$(IMAGE) "$$@"' \ +- >>$$script && \ +- chmod +x $$script ++ )>$(DESTDIR)$$script && \ ++ chmod +x $(DESTDIR)$$script + + # Script to run kali in this directory. + go: +@@ -207,17 +207,17 @@ + + dirs: + for dir in $(libdir) $(bindir) $(incdir); do \ +- [ -d $$dir -a -w $$dir ] || { \ ++ [ -d $(DESTDIR)$$dir -a -w $(DESTDIR)$$dir ] || { \ + echo "$$dir not a writable directory" >&2; \ + exit 1; \ + }; \ + done +- { mkdir -p $(LIB) && [ -w $(LIB) ]; } || { \ ++ { mkdir -p $(DESTDIR)$(LIB) && [ -w $(DESTDIR)$(LIB) ]; } || { \ + echo "$(LIB) not a writable directory" >&2; \ + exit 1; \ + } + for dir in rts env big opt misc link; do \ +- { mkdir -p $(LIB)/$$dir && [ -w $(LIB)/$$dir ]; } || { \ ++ { mkdir -p $(DESTDIR)$(LIB)/$$dir && [ -w $(DESTDIR)$(LIB)/$$dir ]; } || { \ + echo "$(LIB)/$$dir not a writable directory" >&2; \ + exit 1; \ + }; \ |