diff options
author | Ulrich Müller <ulm@gentoo.org> | 2017-11-19 16:30:20 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2017-11-19 16:30:48 +0100 |
commit | ae9310e115eb232bd5014d45baf60ea948f3d440 (patch) | |
tree | 1049275dab8fa49809f28a2baf1ce7ada04e3aa6 /app-editors/mg/mg-20171014.ebuild | |
parent | media-gfx/exiv2: Security cleanup (diff) | |
download | gentoo-ae9310e115eb232bd5014d45baf60ea948f3d440.tar.gz gentoo-ae9310e115eb232bd5014d45baf60ea948f3d440.tar.bz2 gentoo-ae9310e115eb232bd5014d45baf60ea948f3d440.zip |
app-editors/mg: Version bump.
Package-Manager: Portage-2.3.14, Repoman-2.3.6
Diffstat (limited to 'app-editors/mg/mg-20171014.ebuild')
-rw-r--r-- | app-editors/mg/mg-20171014.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app-editors/mg/mg-20171014.ebuild b/app-editors/mg/mg-20171014.ebuild new file mode 100644 index 000000000000..b1e3a3d101fc --- /dev/null +++ b/app-editors/mg/mg-20171014.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |