summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-10-03 19:47:40 +0200
committerUlrich Müller <ulm@gentoo.org>2013-10-03 19:47:40 +0200
commitcb70b253de2f22bedee0b6dcbd6ddd58ce2bdf85 (patch)
treea2ea471b0f24a603e28d16e874150e95d154e858 /app-editors
parentInitial import. Ebuild contributed by me. (diff)
downloademacs-cb70b253de2f22bedee0b6dcbd6ddd58ce2bdf85.tar.gz
emacs-cb70b253de2f22bedee0b6dcbd6ddd58ce2bdf85.tar.bz2
emacs-cb70b253de2f22bedee0b6dcbd6ddd58ce2bdf85.zip
Copied from Portage tree. Version bump.
Package-Manager: portage-2.2.7
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/mg/ChangeLog10
-rw-r--r--app-editors/mg/Manifest1
-rw-r--r--app-editors/mg/metadata.xml9
-rw-r--r--app-editors/mg/mg-20130922.ebuild49
4 files changed, 69 insertions, 0 deletions
diff --git a/app-editors/mg/ChangeLog b/app-editors/mg/ChangeLog
new file mode 100644
index 0000000..727dca2
--- /dev/null
+++ b/app-editors/mg/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-editors/mg
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*mg-20130922 (03 Oct 2013)
+
+ 03 Oct 2013; Ulrich Müller <ulm@gentoo.org> +mg-20130922.ebuild,
+ +metadata.xml:
+ Copied from Portage tree. Version bump.
+
diff --git a/app-editors/mg/Manifest b/app-editors/mg/Manifest
new file mode 100644
index 0000000..7f76d50
--- /dev/null
+++ b/app-editors/mg/Manifest
@@ -0,0 +1 @@
+DIST mg-20130922.tar.gz 142886 SHA256 323c21489416e256d036e8d58b6b72f96e7dee393fa8e38709f5fa226c8e7dd3 SHA512 79bf02ff3d30f41c234310b33c98f9a0f9c8a1197fe12c02e108071f6bc80f0d37003076cc1a2eb1c9a88c668eeab30e8a2d0c86af13ef57dd562dc077bb229b WHIRLPOOL c358095bf8fc686a5ebbe327ac35f5812164623307e77b1cc8293f28a65893dfd1826b4412ce0800cb5b77394b2eaeaff261149f25cd075651a7783c64248ff8
diff --git a/app-editors/mg/metadata.xml b/app-editors/mg/metadata.xml
new file mode 100644
index 0000000..41e5f9b
--- /dev/null
+++ b/app-editors/mg/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>emacs</herd>
+<longdescription>
+ mg is Micro GNU/emacs, this is a portable version of the mg maintained by
+ the OpenBSD team.
+</longdescription>
+</pkgmetadata>
diff --git a/app-editors/mg/mg-20130922.ebuild b/app-editors/mg/mg-20130922.ebuild
new file mode 100644
index 0000000..92e7e3d
--- /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-20110905-r1.ebuild,v 1.7 2013/05/25 14:24:04 ago 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 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+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 '\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
+}