From 3af1e90919eeaffc16614a691237f802505b1889 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 21 Mar 2006 11:22:52 +0000 Subject: - add uemacs --- package/uemacs/Config.in | 7 +++++ package/uemacs/uemacs-4.0.15-lt.01.patch | 33 ++++++++++++++++++++++ package/uemacs/uemacs-4.0.15-lt.02.patch | 26 ++++++++++++++++++ package/uemacs/uemacs.mk | 47 ++++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 package/uemacs/Config.in create mode 100644 package/uemacs/uemacs-4.0.15-lt.01.patch create mode 100644 package/uemacs/uemacs-4.0.15-lt.02.patch create mode 100644 package/uemacs/uemacs.mk (limited to 'package/uemacs') diff --git a/package/uemacs/Config.in b/package/uemacs/Config.in new file mode 100644 index 000000000..87f88982e --- /dev/null +++ b/package/uemacs/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_UEMACS + bool "uemacs" + default n + help + A small emacs. + + ftp://ftp.kernel.org/pub/software/editors/uemacs/ diff --git a/package/uemacs/uemacs-4.0.15-lt.01.patch b/package/uemacs/uemacs-4.0.15-lt.01.patch new file mode 100644 index 000000000..855dd3510 --- /dev/null +++ b/package/uemacs/uemacs-4.0.15-lt.01.patch @@ -0,0 +1,33 @@ +diff -rup em-4.0.15-lt.oorig/display.c em-4.0.15-lt/display.c +--- em-4.0.15-lt.oorig/display.c 1994-05-21 12:40:56.000000000 +0200 ++++ em-4.0.15-lt/display.c 2005-11-16 16:54:22.000000000 +0100 +@@ -9,6 +9,7 @@ + */ + + #include ++#include + #include "estruct.h" + #include "edef.h" + +diff -rup em-4.0.15-lt.oorig/main.c em-4.0.15-lt/main.c +--- em-4.0.15-lt.oorig/main.c 1994-05-21 12:41:03.000000000 +0200 ++++ em-4.0.15-lt/main.c 2005-11-16 16:54:01.000000000 +0100 +@@ -123,7 +123,7 @@ char *argv[]; /* argument strings */ + #endif + + #if UNIX +- static void emergencyexit(); ++ void emergencyexit(); + #ifdef SIGWINCH + extern void sizesignal(); + #endif +@@ -599,7 +599,7 @@ quickexit(f, n) + return(TRUE); + } + +-static void emergencyexit(signr) ++void emergencyexit(signr) + int signr; + { + quickexit(FALSE, 0); + diff --git a/package/uemacs/uemacs-4.0.15-lt.02.patch b/package/uemacs/uemacs-4.0.15-lt.02.patch new file mode 100644 index 000000000..f399349be --- /dev/null +++ b/package/uemacs/uemacs-4.0.15-lt.02.patch @@ -0,0 +1,26 @@ +--- em-4.0.15-lt.oorig/lock.c 1999-05-16 09:04:17.000000000 +0200 ++++ em-4.0.15-lt/lock.c 2006-03-10 15:22:16.000000000 +0100 +@@ -152,10 +152,8 @@ + + strcpy(obuf, errstr); + strcat(obuf, " - "); +- if (errno < sys_nerr) +- strcat(obuf, sys_errlist[errno]); +- else +- strcat(obuf, "(can not get system error message)"); ++ strcat(obuf, strerror(errno)); ++ + mlwrite(obuf); + } + #endif +--- em-4.0.15-lt.oorig/input.c 1994-05-21 12:41:02.000000000 +0200 ++++ em-4.0.15-lt/input.c 2006-03-10 15:31:18.000000000 +0100 +@@ -581,7 +581,7 @@ + if (! iswild) + strcat(ffbuf,"*"); + strcat(ffbuf, " >"); +- mktemp(tmp); ++ mkstemp(tmp); + strcat(ffbuf, tmp); + strcat(ffbuf, " 2>&1"); + system(ffbuf); diff --git a/package/uemacs/uemacs.mk b/package/uemacs/uemacs.mk new file mode 100644 index 000000000..637bf605d --- /dev/null +++ b/package/uemacs/uemacs.mk @@ -0,0 +1,47 @@ +############################################################# +# +# uemacs +# +############################################################# +UEMACS_VER:=4.0.15-lt +UEMACS_SOURCE:=em-$(UEMACS_VER).tar.bz2 +UEMACS_SITE:=ftp://ftp.kernel.org/pub/software/editors/uemacs/ +UEMACS_DIR:=$(BUILD_DIR)/em-$(UEMACS_VER) +UEMACS_BINARY:=em +UEMACS_TARGET_BINARY:=usr/bin/emacs + +$(DL_DIR)/$(UEMACS_SOURCE): + $(WGET) -P $(DL_DIR) $(UEMACS_SITE)/$(UEMACS_SOURCE) + +uemacs-source: $(DL_DIR)/$(UEMACS_SOURCE) + +$(UEMACS_DIR)/.unpacked: $(DL_DIR)/$(UEMACS_SOURCE) + bzcat $(DL_DIR)/$(UEMACS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(UEMACS_DIR) package/uemacs/ uemacs\*.patch + touch $(UEMACS_DIR)/.unpacked + +$(UEMACS_DIR)/$(UEMACS_BINARY): $(UEMACS_DIR)/.unpacked + $(MAKE) -C $(UEMACS_DIR) \ + CC="$(TARGET_CC)" DEFINES="-DAUTOCONF -DPOSIX -DUSG" CFLAGS+="$(TARGET_CFLAGS) -march=$(ARCH)" LIBS=-lcurses + $(STRIP) $(UEMACS_DIR)/$(UEMACS_BINARY) + +$(TARGET_DIR)/$(UEMACS_TARGET_BINARY): $(UEMACS_DIR)/$(UEMACS_BINARY) + $(INSTALL) -m 0755 -D $(UEMACS_DIR)/$(UEMACS_BINARY) $(TARGET_DIR)/$(UEMACS_TARGET_BINARY) + +uemacs: uclibc $(TARGET_DIR)/$(UEMACS_TARGET_BINARY) + +uemacs-clean: + rm -f $(TARGET_DIR)/$(UEMACS_TARGET_BINARY) + -$(MAKE) -C $(UEMACS_DIR) clean + +uemacs-dirclean: + rm -rf $(UEMACS_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_UEMACS)),y) +TARGETS+=uemacs +endif -- cgit v1.2.3