summaryrefslogtreecommitdiff
path: root/app-editors
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-01-15 13:27:49 +0100
committerUlrich Müller <ulm@gentoo.org>2016-01-15 13:27:49 +0100
commitd4cc43c1c793f4b3f510717f0f99292edc7b9d2f (patch)
tree95c168de807720f92f2345904dad6a0ae700cab3 /app-editors
parent6c05f92b26a7e30ace1abaa1d96ba33749bb65c9 (diff)
downloadgentoo-d4cc43c1c793f4b3f510717f0f99292edc7b9d2f.tar.gz
gentoo-d4cc43c1c793f4b3f510717f0f99292edc7b9d2f.tar.xz
app-editors/mg: Version bump.
Package-Manager: portage-2.2.26
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/mg/Manifest1
-rw-r--r--app-editors/mg/mg-20160115.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/app-editors/mg/Manifest b/app-editors/mg/Manifest
index b4213a5fbc4..59d457bd8e9 100644
--- a/app-editors/mg/Manifest
+++ b/app-editors/mg/Manifest
@@ -1,2 +1,3 @@
DIST mg-20110905.tar.gz 138805 SHA256 1cd37d7e6a3eecc890a5718c38b8f38495057ba93856762a756ccee2f9618229 SHA512 b490a5a3526d35839353e138f33ac924c5afbbf7e5c9faa20ceccb82e1dc1e6a3f0726b32bac7d43dcf8a410b1b8525067da5557cf669c52a9e32d1d2f45a8a4 WHIRLPOOL 64dd179462a8c9e53946c756a4975ffd2e5bf1758a300fa699032542a6e2470f9ed03f9fe1a88ac441cf17ac20c2575f9b6c5c1c396c5a7915564fbedfb1c854
DIST mg-20150323.tar.gz 142105 SHA256 d71b24d47d3e1426f162e446d92dfa457df96dd47c1289419cba9fd14c2c3afb SHA512 747a04c203509cdbe84d9cea6c5be93585cdd5cb855b556ea5dee273a2923a4a68bee3f952cf92d584fcdd682049cb4442c21888304ba036851127174457351f WHIRLPOOL bdba74b62034a6613434fc3efea7b56fa1599b6059ab97dbd760b013be7dc50ab13dfcee3f5fb1f41f4c26c3f0146583680134d3809ec7977a14a28cb345c6db
+DIST mg-20160115.tar.gz 145374 SHA256 968c212d720b76d42cf1b42806ca3c7ca9f7b72b06f16171694a9fc50ef8db77 SHA512 afe75f7c453552dd6ce65772a82155e328f7a4557072b5a1d5dca031a3d4e1e524bfeac2fdc8c76de9cb337770a77f71f96cc762db29518408579fccb25e1d71 WHIRLPOOL a647e999ae6cffe53fb17d460398b2967968a6f2de62db503eeb79f449d720836c0efb997ac70033a9c0b0ca1fb74c3096d370b45dcca3a4c6bf5c587bb68016
diff --git a/app-editors/mg/mg-20160115.ebuild b/app-editors/mg/mg-20160115.ebuild
new file mode 100644
index 00000000000..197182edb71
--- /dev/null
+++ b/app-editors/mg/mg-20160115.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+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="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="livecd"
+
+RDEPEND="sys-libs/ncurses:0
+ !elibc_FreeBSD? ( >=dev-libs/libbsd-0.7.0 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ # 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
+
+ eapply_user
+}
+
+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
+}