mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
app-shells/pokemon-colorscripts: new package, add 9999
Signed-off-by: Patrick J Taylor <patrick.joseph.taylor@gmail.com>
This commit is contained in:
8
app-shells/pokemon-colorscripts/metadata.xml
Normal file
8
app-shells/pokemon-colorscripts/metadata.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>patrick.joseph.taylor@gmail.com</email>
|
||||
<name>Patrick J Taylor</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=(python3_{8,9,10})
|
||||
|
||||
inherit git-r3 python-single-r1
|
||||
|
||||
DESCRIPTION="Pokemon unicode sprites for your terminal!"
|
||||
|
||||
HOMEPAGE="https://gitlab.com/phoneybadger/pokemon-colorscripts"
|
||||
|
||||
EGIT_REPO_URI="https://gitlab.com/phoneybadger/pokemon-colorscripts.git"
|
||||
|
||||
LICENSE="MIT"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND=">=dev-lang/python-3.10.8_p1"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i \
|
||||
's#PROGRAM_DIR = os.path.dirname(PROGRAM)#PROGRAM_DIR = "/opt/pokemon-colorscripts/"#g' \
|
||||
pokemon-colorscripts.py || die "sed failed."
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt/pokemon-colorscripts
|
||||
doins -r "${S}/colorscripts"
|
||||
doins "${S}/pokemon.json"
|
||||
|
||||
python_scriptinto /opt/pokemon-colorscripts
|
||||
python_doscript "${S}/pokemon-colorscripts.py"
|
||||
|
||||
dosym -r /opt/pokemon-colorscripts/pokemon-colorscripts.py /usr/bin/pokemon-colorscripts
|
||||
}
|
||||
Reference in New Issue
Block a user