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

EAPI=5

inherit eutils flag-o-matic

MY_PR="${PR/r/rc}"

DESCRIPTION="Pascal To Doxygen Convertor"
HOMEPAGE="http://sourceforge.net/projects/pas2dox"
SRC_URI="http://downloads.sourceforge.net/project/${PN}/${PN}/${P}${MY_PR}/${P}${MY_PR}.tar.gz -> ${PF}.tar.gz"

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

RDEPEND="sys-devel/flex"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${PN}"

src_compile() {
	emake || die 'emake failed'
}

src_install() {
	dobin pas2dox ||die 'install failed'
}