diff options
author | Michael Januszewski <spock@gentoo.org> | 2004-02-12 11:27:20 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2004-02-12 11:27:20 +0000 |
commit | ccac3307f9d5e3850a17e6713aef186b376d98a6 (patch) | |
tree | 601f2d48c4e108794e5f14671177176c85b7c81f /dev-util/biew/biew-5.5.0.ebuild | |
parent | GOTOFF during linking seems to fail to recognize where main() is because it i... (diff) | |
download | gentoo-2-ccac3307f9d5e3850a17e6713aef186b376d98a6.tar.gz gentoo-2-ccac3307f9d5e3850a17e6713aef186b376d98a6.tar.bz2 gentoo-2-ccac3307f9d5e3850a17e6713aef186b376d98a6.zip |
Initial commit.
Diffstat (limited to 'dev-util/biew/biew-5.5.0.ebuild')
-rw-r--r-- | dev-util/biew/biew-5.5.0.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-util/biew/biew-5.5.0.ebuild b/dev-util/biew/biew-5.5.0.ebuild new file mode 100644 index 000000000000..96e792285598 --- /dev/null +++ b/dev-util/biew/biew-5.5.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/biew/biew-5.5.0.ebuild,v 1.1 2004/02/12 11:27:20 spock Exp $ + +IUSE="slang ncurses" + +DESCRIPTION="A multiplatform portable viewer of binary files with built-in editor in binary, hexadecimal and disassembler modes." +HOMEPAGE="http://biew.sourceforge.net/" +SRC_URI="mirror://sourceforge/biew/${PN}-550.tar.bz2" + +SLOT="0" +KEYWORDS="~x86" +LICENSE="GPL-2" + +DEPEND="ncurses? ( >=sys-libs/ncurses-5.3 ) + slang? ( >=sys-libs/slang-1.4.9 )" +RDEPEND="${DEPEND}" +S="${WORKDIR}/${PN}-550" + +src_unpack() { + unpack ${A} + cd ${S} + + sed -i "s/USE_MOUSE=.*/USE_MOUSE=y/" makefile + sed -i 's:/usr/local:/usr:' biewlib/sysdep/generic/unix/os_dep.c + sed -i "s/CFLAGS += -O2 -fomit-frame-pointer -DNDEBUG=1/CFLAGS +=/" makefile.inc +# sed -i "s/TARGET_OS=.*/TARGET_OS=linux/" makefile +} + +src_compile() { + cd ${S} + + local scrnlib + + if [ `use ncurses` ] ; then + scrnlib="ncurses" + elif [ `use slang` ] ; then + scrnlib="slang" + else + scrnlib="vt100" + fi + + emake HOST_CFLAGS="${CFLAGS}" \ + TARGET_SCREEN_LIB=${scrnlib} || die +} + +src_install() { + dobin biew + dodoc doc/*.txt + + insinto /usr/lib/biew + doins bin_rc/biew.hlp + doins bin_rc/skn/standard.skn + + insinto /usr/lib/biew/skn + doins bin_rc/skn/* + + insinto /usr/lib/biew/xlt + doins bin_rc/xlt/* +} |