2021-01-18 13:25:14 +01:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-01-15 17:43:52 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2021-01-18 13:25:14 +01:00
|
|
|
MY_PN="lolcat"
|
2020-01-15 17:43:52 +01:00
|
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
|
|
|
|
DESCRIPTION="High-performance implementation of lolcat"
|
|
|
|
HOMEPAGE="https://github.com/jaseg/lolcat"
|
|
|
|
|
2021-01-18 13:25:14 +01:00
|
|
|
if [[ "${PV}" == *9999* ]]; then
|
2020-01-15 17:43:52 +01:00
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/jaseg/${MY_PN}.git"
|
|
|
|
else
|
|
|
|
SRC_URI="https://github.com/jaseg/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
|
|
|
KEYWORDS="~amd64"
|
2021-01-18 13:25:14 +01:00
|
|
|
S="${WORKDIR}/${MY_P}"
|
2020-01-15 17:43:52 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="WTFPL-2"
|
|
|
|
SLOT="0"
|
2024-09-09 15:10:22 +02:00
|
|
|
RESTRICT="mirror"
|
2020-01-15 17:43:52 +01:00
|
|
|
|
|
|
|
src_install() {
|
2021-01-18 13:25:14 +01:00
|
|
|
einstalldocs
|
|
|
|
|
|
|
|
exeinto "/usr/bin"
|
|
|
|
newexe "${MY_PN}" "${PN}"
|
|
|
|
doexe "censor"
|
2020-01-15 17:43:52 +01:00
|
|
|
}
|