uemacs-pk-4.0.15_p20141208.ebuild 960 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="uEmacs/PK is an enhanced version of MicroEMACS"
  6. HOMEPAGE="https://git.kernel.org/?p=editors/uemacs/uemacs.git;a=summary
  7. ftp://ftp.cs.helsinki.fi/pub/Software/Local/uEmacs-PK"
  8. # snapshot from git repo
  9. SRC_URI="https://dev.gentoo.org/~ulm/distfiles/uemacs-${PV}.tar.xz"
  10. LICENSE="free-noncomm"
  11. SLOT="0"
  12. KEYWORDS="amd64 x86 ~x86-fbsd"
  13. RDEPEND="sys-libs/ncurses:0"
  14. DEPEND="${RDEPEND}
  15. virtual/pkgconfig"
  16. S="${WORKDIR}/uemacs"
  17. src_prepare() {
  18. epatch "${FILESDIR}"/${PN}-4.0.15_p20110825-gentoo.patch
  19. }
  20. src_compile() {
  21. emake V=1 \
  22. CC="$(tc-getCC)" \
  23. CFLAGS="${CFLAGS}" \
  24. LDFLAGS="${LDFLAGS}" \
  25. LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
  26. }
  27. src_install() {
  28. dobin em
  29. insinto /usr/share/${PN}
  30. doins emacs.hlp
  31. newins emacs.rc .emacsrc
  32. dodoc README readme.39e emacs.ps UTF-8-demo.txt
  33. }