summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-10-07 20:24:50 +0000
committerUlrich Müller <ulm@gentoo.org>2014-10-07 20:24:50 +0000
commit8fbd4ccfb0db716478be67c05b9ddfd5678e4128 (patch)
treee206e5eb2541366f0a49f60a7b139754be367bdf /app-editors/mg
parentmedia-video/smplayer: USE=bidi (bug #507588) (diff)
downloadgentoo-2-8fbd4ccfb0db716478be67c05b9ddfd5678e4128.tar.gz
gentoo-2-8fbd4ccfb0db716478be67c05b9ddfd5678e4128.tar.bz2
gentoo-2-8fbd4ccfb0db716478be67c05b9ddfd5678e4128.zip
Version bump.
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)
Diffstat (limited to 'app-editors/mg')
-rw-r--r--app-editors/mg/ChangeLog7
-rw-r--r--app-editors/mg/mg-20141007.ebuild52
2 files changed, 58 insertions, 1 deletions
diff --git a/app-editors/mg/ChangeLog b/app-editors/mg/ChangeLog
index 0fce54631f74..4d493a2dde63 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.84 2014/08/29 06:27:37 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/ChangeLog,v 1.85 2014/10/07 20:24:50 ulm Exp $
+
+*mg-20141007 (07 Oct 2014)
+
+ 07 Oct 2014; Ulrich Müller <ulm@gentoo.org> +mg-20141007.ebuild:
+ Version bump.
29 Aug 2014; Ulrich Müller <ulm@gentoo.org> mg-20140414.ebuild:
Replace einstall by dobin/doman, bug 521422.
diff --git a/app-editors/mg/mg-20141007.ebuild b/app-editors/mg/mg-20141007.ebuild
new file mode 100644
index 000000000000..e84cdd3eb37f
--- /dev/null
+++ b/app-editors/mg/mg-20141007.ebuild
@@ -0,0 +1,52 @@
+# 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-20141007.ebuild,v 1.1 2014/10/07 20:24:50 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="~alpha ~amd64 ~arm ~hppa ~sparc ~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() {
+ dobin mg
+ doman mg.1
+ 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
+}