summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-10-04 18:07:03 +0000
committerUlrich Müller <ulm@gentoo.org>2013-10-04 18:07:03 +0000
commitcfda7ea944fad53f38cee39ce7b21f43edeac652 (patch)
tree92d0da633e130f9ffa10267f19fe079b36794d06 /app-editors/mg
parentremove old, remove ocaml from stable due to ocaml-4 being ~, add libgcrypt to... (diff)
downloadgentoo-2-cfda7ea944fad53f38cee39ce7b21f43edeac652.tar.gz
gentoo-2-cfda7ea944fad53f38cee39ce7b21f43edeac652.tar.bz2
gentoo-2-cfda7ea944fad53f38cee39ce7b21f43edeac652.zip
Version bump. New dependency on dev-libs/clens which contains some OpenBSD glue-layer functions previously included with mg. Keywords dropped.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)
Diffstat (limited to 'app-editors/mg')
-rw-r--r--app-editors/mg/ChangeLog8
-rw-r--r--app-editors/mg/mg-20130922.ebuild49
2 files changed, 56 insertions, 1 deletions
diff --git a/app-editors/mg/ChangeLog b/app-editors/mg/ChangeLog
index aab293836a32..9cd7131660ae 100644
--- a/app-editors/mg/ChangeLog
+++ b/app-editors/mg/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-editors/mg
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/ChangeLog,v 1.55 2013/05/25 14:30:16 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/ChangeLog,v 1.56 2013/10/04 18:07:03 ulm Exp $
+
+*mg-20130922 (04 Oct 2013)
+
+ 04 Oct 2013; Ulrich Müller <ulm@gentoo.org> +mg-20130922.ebuild:
+ Version bump. New dependency on dev-libs/clens which contains some OpenBSD
+ glue-layer functions previously included with mg. Keywords dropped.
25 May 2013; Ulrich Müller <ulm@gentoo.org> -mg-20110905.ebuild:
Remove old.
diff --git a/app-editors/mg/mg-20130922.ebuild b/app-editors/mg/mg-20130922.ebuild
new file mode 100644
index 000000000000..ab67c705a52c
--- /dev/null
+++ b/app-editors/mg/mg-20130922.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/mg-20130922.ebuild,v 1.1 2013/10/04 18:07:03 ulm Exp $
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="MicroGnuEmacs, a port from the BSDs"
+HOMEPAGE="http://homepage.boetes.org/software/mg/"
+SRC_URI="http://homepage.boetes.org/software/mg/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="livecd"
+
+RDEPEND="sys-libs/ncurses"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-libs/clens"
+
+src_prepare() {
+ # create our own Makefile to avoid BSD make
+ echo -e 'SRCS =' *.c '\n\nmg: $(SRCS:.c=.o)' \
+ '\n\t$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)' >Makefile || die
+
+ # remove OpenBSD specific easter egg
+ sed -i -e 's/theo\.c//' Makefile || die
+ sed -i -e '/theo_init/d' main.c || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} -DFKEYS -DREGEX -DXKEYS -I/usr/include/clens" \
+ LDLIBS="-lclens $("$(tc-getPKG_CONFIG)" --libs ncurses)"
+}
+
+src_install() {
+ dobin mg
+ doman mg.1
+ dodoc README tutorial
+}
+
+pkg_postinst() {
+ if use livecd; then
+ [[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs
+ fi
+}