diff options
author | joerg <joerg> | 2010-01-29 19:43:36 +0000 |
---|---|---|
committer | joerg <joerg> | 2010-01-29 19:43:36 +0000 |
commit | 6cf3c423b4f2a15bb259766e1383c45796c574a1 (patch) | |
tree | f96e2b9208214b60919e3b089639838c058b1f6c /editors/ce | |
parent | 7467486dd7deb9a82a21398e953bb5b85815c33e (diff) | |
download | pkgsrc-6cf3c423b4f2a15bb259766e1383c45796c574a1.tar.gz |
DESTDIR support
Diffstat (limited to 'editors/ce')
-rw-r--r-- | editors/ce/Makefile | 6 | ||||
-rw-r--r-- | editors/ce/distinfo | 4 | ||||
-rw-r--r-- | editors/ce/patches/patch-aa | 41 |
3 files changed, 38 insertions, 13 deletions
diff --git a/editors/ce/Makefile b/editors/ce/Makefile index 6638e580c68..fe62ac13b76 100644 --- a/editors/ce/Makefile +++ b/editors/ce/Makefile @@ -1,11 +1,13 @@ -# $NetBSD: Makefile,v 1.17 2007/01/07 09:13:52 rillig Exp $ +# $NetBSD: Makefile,v 1.18 2010/01/29 19:43:36 joerg Exp $ # +PKG_DESTDIR_SUPPORT= user-destdir +PKG_INSTALLATION_TYPES= overwrite pkgviews + .include "Makefile.common" COMMENT+= , tty version -PKG_INSTALLATION_TYPES= overwrite pkgviews REPLACE_INTERPRETER+= bash REPLACE.bash.old= .*/bin/bash diff --git a/editors/ce/distinfo b/editors/ce/distinfo index 17bd9d8cf5f..afc99731bf4 100644 --- a/editors/ce/distinfo +++ b/editors/ce/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.7 2006/03/09 14:50:31 ghen Exp $ +$NetBSD: distinfo,v 1.8 2010/01/29 19:43:36 joerg Exp $ SHA1 (ce-4.6.tar.gz) = 94d7ef6db3e9baf60205e922038d040380b67879 RMD160 (ce-4.6.tar.gz) = 9a9f55d639f5bae7a4f9a18b4480333bfe400785 Size (ce-4.6.tar.gz) = 287489 bytes -SHA1 (patch-aa) = 50322176da6a8dc2460aadf649a7f4dd2979a047 +SHA1 (patch-aa) = 4d41f468071052a968c1547122a0639e56d4551f SHA1 (patch-ab) = d41e4ece57025fe0c65a7897e55e34b51717f659 diff --git a/editors/ce/patches/patch-aa b/editors/ce/patches/patch-aa index 35244c86fea..d74ff3c0b14 100644 --- a/editors/ce/patches/patch-aa +++ b/editors/ce/patches/patch-aa @@ -1,26 +1,49 @@ -$NetBSD: patch-aa,v 1.3 2006/01/13 10:10:46 schmonz Exp $ +$NetBSD: patch-aa,v 1.4 2010/01/29 19:43:37 joerg Exp $ ---- Makefile.in.orig 2003-11-06 16:36:36.000000000 -0500 +--- Makefile.in.orig 2003-11-06 21:36:36.000000000 +0000 +++ Makefile.in +@@ -72,8 +72,8 @@ TEACHCE = teach-ce + BACKUP = ce.bak + + LINTFLAGS= -chx +-DESTDIR= $(bindir) +-MANDIR= $(man1dir) ++BINDIR= ${DESTDIR}$(bindir) ++MANDIR= ${DESTDIR}$(man1dir) + + # + # Systems like the NeXT that cannot use a non-libc malloc should comment +@@ -81,7 +81,7 @@ MANDIR= $(man1dir) + # + + # DOCDIR must agree with the definition for LIBDIR in the source (see ce.h) +-DOCDIR= $(libdir)/ce ++DOCDIR= ${DESTDIR}$(libdir)/ce + + CFILES= basic.c bind.c buffer.c bug.c cinfo.c cmode.c \ + complete.c dir.c display.c file.c fileio.c fio.c func.c \ @@ -233,29 +233,31 @@ backup: depend: makedepend -- $(CCFLAGS) -- $(CFILES) -installdirs: -+install: ${PROG} - @${SHELL} $(SUPPORT_SRC)/mkdirs $(DESTDIR) +- @${SHELL} $(SUPPORT_SRC)/mkdirs $(DESTDIR) - @${SHELL} $(SUPPORT_SRC)/mkdirs $(MANDIR) - @${SHELL} $(SUPPORT_SRC)/mkdirs $(DOCDIR) - -install: ${PROG} ${XPROG} installdirs - -$(MV) ${DESTDIR}/${PROG} ${DESTDIR}/${PROG}.${OLDEXT} - -$(MV) ${DESTDIR}/${XPROG} ${DESTDIR}/${XPROG}.${OLDEXT} - $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)/${PROG} +- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)/${PROG} +- $(INSTALL_PROGRAM) $(XPROG) $(DESTDIR)/${XPROG} +- $(INSTALL_SCRIPT) $(TEACHCE) $(DESTDIR)/$(TEACHCE) ++install: ${PROG} ++ @${SHELL} $(SUPPORT_SRC)/mkdirs $(BINDIR) ++ $(INSTALL_PROGRAM) $(PROG) $(BINDIR)/${PROG} + +install-x11: ${XPROG} -+ @${SHELL} $(SUPPORT_SRC)/mkdirs $(DESTDIR) - $(INSTALL_PROGRAM) $(XPROG) $(DESTDIR)/${XPROG} -- $(INSTALL_SCRIPT) $(TEACHCE) $(DESTDIR)/$(TEACHCE) ++ @${SHELL} $(SUPPORT_SRC)/mkdirs $(BINDIR) ++ $(INSTALL_PROGRAM) $(XPROG) $(BINDIR)/${XPROG} install-strip: $(MAKE) $(MFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' \ @@ -32,7 +55,7 @@ $NetBSD: patch-aa,v 1.3 2006/01/13 10:10:46 schmonz Exp $ ${INSTALL_DATA} ${DOC_SRC}/TUTORIAL $(DOCDIR)/TUTORIAL ${INSTALL_DATA} ${DOC_SRC}/ce.help $(DOCDIR)/ce.help ${INSTALL_DATA} ${DOC_SRC}/FUNCTIONS $(DOCDIR)/FUNCTIONS -+ $(INSTALL_SCRIPT) $(TEACHCE) $(DESTDIR)/$(TEACHCE) ++ $(INSTALL_SCRIPT) $(TEACHCE) $(BINDIR)/$(TEACHCE) -man-install: installdirs +man-install: |