1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs
10 DESCRIPTION="File corruption detection and repair program"
11 HOMEPAGE="http://rdko.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/rdko/${MY_PN}-${PV}.tar.bz2"
16 KEYWORDS="~amd64 ~ppc ~x86"
19 RDEPEND="gtk? ( x11-libs/gtk+:2 )"
21 gtk? ( virtual/pkgconfig )"
28 -e 's:$(CC) $(LINKOBJ:$(CC) $(LDFLAGS) $(LINKOBJ:g' \
29 -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
30 -e "s:^\(CFLAGS = \).*$:\1${CFLAGS} -Wall:" \
31 Makefile || die "sed Makefile failed"
35 -e "s:^\(CFLAGSGUI = \).*$:\1${CFLAGS} -DUSEGUI -Wall \
36 `pkg-config gtk+-2.0 gthread-2.0 --cflags`:" \
37 Makefile || die "sed Makefile failed"
40 -e "s:^\(CFLAGSGUI = \).*$:\1${CFLAGS} -Wall:" \
41 Makefile || die "sed Makefile failed"
47 emake || die "emake failed"
49 emake rdko || die "emake rdko failed"
55 use gtk && dobin gredeko