summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-11-17 11:44:44 +0000
committerUlrich Müller <ulm@gentoo.org>2013-11-17 11:44:44 +0000
commit9bb3200724d360df6dff55a1952045e041938b97 (patch)
treef7ba6bb38ce15e799999f00c8536eed997a7ae0e /app-editors
parentapp-backup/deja-dup: Version BUmp (diff)
downloadgentoo-2-9bb3200724d360df6dff55a1952045e041938b97.tar.gz
gentoo-2-9bb3200724d360df6dff55a1952045e041938b97.tar.bz2
gentoo-2-9bb3200724d360df6dff55a1952045e041938b97.zip
Version bump.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/mg/ChangeLog7
-rw-r--r--app-editors/mg/mg-20131117.ebuild52
2 files changed, 58 insertions, 1 deletions
diff --git a/app-editors/mg/ChangeLog b/app-editors/mg/ChangeLog
index 94c5c9a103c1..c79e844f2d37 100644
--- a/app-editors/mg/ChangeLog
+++ b/app-editors/mg/ChangeLog
@@ -1,6 +1,11 @@
# 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.63 2013/10/22 10:34:28 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/ChangeLog,v 1.64 2013/11/17 11:44:44 ulm Exp $
+
+*mg-20131117 (17 Nov 2013)
+
+ 17 Nov 2013; Ulrich Müller <ulm@gentoo.org> +mg-20131117.ebuild:
+ Version bump.
*mg-20130922-r2 (22 Oct 2013)
diff --git a/app-editors/mg/mg-20131117.ebuild b/app-editors/mg/mg-20131117.ebuild
new file mode 100644
index 000000000000..46cf1a7a0e1a
--- /dev/null
+++ b/app-editors/mg/mg-20131117.ebuild
@@ -0,0 +1,52 @@
+# 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-20131117.ebuild,v 1.1 2013/11/17 11:44:44 ulm Exp $
+
+EAPI=5
+
+inherit eutils 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 ~hppa ~x86"
+IUSE="livecd"
+
+RDEPEND="sys-libs/ncurses"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-libs/clens"
+
+src_prepare() {
+ epatch_user
+
+ # remove OpenBSD specific easter egg
+ sed -i -e 's/theo\.o//' GNUmakefile || die
+ sed -i -e '/theo_init/d' main.c || die
+
+ # fix path to tutorial in man page
+ sed -i -e "s:doc/mg/:doc/${PF}/:" mg.1 || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} -DFKEYS -DREGEX -DXKEYS \
+ -I${EPREFIX}/usr/include/clens" \
+ LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses) -lclens"
+}
+
+src_install() {
+ einstall
+ dodoc README README_PORTING tutorial
+ # don't compress the tutorial, otherwise mg cannot open it
+ docompress -x /usr/share/doc/${PF}/tutorial
+}
+
+pkg_postinst() {
+ if use livecd; then
+ [[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs
+ fi
+}