bvi-1.4.0_alpha.ebuild 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit multilib eutils versionator
  5. MY_P=$(replace_version_separator 4 '' ${P})
  6. DESCRIPTION="display-oriented editor for binary files, based on the vi texteditor"
  7. HOMEPAGE="http://bvi.sourceforge.net/"
  8. SRC_URI="mirror://sourceforge/bvi/$(replace_version_separator 4 '' ${P}).src.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. IUSE=""
  12. KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
  13. DEPEND="sys-libs/ncurses"
  14. RDEPEND="${DEPEND}"
  15. S="${WORKDIR}/$MY_P"
  16. src_prepare() {
  17. sed -i -e 's:(INSTALL_PROGRAM) -s:(INSTALL_PROGRAM):g' \
  18. Makefile.in || die "sed failed in Makefile.in"
  19. epatch_user
  20. }
  21. src_configure() {
  22. econf --with-ncurses="${EPREFIX}"/usr
  23. sed -i -e 's:ncurses/term.h:term.h:g' bmore.h || die "sed failed in bmore.h"
  24. }
  25. src_install() {
  26. emake DESTDIR="${D}" install || die "make install failed"
  27. rm -rf "${D}"/usr/$(get_libdir)/bmore.help
  28. dodoc README CHANGES CREDITS bmore.help
  29. }