summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-04-06 20:51:44 +0000
committerUlrich Müller <ulm@gentoo.org>2014-04-06 20:51:44 +0000
commitc2c18b9aa05b6d177c04037f44912fd0582d4a0c (patch)
tree7cd8a734af1692b64f482c01229f256b5fb392e3 /app-editors
parentold (diff)
downloadgentoo-2-c2c18b9aa05b6d177c04037f44912fd0582d4a0c.tar.gz
gentoo-2-c2c18b9aa05b6d177c04037f44912fd0582d4a0c.tar.bz2
gentoo-2-c2c18b9aa05b6d177c04037f44912fd0582d4a0c.zip
Version bump.
(Portage version: 2.2.10/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-20140406.ebuild51
2 files changed, 57 insertions, 1 deletions
diff --git a/app-editors/mg/ChangeLog b/app-editors/mg/ChangeLog
index 7011dec49e75..95377e2d3175 100644
--- a/app-editors/mg/ChangeLog
+++ b/app-editors/mg/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-editors/mg
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/ChangeLog,v 1.75 2014/03/22 23:05:38 nimiux Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/ChangeLog,v 1.76 2014/04/06 20:51:44 ulm Exp $
+
+*mg-20140406 (06 Apr 2014)
+
+ 06 Apr 2014; Ulrich Müller <ulm@gentoo.org> +mg-20140406.ebuild:
+ Version bump.
22 Mar 2014; Chema Alonso <nimiux@gentoo.org> mg-20140306.ebuild:
Stable for amd64 wrt bug #504870
diff --git a/app-editors/mg/mg-20140406.ebuild b/app-editors/mg/mg-20140406.ebuild
new file mode 100644
index 000000000000..7bb8c97a1ce9
--- /dev/null
+++ b/app-editors/mg/mg-20140406.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/mg-20140406.ebuild,v 1.1 2014/04/06 20:51: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 ~arm ~hppa ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="livecd"
+
+RDEPEND="sys-libs/ncurses
+ !elibc_FreeBSD? ( dev-libs/libbsd )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+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}" \
+ CURSES_LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
+}
+
+src_install() {
+ einstall
+ dodoc README 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
+}