# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit git-r3 flag-o-matic autotools eutils DESCRIPTION="Utility to convert xmcd to cue files" HOMEPAGE="https://gitee.com/GoLibs/xmcd2cue" EGIT_REPO_URI="https://gitee.com/GoLibs/${PN}.git" if [[ ${PV} == 9999* ]] ; then SRC_URI="" else SRC_URI="https://gitee.com/GoLibs/${PN}/${P}.zip" fi LICENSE="MIT" SLOT="0" KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos" IUSE="go" REQUIRED_USE="go" RDEPEND=" go? ( sys-devel/gcc )" case "${PV}" in 9999) ;; *) REFS="refs/tags/${PV}" TAG="${PV}" ;; esac src_unpack() { git-r3_fetch ${EGIT_REPO_URI} ${REFS} ${TAG} git-r3_checkout ${EGIT_REPO_URI} ${WORKDIR}/${P} ${TAG} } src_prepare() { default } src_compile() { ./build.sh } src_install() { dodoc LICENSE.md README.md dobin xmcd2cue }