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, 22 Aug 2021 19:45:23
Message-Id: 1629661495.6c6938ba1a5efc6dde0d3c1190f19c71ebcd3a84.ulm@gentoo
1 commit: 6c6938ba1a5efc6dde0d3c1190f19c71ebcd3a84
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 22 19:43:13 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 22 19:44:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c6938ba
7
8 app-editors/mg: Version bump to 20210609
9
10 Package-Manager: Portage-3.0.22, Repoman-3.0.3
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 app-editors/mg/Manifest | 1 +
14 app-editors/mg/mg-20210609.ebuild | 47 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 48 insertions(+)
16
17 diff --git a/app-editors/mg/Manifest b/app-editors/mg/Manifest
18 index b2a757c194c..e0d60eb81c4 100644
19 --- a/app-editors/mg/Manifest
20 +++ b/app-editors/mg/Manifest
21 @@ -1,2 +1,3 @@
22 DIST mg-20200723.tar.gz 152271 BLAKE2B 5fcbe2699da60c68a0c464bb337741d7797e9da3e2ab148a821aed46f661e5f5efbe7ceb14b153dcdd51185d22d0a2b2c7ad3525fc531192ecc0c0697e483b77 SHA512 8e481cf4981b93dba95b3b318f44dda15e580962216d452ce2fddcd19b86e4686673ba84d092bfaa540533b227428bd3bc9e6becda69be881d930937b0ea7add
23 DIST mg-20210314.tar.gz 152749 BLAKE2B eec9740db1a543025450746913c1b07f0646f370906665122c7f5dd1ecc46b5cab102bd29aa51afb13972f4f17118ea20c33bb619e8dc4bc8982f8423ed189d6 SHA512 816b1bf8aec97dd790b0d5bf8836d46cb87f60d0bda94c2aecce4f8a6b8599ab2e90805fa6b129c9e40b54b340e33a47fec97c60e1b59b7706aa357d58b0e3f6
24 +DIST mg-20210609.tar.gz 156850 BLAKE2B ed8061aa808a8570f24198fb32fa3d24d66decdd07dab871502456d734a8d7867f384122361294bda0155bc3fecea80983fd41c00a2ffe02d00e380bf94e2f43 SHA512 a17b470e5e192c1f62700c7b78b15c9403b25528a7d6603fda0b6e618196150329fe4889cedfc8dbf621053d45b78294ed5c2766604aaa4c3ddbaec545693043
25
26 diff --git a/app-editors/mg/mg-20210609.ebuild b/app-editors/mg/mg-20210609.ebuild
27 new file mode 100644
28 index 00000000000..c89934a8b50
29 --- /dev/null
30 +++ b/app-editors/mg/mg-20210609.ebuild
31 @@ -0,0 +1,47 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit toolchain-funcs
38 +
39 +DESCRIPTION="MicroGnuEmacs, a port from the BSDs"
40 +HOMEPAGE="https://homepage.boetes.org/software/mg/
41 + https://github.com/hboetes/mg"
42 +SRC_URI="https://github.com/hboetes/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="public-domain"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
47 +IUSE="livecd"
48 +
49 +RDEPEND="sys-libs/ncurses:0
50 + !elibc_FreeBSD? ( >=dev-libs/libbsd-0.7.0 )"
51 +DEPEND="${RDEPEND}"
52 +BDEPEND="virtual/pkgconfig"
53 +
54 +src_prepare() {
55 + # fix path to tutorial in man page
56 + sed -i -e "s:doc/mg/:doc/${PF}/:" mg.1 || die
57 + eapply_user
58 +}
59 +
60 +src_compile() {
61 + emake CC="$(tc-getCC)" \
62 + CFLAGS="${CFLAGS}" \
63 + PKG_CONFIG="$(tc-getPKG_CONFIG)"
64 +}
65 +
66 +src_install() {
67 + dobin mg
68 + doman mg.1
69 + dodoc README tutorial
70 + # don't compress the tutorial, otherwise mg cannot open it
71 + docompress -x /usr/share/doc/${PF}/tutorial
72 +}
73 +
74 +pkg_postinst() {
75 + if use livecd; then
76 + [[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs
77 + fi
78 +}