games-misc/lolcat-jaseg: allow parllel install; fix install phase
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
parent
2b0ffd5d17
commit
a358be5b2a
@ -1,36 +1,31 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
MY_PN=lolcat
|
MY_PN="lolcat"
|
||||||
MY_P="${MY_PN}-${PV}"
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
DESCRIPTION="High-performance implementation of lolcat"
|
DESCRIPTION="High-performance implementation of lolcat"
|
||||||
HOMEPAGE="https://github.com/jaseg/lolcat"
|
HOMEPAGE="https://github.com/jaseg/lolcat"
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
if [[ "${PV}" == *9999* ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/jaseg/${MY_PN}.git"
|
EGIT_REPO_URI="https://github.com/jaseg/${MY_PN}.git"
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/jaseg/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
SRC_URI="https://github.com/jaseg/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
LICENSE="WTFPL-2"
|
LICENSE="WTFPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
!games-misc/lolcat
|
|
||||||
"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
insinto "/usr/bin"
|
einstalldocs
|
||||||
doins "${MY_PN}"
|
|
||||||
fperms +x "/usr/bin/${MY_PN}"
|
exeinto "/usr/bin"
|
||||||
|
newexe "${MY_PN}" "${PN}"
|
||||||
|
doexe "censor"
|
||||||
}
|
}
|
||||||
|
@ -1,36 +1,31 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
MY_PN=lolcat
|
MY_PN="lolcat"
|
||||||
MY_P="${MY_PN}-${PV}"
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
DESCRIPTION="High-performance implementation of lolcat"
|
DESCRIPTION="High-performance implementation of lolcat"
|
||||||
HOMEPAGE="https://github.com/jaseg/lolcat"
|
HOMEPAGE="https://github.com/jaseg/lolcat"
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
if [[ "${PV}" == *9999* ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/jaseg/${MY_PN}.git"
|
EGIT_REPO_URI="https://github.com/jaseg/${MY_PN}.git"
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/jaseg/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
SRC_URI="https://github.com/jaseg/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
LICENSE="WTFPL-2"
|
LICENSE="WTFPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
!games-misc/lolcat
|
|
||||||
"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
insinto "/usr/bin"
|
einstalldocs
|
||||||
doins "${MY_PN}"
|
|
||||||
fperms +x "/usr/bin/${MY_PN}"
|
exeinto "/usr/bin"
|
||||||
|
newexe "${MY_PN}" "${PN}"
|
||||||
|
doexe "censor"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<upstream>
|
<maintainer type="person">
|
||||||
<remote-id type="gitlab">jaseg/lolcat</remote-id>
|
<email>xgqt@protonmail.com</email>
|
||||||
</upstream>
|
<name>Maciej Barć</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="gitlab">jaseg/lolcat</remote-id>
|
||||||
|
</upstream>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
Loading…
Reference in New Issue
Block a user