blob: a864013a6abc110b654c930d2c29510923a34551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/biew/biew-5.7.0.ebuild,v 1.1 2008/12/26 08:07:23 wormo Exp $
inherit eutils
DESCRIPTION="A portable viewer of binary files, hexadecimal and disassembler modes."
HOMEPAGE="http://biew.sourceforge.net"
SRC_URI="mirror://sourceforge/biew/${PN}-${PV//./}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gpm"
DEPEND="gpm? ( sys-libs/gpm )"
RDEPEND="gpm? (
x86? ( sys-libs/gpm )
amd64? ( app-emulation/emul-linux-x86-baselibs )
)"
# biew build only compiles 32-bit binary on amd64, and 32-bit libgpm is in
# app-emulation/emul-linux-x86-baselibs
S=${WORKDIR}/${PN}-${PV//./}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/biew-570-configure-gpm.patch
epatch "${FILESDIR}"/biew-570-makefile.patch
}
src_compile() {
local enable_gpm
if use gpm ; then
enable_gpm=yes
else
enable_gpm=no
fi
export _gpm=${enable_gpm}
econf
emake
for i in doc/*.ru doc/file_id.diz doc/biew_ru.txt doc/biew_en.txt
do
if iconv -f cp866 -t utf-8 "$i" > "$i.conv"
then
mv "$i.conv" "$i"
fi
done
}
src_install() {
make install DESTDIR="${D}"
doman doc/biew.1
dodoc doc/*.txt doc/*.en doc/*.ru doc/file_id.diz
}
|