Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/mg/
Date: Sun, 03 Jun 2018 12:51:15
Message-Id: 1528030263.600032df2bbad6b36e3fb41966fbd6a84dd809cc.ulm@gentoo
1 commit: 600032df2bbad6b36e3fb41966fbd6a84dd809cc
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 3 12:48:43 2018 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 3 12:51:03 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=600032df
7
8 app-editors/mg: Version bump.
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 app-editors/mg/Manifest | 1 +
13 app-editors/mg/mg-20180408.ebuild | 46 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/app-editors/mg/Manifest b/app-editors/mg/Manifest
17 index 395ef497fcc..a25162831d4 100644
18 --- a/app-editors/mg/Manifest
19 +++ b/app-editors/mg/Manifest
20 @@ -1,2 +1,3 @@
21 DIST mg-20170828.tar.gz 141028 BLAKE2B a0243ee05f86161f1a9448ec92c8cf14362a60dd3643ad49f79fdd6c2ffe56f51415321eb6f3d7b78c1ca6eab9cb91380cdb63f699359080011d6801feaedd04 SHA512 1ea16b1dd5e9e08abf9fcf0889130b4f39d36872bb64df85470a9ced1db87c0eecb18cc6e8c3c5a04f9049d58ef4492d5a88cf3502ec3351abccb7bddfb90c14
22 DIST mg-20171014.tar.gz 141045 BLAKE2B a5b3bda6ff3b6416093069b471762687c2279737aa05b297ccd3077aff195cf52831566768613a81dcc977a27ac5ffd6e8a1874aa1010b6d90f4c678b6825cee SHA512 d55818308421aa523fb30b6e4725bb122f37637a822fabafeba9f9da3b97fd7f6af6431fce3015c969d0e656a48e89ed49b790deefc69fbdbb7e257f8a1aeb56
23 +DIST mg-20180408.tar.gz 141988 BLAKE2B db7da46fb0160acf8695f05234ed0c8e9a45e4239dc3abd433ddfb8b66e2b1aa550ffc4b409486a8990881d791ed73269a8ab78f6846cd4f0bee67761c11d281 SHA512 25fceb18fcbe63010e7a2e107aa5c30356938be2e04ff48869a12b5018dbb83bcf4dc70b03674713516616037247952a51454a28ca418cdc7b020d1f415f8701
24
25 diff --git a/app-editors/mg/mg-20180408.ebuild b/app-editors/mg/mg-20180408.ebuild
26 new file mode 100644
27 index 00000000000..963154791f8
28 --- /dev/null
29 +++ b/app-editors/mg/mg-20180408.ebuild
30 @@ -0,0 +1,46 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="MicroGnuEmacs, a port from the BSDs"
39 +HOMEPAGE="https://homepage.boetes.org/software/mg/"
40 +SRC_URI="https://github.com/hboetes/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="public-domain"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
45 +IUSE="livecd"
46 +
47 +RDEPEND="sys-libs/ncurses:0
48 + !elibc_FreeBSD? ( >=dev-libs/libbsd-0.7.0 )"
49 +DEPEND="${RDEPEND}
50 + virtual/pkgconfig"
51 +
52 +src_prepare() {
53 + # fix path to tutorial in man page
54 + sed -i -e "s:doc/mg/:doc/${PF}/:" mg.1 || die
55 + eapply_user
56 +}
57 +
58 +src_compile() {
59 + emake CC="$(tc-getCC)" \
60 + CFLAGS="${CFLAGS}" \
61 + PKG_CONFIG="$(tc-getPKG_CONFIG)"
62 +}
63 +
64 +src_install() {
65 + dobin mg
66 + doman mg.1
67 + dodoc README tutorial
68 + # don't compress the tutorial, otherwise mg cannot open it
69 + docompress -x /usr/share/doc/${PF}/tutorial
70 +}
71 +
72 +pkg_postinst() {
73 + if use livecd; then
74 + [[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs
75 + fi
76 +}