1 |
commit: e874bf810b294fe37936329e7610d0db8c84f55c |
2 |
Author: Patrick J Taylor <patrick.joseph.taylor <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Nov 5 15:52:41 2022 +0000 |
4 |
Commit: Patrick Taylor <patrick.joseph.taylor <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Nov 5 15:53:08 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e874bf81 |
7 |
|
8 |
app-shells/pokemon-colorscripts: new package, add 9999 |
9 |
|
10 |
Signed-off-by: Patrick J Taylor <patrick.joseph.taylor <AT> gmail.com> |
11 |
|
12 |
app-shells/pokemon-colorscripts/metadata.xml | 8 +++++ |
13 |
.../pokemon-colorscripts-9999.ebuild | 40 ++++++++++++++++++++++ |
14 |
2 files changed, 48 insertions(+) |
15 |
|
16 |
diff --git a/app-shells/pokemon-colorscripts/metadata.xml b/app-shells/pokemon-colorscripts/metadata.xml |
17 |
new file mode 100644 |
18 |
index 000000000..50dcf2837 |
19 |
--- /dev/null |
20 |
+++ b/app-shells/pokemon-colorscripts/metadata.xml |
21 |
@@ -0,0 +1,8 @@ |
22 |
+<?xml version="1.0" encoding="UTF-8"?> |
23 |
+<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'> |
24 |
+<pkgmetadata> |
25 |
+ <maintainer type="person"> |
26 |
+ <email>patrick.joseph.taylor@×××××.com</email> |
27 |
+ <name>Patrick J Taylor</name> |
28 |
+ </maintainer> |
29 |
+</pkgmetadata> |
30 |
|
31 |
diff --git a/app-shells/pokemon-colorscripts/pokemon-colorscripts-9999.ebuild b/app-shells/pokemon-colorscripts/pokemon-colorscripts-9999.ebuild |
32 |
new file mode 100644 |
33 |
index 000000000..7fd4da23d |
34 |
--- /dev/null |
35 |
+++ b/app-shells/pokemon-colorscripts/pokemon-colorscripts-9999.ebuild |
36 |
@@ -0,0 +1,40 @@ |
37 |
+# Copyright 1999-2022 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+PYTHON_COMPAT=(python3_{8,9,10}) |
43 |
+ |
44 |
+inherit git-r3 python-single-r1 |
45 |
+ |
46 |
+DESCRIPTION="Pokemon unicode sprites for your terminal!" |
47 |
+ |
48 |
+HOMEPAGE="https://gitlab.com/phoneybadger/pokemon-colorscripts" |
49 |
+ |
50 |
+EGIT_REPO_URI="https://gitlab.com/phoneybadger/pokemon-colorscripts.git" |
51 |
+ |
52 |
+LICENSE="MIT" |
53 |
+ |
54 |
+SLOT="0" |
55 |
+ |
56 |
+KEYWORDS="~amd64" |
57 |
+ |
58 |
+RDEPEND=">=dev-lang/python-3.10.8_p1" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ sed -i \ |
63 |
+ 's#PROGRAM_DIR = os.path.dirname(PROGRAM)#PROGRAM_DIR = "/opt/pokemon-colorscripts/"#g' \ |
64 |
+ pokemon-colorscripts.py || die "sed failed." |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ insinto /opt/pokemon-colorscripts |
69 |
+ doins -r "${S}/colorscripts" |
70 |
+ doins "${S}/pokemon.json" |
71 |
+ |
72 |
+ python_scriptinto /opt/pokemon-colorscripts |
73 |
+ python_doscript "${S}/pokemon-colorscripts.py" |
74 |
+ |
75 |
+ dosym -r /opt/pokemon-colorscripts/pokemon-colorscripts.py /usr/bin/pokemon-colorscripts |
76 |
+} |