# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 EGIT_REPO_URI="git://git.kernel.org/pub/scm/editors/uemacs/uemacs.git" EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}" inherit git-r3 toolchain-funcs DESCRIPTION="uEmacs/PK is an enhanced version of MicroEMACS" HOMEPAGE="http://git.kernel.org/?p=editors/uemacs/uemacs.git;a=summary ftp://ftp.cs.helsinki.fi/pub/Software/Local/uEmacs-PK" LICENSE="free-noncomm" SLOT="0" S="${WORKDIR}/${PN}" DEPEND="sys-libs/ncurses" RDEPEND="${DEPEND}" src_prepare() { sed -i -e "s:/usr/lib/:/usr/share/${PN}/:" epath.h || die } src_compile() { emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" } src_install() { dobin em insinto /usr/share/${PN} doins emacs.hlp newins emacs.rc .emacsrc dodoc README readme.39e emacs.ps UTF-8-demo.txt }