# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy ) DISTUTILS_OPTIONAL="1" DISTUTILS_IN_SOURCE_BUILD="1" inherit distutils-r1 multilib-minimal DESCRIPTION="Ancient Format Decompressor for retro platform data" HOMEPAGE="https://github.com/temisu/ancient_format_decompressor" SLOT="0/$(ver_cut 1)" RDEPEND="python? ( ${PYTHON_DEPS} ) dev-libs/libbsd sys-devel/clang " DEPEND="${RDEPEND}" IUSE="python clang libbsd test extras" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) libbsd clang" LICENSE="BSD-2" DOCS=( README.md LICENSE ) if [[ ${PV} == "9999" ]] ; then SRC_URI="" EGIT_REPO_URI="https://github.com/temisu/${PN}.git" inherit git-r3 else KEYWORDS="alpha amd64 ~arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x64-solaris" SRC_URI="https://github.com/temisu/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" fi src_prepare() { default } src_compile() { emake || die "emake failed" if use extras; then cd extra emake || die "emake failed" cd .. fi } src_install() { dobin ancient if use extras; then cd extra dobin bruteRNC1 cd .. fi dodoc README.md LICENSE }