From 6dab44fe5a8c8594c60bc8b9251fec01d83dbb6a Mon Sep 17 00:00:00 2001
From: Satoshi Asami <asami@FreeBSD.org>
Date: Tue, 2 May 1995 09:09:38 +0000
Subject: Update. Submitted by:	thomas@ghpc8.ihf.rwth-aachen.de

---
 editors/uemacs/Makefile       | 18 +++++++-----------
 editors/uemacs/files/patch-aa | 10 +++++-----
 editors/uemacs/files/patch-ab |  9 +++++++--
 editors/uemacs/pkg-plist      |  1 -
 4 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/editors/uemacs/Makefile b/editors/uemacs/Makefile
index d10abe23cefe..8a52c1838355 100644
--- a/editors/uemacs/Makefile
+++ b/editors/uemacs/Makefile
@@ -9,22 +9,18 @@
 DISTNAME=	uemacs
 PKGNAME=	uemacs-3.12
 CATEGORIES+=	editors
-MASTER_SITES=	ftp://midas.mgmt.purdue.edu/pub/ue312/
+MASTER_SITES=	ftp://midas.mgmt.purdue.edu/dist/uemacs312/
 DISTFILES=	ue312dev.zip
 
+MAINTAINER=	ports@freebsd.org
+
 EXEC_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
 
 NO_WRKSUBDIR=	yes
 PATCH_STRIP=	-p1
-
-# one weakness of the ports scheme: it doesn't allow arguments
-# to ${EXTRACT_CMD} after the filename, which is required for unzip.
-
-# Satoshi: it does now, so please update it when you see this.... :)
-
-do-extract:
-	@rm -rf ${WRKDIR}
-	@mkdir -p ${WRKDIR}
-	@unzip -Laq ${DISTDIR}/${DISTFILES} -d ${WRKDIR}
+EXTRACT_CMD=		unzip
+EXTRACT_BEFORE_ARGS=	-Laq
+EXTRACT_AFTER_ARGS=	-d ${WRKDIR}
+NCFTPFLAGS=		-N -P
 
 .include <bsd.port.mk>
diff --git a/editors/uemacs/files/patch-aa b/editors/uemacs/files/patch-aa
index 334a459a0f4f..ea5216007827 100644
--- a/editors/uemacs/files/patch-aa
+++ b/editors/uemacs/files/patch-aa
@@ -12,10 +12,10 @@ diff -crN --exclude=*freebsd* ue312.orig/Makefile ue312/Makefile
 + 	(cd freebsd; make emacs)
 + 
 + install:	all
-+ 	install -c -s freebsd/emacs /usr/local/bin/uemacs
-+ 	mkdir -p /usr/local/lib/uemacs
-+ 	install -c -m 644 -o bin -g bin cmd/* /usr/local/lib/uemacs
-+ 	mv /usr/local/lib/uemacs/emacs.rc /usr/local/lib/uemacs/.emacsrc
++ 	install -c -s freebsd/emacs ${PREFIX}/bin/uemacs
++ 	mkdir -p ${PREFIX}/lib/uemacs
++ 	install -c -m 644 -o bin -g bin cmd/* ${PREFIX}/lib/uemacs
++ 	mv ${PREFIX}/lib/uemacs/emacs.rc ${PREFIX}/lib/uemacs/.emacsrc
 diff -crN --exclude=*freebsd* ue312.orig/h/epath.h ue312/h/epath.h
 *** ue312.orig/h/epath.h	Tue Mar 16 15:13:46 1993
 --- ue312/h/epath.h	Sat Jan 14 11:26:35 1995
@@ -230,7 +230,7 @@ diff -crN --exclude=*freebsd* ue312.orig/src/unix.c ue312/src/unix.c
 ! 	{ "ku", SPEC|'P' },		/* Up arrow key			*/
 !         { "K1", SPEC|'<' },		/* Keypad 7 -> Home		*/
 !         { "K2", SPEC|'V' },		/* Keypad 9 -> Page Up		*/
-!         { "K3", '' },		     	/* Keypad 5 -> not bound	*/
+!         { "K3", ' ' },		/* Keypad 5 			*/
 !         { "K4", SPEC|'>' },		/* Keypad 1 -> End		*/
 !         { "K5", CTRL|'V' }		/* Keypad 3 -> Page Down	*/
   };
diff --git a/editors/uemacs/files/patch-ab b/editors/uemacs/files/patch-ab
index c16d70dd5bd9..922b1623801f 100644
--- a/editors/uemacs/files/patch-ab
+++ b/editors/uemacs/files/patch-ab
@@ -1139,7 +1139,7 @@ diff -crN ue312.orig/freebsd/makefile ue312/freebsd/makefile
 --- ue312/freebsd/makefile	Sat Jan 14 12:14:10 1995
 ***************
 *** 0 ****
---- 1,97 ----
+--- 1,102 ----
 + #	Unix makefile for
 + #		MicroEMACS 3.12
 + #		(C)Copyright 1993 by Daniel Lawrence
@@ -1178,9 +1178,14 @@ diff -crN ue312.orig/freebsd/makefile ue312/freebsd/makefile
 + 
 + all:	emacs
 + 
++ message:
++ 	@echo ""
++ 	@echo "Expect some warnings. None of them seem to be fatal.  --tg"
++ 	@echo ""
++ 
 + OFILES =	$(F1) $(F2) $(F3) $(F4) $(F5) $(F6) $(F7) $(F8)
 + 
-+ emacs:	$(OFILES)
++ emacs:	message $(OFILES)
 + 		$(CC) -s $(CFLAGS) $(OFILES) -ltermcap -lc -o emacs
 + 
 + $(OBJD)/basic.o: $(SRCD)/basic.c $(HFILES)
diff --git a/editors/uemacs/pkg-plist b/editors/uemacs/pkg-plist
index a15cba5cb4ee..38dd76b9384e 100644
--- a/editors/uemacs/pkg-plist
+++ b/editors/uemacs/pkg-plist
@@ -1,4 +1,3 @@
-@cd /usr/local
 @owner bin
 @mode 755
 bin/uemacs
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0