You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-editors/bvi/bvi-1.3.2-r2.ebuild

48 lines
1.3 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/bvi/bvi-1.3.2-r2.ebuild,v 1.4 2013/12/14 19:53:07 johu Exp $
EAPI=3
AUTOTOOLS_AUTORECONF="1"
AUTOTOOLS_IN_SOURCE_BUILD="1"
inherit multilib eutils autotools-utils
DESCRIPTION="display-oriented editor for binary files, based on the vi texteditor"
HOMEPAGE="http://bvi.sourceforge.net/"
SRC_URI="mirror://sourceforge/bvi/${P}.src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
DEPEND="sys-libs/ncurses"
RDEPEND="${DEPEND}"
src_prepare() {
local PATCHES=(
"${FILESDIR}/${P}-fix-buffer-overflow.patch"
"${FILESDIR}/${P}-tinfo.patch"
)
sed -i -e 's:ncurses/term.h:term.h:g' bmore.h || die "sed failed in bmore.h"
sed -i -e 's:(INSTALL_PROGRAM) -s:(INSTALL_PROGRAM):g' \
Makefile.in || die "sed failed in Makefile.in"
autotools-utils_src_prepare
}
src_configure() {
local myeconfargs=(--with-ncurses="${EPREFIX}"/usr)
autotools-utils_src_configure
}
src_install() {
autotools-utils_src_install
rm -rf "${ED}"/usr/$(get_libdir)/bmore.help
dodoc README CHANGES CREDITS bmore.help
dohtml -r html/*
}