commit:     e874bf810b294fe37936329e7610d0db8c84f55c
Author:     Patrick J Taylor <patrick.joseph.taylor <AT> gmail <DOT> com>
AuthorDate: Sat Nov  5 15:52:41 2022 +0000
Commit:     Patrick Taylor <patrick.joseph.taylor <AT> gmail <DOT> com>
CommitDate: Sat Nov  5 15:53:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e874bf81

app-shells/pokemon-colorscripts: new package, add 9999

Signed-off-by: Patrick J Taylor <patrick.joseph.taylor <AT> gmail.com>

 app-shells/pokemon-colorscripts/metadata.xml       |  8 +++++
 .../pokemon-colorscripts-9999.ebuild               | 40 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/app-shells/pokemon-colorscripts/metadata.xml 
b/app-shells/pokemon-colorscripts/metadata.xml
new file mode 100644
index 000000000..50dcf2837
--- /dev/null
+++ b/app-shells/pokemon-colorscripts/metadata.xml
@@ -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.tay...@gmail.com</email>
+               <name>Patrick J Taylor</name>
+       </maintainer>
+</pkgmetadata>

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 000000000..7fd4da23d
--- /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
+}

Reply via email to