From 253643f4e881c56272abacbb148586b3791e140f Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Tue, 23 Mar 2021 10:00:28 +0100 Subject: app-editors/mg: Version bump to 20210314 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Ulrich Müller --- app-editors/mg/Manifest | 1 + app-editors/mg/mg-20210314.ebuild | 46 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 app-editors/mg/mg-20210314.ebuild diff --git a/app-editors/mg/Manifest b/app-editors/mg/Manifest index 1466de3577f2..f71e267d7aa6 100644 --- a/app-editors/mg/Manifest +++ b/app-editors/mg/Manifest @@ -1,2 +1,3 @@ DIST mg-20200215.tar.gz 152254 BLAKE2B 89e47aaa94fd95b9409a53b09c9017e26d3f1cc73ce616e1c29ed22fbaed42cb78e7c9fbcd2424d98f86725fb00cee5160be4fe40abc97a927201557b684f800 SHA512 c6cda5544210bc3d3fa3cbb8494e60949e10ed3716d96b76d0c9e7f5671c7a85f6e7e7a860cfd05466f1bf52112053c722441ff338210c0ada89f10515ac170a DIST mg-20200723.tar.gz 152271 BLAKE2B 5fcbe2699da60c68a0c464bb337741d7797e9da3e2ab148a821aed46f661e5f5efbe7ceb14b153dcdd51185d22d0a2b2c7ad3525fc531192ecc0c0697e483b77 SHA512 8e481cf4981b93dba95b3b318f44dda15e580962216d452ce2fddcd19b86e4686673ba84d092bfaa540533b227428bd3bc9e6becda69be881d930937b0ea7add +DIST mg-20210314.tar.gz 152749 BLAKE2B eec9740db1a543025450746913c1b07f0646f370906665122c7f5dd1ecc46b5cab102bd29aa51afb13972f4f17118ea20c33bb619e8dc4bc8982f8423ed189d6 SHA512 816b1bf8aec97dd790b0d5bf8836d46cb87f60d0bda94c2aecce4f8a6b8599ab2e90805fa6b129c9e40b54b340e33a47fec97c60e1b59b7706aa357d58b0e3f6 diff --git a/app-editors/mg/mg-20210314.ebuild b/app-editors/mg/mg-20210314.ebuild new file mode 100644 index 000000000000..20816904f732 --- /dev/null +++ b/app-editors/mg/mg-20210314.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="MicroGnuEmacs, a port from the BSDs" +HOMEPAGE="https://homepage.boetes.org/software/mg/" +SRC_URI="https://github.com/hboetes/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" +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 +} -- cgit v1.2.3-65-gdbad