[Shr-Devel] [PATCH] new package: mg

Justus Winter 4winter at informatik.uni-hamburg.de
Sat Oct 16 02:16:31 CEST 2010


mg is Micro GNU/emacs, this is a portable version of the mg
maintained by the OpenBSD team.
---
 recipes/mg/mg_20090107.bb                          |   23 +++++++++++++
 recipes/mg/patches/000-fix-Makefile.in.patch       |   35 ++++++++++++++++++++
 .../patches/001-initialize-pointer-to-NULL.patch   |   12 +++++++
 3 files changed, 70 insertions(+), 0 deletions(-)
 create mode 100644 recipes/mg/mg_20090107.bb
 create mode 100644 recipes/mg/patches/000-fix-Makefile.in.patch
 create mode 100644 recipes/mg/patches/001-initialize-pointer-to-NULL.patch

diff --git a/recipes/mg/mg_20090107.bb b/recipes/mg/mg_20090107.bb
new file mode 100644
index 0000000..d455ee1
--- /dev/null
+++ b/recipes/mg/mg_20090107.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "mg is Micro GNU/emacs, this is a portable version of the mg maintained by the OpenBSD team"
+HOMEPAGE = "http://homepage.boetes.org/software/mg/"
+LICENSE = "public domain"
+SECTION = "console/editors"
+DEPENDS = "ncurses"
+PR = "r0"
+
+SRC_URI = "http://homepage.boetes.org/software/mg/${PN}-${PV}.tar.gz \
+           file://patches/000-fix-Makefile.in.patch;striplevel=1 \
+           file://patches/001-initialize-pointer-to-NULL.patch;striplevel=1"
+
+SRC_URI[md5sum] = "f25a139da44c3a2f760ffec531bd996e"
+SRC_URI[sha256sum] = "a1702268b2607dacfcc22c5ffd80845113dff5f82b794139c801d875f87ff048"
+
+inherit autotools
+
+do_configure() {
+    ./configure
+}
+
+do_install() {
+    oe_runmake 'DESTDIR=${D}' 'prefix=/usr' 'mandir=/usr/share/man' install
+}
diff --git a/recipes/mg/patches/000-fix-Makefile.in.patch b/recipes/mg/patches/000-fix-Makefile.in.patch
new file mode 100644
index 0000000..75c73c4
--- /dev/null
+++ b/recipes/mg/patches/000-fix-Makefile.in.patch
@@ -0,0 +1,35 @@
+diff -r 10f7754e3ab7 Makefile.in
+--- a/Makefile.in	Sat Oct 16 02:00:48 2010 +0200
++++ b/Makefile.in	Sat Oct 16 02:02:06 2010 +0200
+@@ -7,20 +7,20 @@
+ 
+ name=		mg
+ 
+-prefix=		/usr/local
+-bindir=		$(prefix)/bin
+-libdir=		$(prefix)/lib
+-includedir=	$(prefix)/include
+-mandir=		$(prefix)/man
++prefix?=	/usr/local
++bindir?=	$(prefix)/bin
++libdir?=	$(prefix)/lib
++includedir?=	$(prefix)/include
++mandir?=	$(prefix)/man
+ 
+ 
+-CC=		gcc
+-CFLAGS?=	-O2 -pipe
+-CFLAGS+=	-g -Wall -Werror
+-LDFLAGS= 	-lncurses
++CC?=		gcc
++CFLAGS?=	-O2 -pipe -g
++CFLAGS+=	-Wall -Werror
++LDFLAGS+= 	-lncurses
+ 
+-INSTALL=	/usr/bin/install
+-STRIP=		/usr/bin/strip
++INSTALL?=	/usr/bin/install
++STRIP?=		/usr/bin/strip
+ 
+ 
+ OBJS= 	autoexec.o \
diff --git a/recipes/mg/patches/001-initialize-pointer-to-NULL.patch b/recipes/mg/patches/001-initialize-pointer-to-NULL.patch
new file mode 100644
index 0000000..d92e99d
--- /dev/null
+++ b/recipes/mg/patches/001-initialize-pointer-to-NULL.patch
@@ -0,0 +1,12 @@
+diff -r 245acecec991 extend.c
+--- a/extend.c	Sat Oct 16 01:51:01 2010 +0200
++++ b/extend.c	Sat Oct 16 01:54:45 2010 +0200
+@@ -707,7 +707,7 @@
+ 	long	 nl;
+ #ifdef	FKEYS
+ 	int	 bind;
+-	KEYMAP	*curmap;
++	KEYMAP	*curmap = NULL;
+ #define BINDARG		0  /* this arg is key to bind (local/global set key) */
+ #define	BINDNO		1  /* not binding or non-quoted BINDARG */
+ #define BINDNEXT	2  /* next arg " (define-key) */
-- 
1.7.1



More information about the Shr-devel mailing list