# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
inherit eutils flag-o-matic

DESCRIPTION="Multicast file transfer tool"
HOMEPAGE="http://www.udpcast.linux.lu/"
SRC_URI="http://www.udpcast.linux.lu/download/${P}.tar.bz2"

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

DEPEND="dev-lang/perl"

src_prepare() {
	epatch \
		"${FILESDIR}"/${P}-fd_set.patch \
		"${FILESDIR}"/${P}-gentoo.patch
}

src_configure() {
	use hardened || append-cflags -DUSE_ASSEMBLER

	default
}

src_install() {
	default
	dodoc *.txt
}