From e874bf810b294fe37936329e7610d0db8c84f55c Mon Sep 17 00:00:00 2001 From: Patrick J Taylor Date: Sat, 5 Nov 2022 15:52:41 +0000 Subject: [PATCH] app-shells/pokemon-colorscripts: new package, add 9999 Signed-off-by: Patrick J Taylor --- app-shells/pokemon-colorscripts/metadata.xml | 8 ++++ .../pokemon-colorscripts-9999.ebuild | 40 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 app-shells/pokemon-colorscripts/metadata.xml create mode 100644 app-shells/pokemon-colorscripts/pokemon-colorscripts-9999.ebuild diff --git a/app-shells/pokemon-colorscripts/metadata.xml b/app-shells/pokemon-colorscripts/metadata.xml new file mode 100644 index 0000000000..50dcf2837c --- /dev/null +++ b/app-shells/pokemon-colorscripts/metadata.xml @@ -0,0 +1,8 @@ + + + + + patrick.joseph.taylor@gmail.com + Patrick J Taylor + + diff --git a/app-shells/pokemon-colorscripts/pokemon-colorscripts-9999.ebuild b/app-shells/pokemon-colorscripts/pokemon-colorscripts-9999.ebuild new file mode 100644 index 0000000000..7fd4da23d6 --- /dev/null +++ b/app-shells/pokemon-colorscripts/pokemon-colorscripts-9999.ebuild @@ -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 +}