summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-10-07 07:28:50 +0200
committerUlrich Müller <ulm@gentoo.org>2016-10-07 07:28:50 +0200
commit915607aec800009e617d47466075b270be5ee510 (patch)
treed9a6d2bd24cfe734d76d5dada0c1cb37c0cdbf14 /app-editors
parentsys-libs/libselinux: stable 2.5-r1 (diff)
downloadgentoo-915607aec800009e617d47466075b270be5ee510.tar.gz
gentoo-915607aec800009e617d47466075b270be5ee510.tar.bz2
gentoo-915607aec800009e617d47466075b270be5ee510.zip
app-editors/mg: Version bump.
Package-Manager: portage-2.3.1
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/mg/Manifest1
-rw-r--r--app-editors/mg/mg-20161005.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/app-editors/mg/Manifest b/app-editors/mg/Manifest
index d1f5275c75a2..9942e5498f7a 100644
--- a/app-editors/mg/Manifest
+++ b/app-editors/mg/Manifest
@@ -2,3 +2,4 @@ DIST mg-20150323.tar.gz 142105 SHA256 d71b24d47d3e1426f162e446d92dfa457df96dd47c
DIST mg-20160421.tar.gz 145187 SHA256 b5dd8fbecb8a0ff0f32588c448f22f25fafcbfb297857e76d2883598a3e63a9a SHA512 7a4fb9d8958952a1b430bda88cafa251aab74691073d103941bfc2cce495ad3831b2c722db044791d61ae2aee9a5a9acaedde0090964129822c94745d89469ed WHIRLPOOL 9a040a69c9d57232c411da3859e80c84f2f250f2fd78cd2799cfb82243fdd9d01d374edb23de44d6eb94b9ab86009458b3c7c4cf34b738c45d4622e6c67dc99b
DIST mg-20160905.tar.gz 144991 SHA256 72c14476f98e341a01520f09ab8dfdd52663498d9dc14d0831c31697a08b8349 SHA512 7ee51739ef15c70e28e81b8da70d9d85534c6f5d7ddf3c8530dad8b9be73c6b519c002b219cdc782e8080fbe4cc5c09a33e6eb88b1e7b4e6771b2f5d5cff9213 WHIRLPOOL b7f17f91f366e63ae3da002af245eb66ee682748df9d7bdb53fb14cd474b44593d0e0e4f73ed26f727ec71dd39e4f3385e6bac9670b094e38fb4486f79398c09
DIST mg-20160912.tar.gz 145176 SHA256 0b050456b78d767d13839486e01705de6acf407f27052c204505e166eb698176 SHA512 6a4c8fd28c71eec27191f664fe8dcc13a2d9b05bb43677579ddb84fec016cbb91bacea1998c3c15bfc87a455a8fc31abc3c633ce7d334e433ce0768ab8e9b737 WHIRLPOOL f20a62e81b33c606f34ef6e9d30dd7a6b9223728734b4c518370b6af330f454954748903fe3962f5c2b7cda5f6e5deb567be91588895c61a2b362a43c6b5b8d9
+DIST mg-20161005.tar.gz 140797 SHA256 b7fcb5136a6783ca24c8463ab0852fc1f26bdb2bb1c24759b2c51ccfc46c5e61 SHA512 3ec2e10d0cd427f9543818690fdd469b64e6eb5d061a221eb7b18566dfb1965ee68cea7c83e4e4ae9b2d6027a0803aacfc815390571ac550bc0b7004b46972ae WHIRLPOOL 4cfb72313b8181acc40b1cd06269f2162198302d2e088a7b04263af4b127071adbe9725aed2ecdf6cd3854a9e9c9df9173a75bf7a83cf2492a644448df9d297d
diff --git a/app-editors/mg/mg-20161005.ebuild b/app-editors/mg/mg-20161005.ebuild
new file mode 100644
index 000000000000..ff162ce36dfe
--- /dev/null
+++ b/app-editors/mg/mg-20161005.ebuild
@@ -0,0 +1,48 @@
+# 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() {
+ # 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}" \
+ PKG_CONFIG="$(tc-getPKG_CONFIG)"
+}
+
+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
+}