# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit eutils git-r3 DESCRIPTION="Program to get VUK Keys from DVDFab" HOMEPAGE="https://github.com/m4tthi4s/${PN}" EGIT_REPO_URI="https://github.com/m4tthi4s/vukextract.git" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="static_libs" DEPEND="dev-libs/libgcrypt" RDEPEND="${DEPEND}" DOCS="README.md" src_prepare() { default sed -i -e "s:CFLAGS = -Wall -Werror:CFLAGS = ${CFLAGS}:" Makefile } src_compile() { if use static_libs; then emake static else emake ${PN} fi } src_install() { if use static_libs; then newbin static ${PN} else dobin ${PN} fi dodoc ${DOCS} }