# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Tool to generate command line parsers for C++ (aka Gengetopt)"
HOMEPAGE="https://github.com/gmarcais/yaggo"
SRC_URI="https://github.com/gmarcais/yaggo/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

src_prepare(){
	sed -e 's#/usr/local#/usr#g' -i Makefile || die
	default
}

src_install(){
	emake install DESTDIR="${ED}"
	# fix doc path
	mv "${ED}/usr/share/doc/${PN}" "${ED}/usr/share/doc/${PF}" || die
}