commit: ee60d35b659e14208e8fd83d6c4f7227ed0266c6 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sun Aug 17 13:00:28 2025 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sun Aug 17 13:01:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee60d35b
app-editors/mg: add 20240709 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> app-editors/mg/Manifest | 1 + app-editors/mg/mg-20240709.ebuild | 51 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/app-editors/mg/Manifest b/app-editors/mg/Manifest index ec6ffec6c1d8..4561f7354434 100644 --- a/app-editors/mg/Manifest +++ b/app-editors/mg/Manifest @@ -1,2 +1,3 @@ DIST mg-20220614.tar.gz 157904 BLAKE2B 88141274b379c6117158f85d91d0d643709437f0292fe2f82569c33d85694b39f957e279e262839ef0ba2a7e81e8a9ad6512c621e68f42b0929805028898637a SHA512 bed455cda856e54fae28592ac0a520841d5d542880a7405dadf702d7407ac33ae7fb7b63880805a7e166e0e0a87c76b9fca1700c444f1b999a5af66732c69b65 DIST mg-20230501.tar.gz 158315 BLAKE2B b8f68d4cd80a1735ce171bf653281104f7c8b5510a45088a136955d6649e969285914d27d2ee5bd4400643507943576e3c42959949aebb81bc1bb2f99a8e660e SHA512 db7b9815a01dc9fb1ff92741748d24d558c329135e591c24450d0a3bc10e38a992ef346dd744854864538f330a018415df539d06543570a3566dbabc6c88a8fd +DIST mg-20240709.tar.gz 159302 BLAKE2B 82a0dae47f0e43751959ebac81af9e4bf60aaef728e9bc07dd1bed03bfd94aa69e0eabd693e5a9b6c8c59bba4956b6c78a2597b5679d82391621c23c08c18b03 SHA512 1715f3378059c995cffd9b7e6f8d237cdbae43e67516542c9ef3a5d30c7d0b78183bce1f21db6570877261c2804258f664199b4a46febbf2c10ec25e08833926 diff --git a/app-editors/mg/mg-20240709.ebuild b/app-editors/mg/mg-20240709.ebuild new file mode 100644 index 000000000000..1b511c7f272d --- /dev/null +++ b/app-editors/mg/mg-20240709.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="MicroGnuEmacs, a port from the BSDs" +HOMEPAGE="https://github.com/hboetes/mg" +SRC_URI="https://github.com/hboetes/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="livecd" + +RDEPEND=" + sys-libs/ncurses:0= + >=dev-libs/libbsd-0.7.0" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-20230501-type-mismatch.patch" #940566 +) + +src_prepare() { + default + # 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}" \ + 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 +}
