levee-3.5a.ebuild 1007 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit toolchain-funcs eutils
  5. DESCRIPTION="Really tiny vi clone, for things like rescue disks"
  6. HOMEPAGE="http://www.pell.chi.il.us/~orc/Code/"
  7. SRC_URI="http://www.pell.chi.il.us/~orc/Code/levee/${P}.tar.gz"
  8. LICENSE="levee"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
  11. IUSE=""
  12. DEPEND="!app-text/lv
  13. sys-libs/ncurses"
  14. RDEPEND="${DEPEND}"
  15. src_prepare() {
  16. epatch "${FILESDIR}"/${PN}-3.4o-darwin.patch
  17. epatch "${FILESDIR}"/${P}-QA.patch
  18. epatch "${FILESDIR}"/${PN}-3.5-glibc210.patch
  19. }
  20. src_configure() {
  21. export AC_CPP_PROG=$(tc-getCPP)
  22. export AC_PATH=${PATH}
  23. export AC_LIBDIR="$($(tc-getPKG_CONFIG) --libs ncurses)"
  24. ./configure.sh --prefix="${PREFIX}"/usr || die "configure failed"
  25. }
  26. src_compile() {
  27. emake CFLAGS="${CFLAGS} -Wall -Wextra ${LDFLAGS}" CC=$(tc-getCC)
  28. }
  29. src_install() {
  30. emake PREFIX="${D}${EPREFIX}" install
  31. }