# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit versionator toolchain-funcs

MY_PV=$(replace_all_version_separators '_')

DESCRIPTION="Searches for a given string in a XOR, ROL or ROT encoded binary file"
HOMEPAGE="http://blog.didierstevens.com/programs/xorsearch"
SRC_URI="http://www.didierstevens.com/files/software/${PN}_V${MY_PV}.zip"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

src_compile() {
	$(tc-getCC ) ${CFLAGS} -o ${PN} ${PN}.c \
		|| die "Compile failed!"
}

src_install() {
	dobin XORSearch || die "failed to install XORSearch binary"
}