summaryrefslogtreecommitdiff
blob: 705ff9bbc5810be8efcb6247e7f2f00637308cea (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit eutils toolchain-funcs

DESCRIPTION="File corruption detection and repair program"
HOMEPAGE="http://sourceforge.net/projects/zidrav/"
SRC_URI="mirror://sourceforge/zidrav/${P}.tar.gz"

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

src_prepare() {
	sed -i \
		-e "s:g++:$(tc-getCXX):" \
		-e "s:-O2:${CXXFLAGS}:" \
		Makefile || die "sed Makefile failed"

	epatch "${FILESDIR}"/${PV}-gcc46.patch
}

src_install() {
	dobin zidrav
	doman zidrav.1
	dodoc README TODO Changelog zidrav.txt
}