summaryrefslogtreecommitdiff
blob: e22501d161fcd00f6c73cb5e92417e226f6ed90c (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/hexcompare/hexcompare-1.0.1.ebuild,v 1.1 2010/11/10 23:01:05 xmw Exp $

EAPI=3

inherit eutils toolchain-funcs versionator

DESCRIPTION="ncurses-based visual comparison of binary files"
HOMEPAGE="http://hexcompare.sourceforge.net/"
MY_P=${PN}-$(replace_all_version_separators '')
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="sys-libs/ncurses"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${MY_P}

src_prepare() {
	epatch "${FILESDIR}"/${P}.patch
}

src_compile() {
	$(tc-getCC) \
		${CFLAGS} $(/usr/bin/ncurses5-config --cflags) \
		-o ${PN} main.c gui.c \
		${LDFLAGS} $(/usr/bin/ncurses5-config --libs) || die
}

src_install() {
	dobin ${PN} || die
	dodoc README || die
}