src_prepare-overlay/games-misc/lolcat-jaseg/lolcat-jaseg-9999.ebuild
XGQT 99938e9846
games-misc/lolcat-jaseg: move "if" under RDEPEND
Package-Manager: Portage-2.3.79, Repoman-2.3.16
2020-01-22 16:02:58 +01:00

39 lines
710 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN=lolcat
MY_P="${MY_PN}-${PV}"
DESCRIPTION="High-performance implementation of lolcat"
HOMEPAGE="https://github.com/jaseg/lolcat"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/jaseg/${MY_PN}.git"
KEYWORDS=""
else
SRC_URI="https://github.com/jaseg/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
KEYWORDS="~amd64"
fi
RESTRICT="mirror"
LICENSE="WTFPL-2"
SLOT="0"
IUSE=""
RDEPEND="
!games-misc/lolcat
"
if [[ ${PV} != *9999* ]]; then
S="${WORKDIR}/${MY_P}"
fi
src_install() {
insinto "/usr/bin"
doins "${MY_PN}"
fperms +x "/usr/bin/${MY_PN}"
}