summaryrefslogtreecommitdiff
blob: 74f4142aa790a392dba4d8d08e2a8571f72f90ac (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/dhex/dhex-0.65.ebuild,v 1.3 2011/07/13 19:46:29 maekke Exp $

EAPI="2"

inherit eutils toolchain-funcs

MY_P=${PN}_${PV}

DESCRIPTION="ncurses-based hex-editor with diff mode"
HOMEPAGE="http://www.dettus.net/dhex/"
SRC_URI="http://www.dettus.net/${PN}/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

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

S=${WORKDIR}/${MY_P}

src_prepare() {
	epatch "${FILESDIR}/${PN}-0.63-Makefile.patch"
}

src_compile() {
	emake CC=$(tc-getCC) || die
}

src_install() {
	dobin dhex || die
	dodoc README.txt || die
	doman dhex.1 dhex_markers.5 dhex_searchlog.5 dhexrc.5 || die
}