1 |
commit: da2e517a33a7b367bf5fee366a78163d24c54b5d |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sun Feb 20 19:00:07 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sun Feb 20 19:01:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=da2e517a |
7 |
|
8 |
net-misc/giara: initial import |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
net-misc/giara/giara-9999.ebuild | 75 ++++++++++++++++++++++++++++++++++++++++ |
13 |
net-misc/giara/metadata.xml | 15 ++++++++ |
14 |
2 files changed, 90 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/giara/giara-9999.ebuild b/net-misc/giara/giara-9999.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..0604cd182 |
19 |
--- /dev/null |
20 |
+++ b/net-misc/giara/giara-9999.ebuild |
21 |
@@ -0,0 +1,75 @@ |
22 |
+# Copyright 2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{9..10} ) |
28 |
+inherit gnome2-utils meson python-single-r1 xdg |
29 |
+ |
30 |
+DESCRIPTION="An app for Reddit" |
31 |
+HOMEPAGE="https://giara.gabmus.org https://gitlab.gnome.org/World/giara" |
32 |
+ |
33 |
+if [[ ${PV} == 9999 ]]; then |
34 |
+ inherit git-r3 |
35 |
+ EGIT_REPO_URI="https://gitlab.gnome.org/World/${PN}.git" |
36 |
+else |
37 |
+ SRC_URI="https://gitlab.gnome.org/World/${PN}/-/archive/${PV}/${P}.tar.gz" |
38 |
+ KEYWORDS="~amd64" |
39 |
+fi |
40 |
+ |
41 |
+LICENSE="GPL-3+" |
42 |
+SLOT="0" |
43 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ ${PYTHON_DEPS} |
47 |
+ dev-libs/glib:2 |
48 |
+ dev-libs/gobject-introspection[${PYTHON_SINGLE_USEDEP}] |
49 |
+ gui-libs/gtk:4[introspection(+)] |
50 |
+ gui-libs/gtksourceview:5[introspection(+)] |
51 |
+ gui-libs/libadwaita:1[introspection(+)] |
52 |
+ $(python_gen_cond_dep ' |
53 |
+ dev-python/beautifulsoup4[${PYTHON_USEDEP}] |
54 |
+ dev-python/mistune[${PYTHON_USEDEP}] |
55 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
56 |
+ dev-python/praw[${PYTHON_USEDEP}] |
57 |
+ dev-python/requests[${PYTHON_USEDEP}] |
58 |
+ ') |
59 |
+" |
60 |
+DEPEND="${RDEPEND}" |
61 |
+BDEPEND=" |
62 |
+ dev-util/blueprint-compiler |
63 |
+ sys-devel/gettext |
64 |
+" |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ |
69 |
+ # fix broken shebang |
70 |
+ sed "s|py_installation.full_path()|'${PYTHON}'|" -i bin/meson.build || die |
71 |
+} |
72 |
+ |
73 |
+# skip AppStream test |
74 |
+src_test() { |
75 |
+: |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ meson_src_install |
80 |
+ python_optimize |
81 |
+} |
82 |
+ |
83 |
+pkg_preinst() { |
84 |
+ xdg_pkg_preinst |
85 |
+ gnome2_schemas_savelist |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ xdg_pkg_postinst |
90 |
+ gnome2_schemas_update |
91 |
+} |
92 |
+ |
93 |
+pkg_postrm() { |
94 |
+ xdg_pkg_postrm |
95 |
+ gnome2_schemas_update |
96 |
+} |
97 |
|
98 |
diff --git a/net-misc/giara/metadata.xml b/net-misc/giara/metadata.xml |
99 |
new file mode 100644 |
100 |
index 000000000..1bce80172 |
101 |
--- /dev/null |
102 |
+++ b/net-misc/giara/metadata.xml |
103 |
@@ -0,0 +1,15 @@ |
104 |
+<?xml version="1.0" encoding="UTF-8"?> |
105 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
106 |
+<pkgmetadata> |
107 |
+ <maintainer type="person"> |
108 |
+ <email>cyber+gentoo@×××××.in</email> |
109 |
+ <name>Anna</name> |
110 |
+ </maintainer> |
111 |
+ <upstream> |
112 |
+ <maintainer> |
113 |
+ <name>Gabriele Musco</name> |
114 |
+ <email>gabmus@×××××××.org</email> |
115 |
+ </maintainer> |
116 |
+ <bugs-to>https://gitlab.gnome.org/World/giara/-/issues</bugs-to> |
117 |
+ </upstream> |
118 |
+</pkgmetadata> |