1 |
commit: df39492b535fa7af6b84eddbd71a65c6fefa60bc |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 12 13:47:16 2021 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 12 13:54:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df39492b |
7 |
|
8 |
net-im/poezio: install in correct paths, use xdg and optfeature eclass |
9 |
|
10 |
Also fixes test dependencies and HTML documentation (for the live |
11 |
ebuild for now). |
12 |
|
13 |
Closes: https://bugs.gentoo.org/801877 |
14 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
15 |
|
16 |
...all-man-pages-and-files-in-usr-share-poez.patch | 31 ++++++++++++++++ |
17 |
...{poezio-9999.ebuild => poezio-0.13.1-r2.ebuild} | 42 +++++++++++++++------- |
18 |
net-im/poezio/poezio-9999.ebuild | 40 +++++++++++++++------ |
19 |
3 files changed, 90 insertions(+), 23 deletions(-) |
20 |
|
21 |
diff --git a/net-im/poezio/files/Do-not-install-man-pages-and-files-in-usr-share-poez.patch b/net-im/poezio/files/Do-not-install-man-pages-and-files-in-usr-share-poez.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..9506cdb1490 |
24 |
--- /dev/null |
25 |
+++ b/net-im/poezio/files/Do-not-install-man-pages-and-files-in-usr-share-poez.patch |
26 |
@@ -0,0 +1,31 @@ |
27 |
+From 343c1e9be4cbf76c0ae437143b4000e36a1488ca Mon Sep 17 00:00:00 2001 |
28 |
+From: Florian Schmaus <flo@×××××××××.eu> |
29 |
+Date: Mon, 12 Jul 2021 15:08:30 +0200 |
30 |
+Subject: [PATCH] Do not install man pages and files in /usr/share/poezio |
31 |
+ |
32 |
+Signed-off-by: Florian Schmaus <flo@×××××××××.eu> |
33 |
+--- |
34 |
+ setup.py | 4 ---- |
35 |
+ 1 file changed, 4 deletions(-) |
36 |
+ |
37 |
+diff --git a/setup.py b/setup.py |
38 |
+index d1dde4d2f02f..bee8e4834b81 100755 |
39 |
+--- a/setup.py |
40 |
++++ b/setup.py |
41 |
+@@ -156,13 +156,9 @@ setup( |
42 |
+ scripts=['scripts/poezio_logs'], |
43 |
+ entry_points={'console_scripts': ['poezio = poezio.__main__:run']}, |
44 |
+ data_files=([ |
45 |
+- ('share/man/man1/', ['data/poezio.1', 'data/poezio_logs.1']), |
46 |
+- ('share/poezio/', ['README.rst', 'COPYING', 'CHANGELOG']), |
47 |
+ ('share/applications/', ['data/io.poez.Poezio.desktop']), |
48 |
+ ('share/metainfo/', ['data/io.poez.Poezio.appdata.xml']) |
49 |
+ ] |
50 |
+- + find_doc('share/doc/poezio/source', 'source') |
51 |
+- + find_doc('share/doc/poezio/html', 'build/html') |
52 |
+ + sphinx_files_found |
53 |
+ ), |
54 |
+ install_requires=['slixmpp>=1.6.0', 'aiodns', 'pyasn1_modules', 'pyasn1', 'typing_extensions', 'setuptools'], |
55 |
+-- |
56 |
+2.31.1 |
57 |
+ |
58 |
|
59 |
diff --git a/net-im/poezio/poezio-9999.ebuild b/net-im/poezio/poezio-0.13.1-r2.ebuild |
60 |
similarity index 55% |
61 |
copy from net-im/poezio/poezio-9999.ebuild |
62 |
copy to net-im/poezio/poezio-0.13.1-r2.ebuild |
63 |
index 0ca4b6cbda4..0a1213f58b0 100644 |
64 |
--- a/net-im/poezio/poezio-9999.ebuild |
65 |
+++ b/net-im/poezio/poezio-0.13.1-r2.ebuild |
66 |
@@ -4,9 +4,9 @@ |
67 |
EAPI=7 |
68 |
|
69 |
DISTUTILS_USE_SETUPTOOLS=rdepend |
70 |
-PYTHON_COMPAT=( python3_{7..9} ) |
71 |
+PYTHON_COMPAT=( python3_{7..10} ) |
72 |
|
73 |
-inherit distutils-r1 readme.gentoo-r1 |
74 |
+inherit distutils-r1 optfeature xdg |
75 |
|
76 |
DESCRIPTION="Console XMPP client that looks like most famous IRC clients" |
77 |
HOMEPAGE="https://poez.io/" |
78 |
@@ -16,25 +16,27 @@ SLOT="0" |
79 |
if [[ "${PV}" == "9999" ]]; then |
80 |
EGIT_REPO_URI="https://lab.louiz.org/${PN}/${PN}.git" |
81 |
inherit git-r3 |
82 |
+ |
83 |
+ # We build the html documentation using sphinx. |
84 |
+ BDEPEND="dev-python/sphinx" |
85 |
else |
86 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
87 |
- KEYWORDS="~amd64" |
88 |
+ KEYWORDS="amd64" |
89 |
fi |
90 |
|
91 |
RDEPEND=" |
92 |
dev-python/aiodns[${PYTHON_USEDEP}] |
93 |
dev-python/pyasn1-modules[${PYTHON_USEDEP}] |
94 |
dev-python/pyasn1[${PYTHON_USEDEP}] |
95 |
- >=dev-python/slixmpp-1.5.2[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/slixmpp-1.5.0[${PYTHON_USEDEP}] |
97 |
" |
98 |
+DEPEND="test? ( ${RDEPEND} )" |
99 |
|
100 |
-distutils_enable_tests pytest |
101 |
+PATCHES=( |
102 |
+ "${FILESDIR}/Do-not-install-man-pages-and-files-in-usr-share-poez.patch" |
103 |
+) |
104 |
|
105 |
-DOC_CONTENTS=" |
106 |
-Install these optional runtime dependencies for additional features. |
107 |
-* dev-python/pyinotify for screen autoaway plugin support. |
108 |
-" |
109 |
-DISABLE_AUTOFORMATTING=true |
110 |
+distutils_enable_tests pytest |
111 |
|
112 |
src_prepare() { |
113 |
default |
114 |
@@ -42,11 +44,27 @@ src_prepare() { |
115 |
rm plugins/mpd_client.py || die |
116 |
} |
117 |
|
118 |
+src_compile() { |
119 |
+ distutils-r1_src_compile |
120 |
+ |
121 |
+ if [[ -n "${EGIT_REPO_URI}" ]]; then |
122 |
+ emake -C doc html |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
src_install() { |
127 |
distutils-r1_src_install |
128 |
- readme.gentoo_create_doc |
129 |
+ |
130 |
+ doman data/poezio.1 data/poezio_logs.1 |
131 |
+ |
132 |
+ if [[ -n "${EGIT_REPO_URI}" ]]; then |
133 |
+ docinto html |
134 |
+ dodoc -r doc/build/html/* |
135 |
+ fi |
136 |
} |
137 |
|
138 |
pkg_postinst() { |
139 |
- readme.gentoo_print_elog |
140 |
+ xdg_pkg_postinst |
141 |
+ |
142 |
+ optfeature "screen autoaway support" dev-python/pyinotify |
143 |
} |
144 |
|
145 |
diff --git a/net-im/poezio/poezio-9999.ebuild b/net-im/poezio/poezio-9999.ebuild |
146 |
index 0ca4b6cbda4..cea4492ef2c 100644 |
147 |
--- a/net-im/poezio/poezio-9999.ebuild |
148 |
+++ b/net-im/poezio/poezio-9999.ebuild |
149 |
@@ -4,9 +4,9 @@ |
150 |
EAPI=7 |
151 |
|
152 |
DISTUTILS_USE_SETUPTOOLS=rdepend |
153 |
-PYTHON_COMPAT=( python3_{7..9} ) |
154 |
+PYTHON_COMPAT=( python3_{7..10} ) |
155 |
|
156 |
-inherit distutils-r1 readme.gentoo-r1 |
157 |
+inherit distutils-r1 optfeature xdg |
158 |
|
159 |
DESCRIPTION="Console XMPP client that looks like most famous IRC clients" |
160 |
HOMEPAGE="https://poez.io/" |
161 |
@@ -16,6 +16,9 @@ SLOT="0" |
162 |
if [[ "${PV}" == "9999" ]]; then |
163 |
EGIT_REPO_URI="https://lab.louiz.org/${PN}/${PN}.git" |
164 |
inherit git-r3 |
165 |
+ |
166 |
+ # We build the html documentation using sphinx. |
167 |
+ BDEPEND="dev-python/sphinx" |
168 |
else |
169 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
170 |
KEYWORDS="~amd64" |
171 |
@@ -25,16 +28,15 @@ RDEPEND=" |
172 |
dev-python/aiodns[${PYTHON_USEDEP}] |
173 |
dev-python/pyasn1-modules[${PYTHON_USEDEP}] |
174 |
dev-python/pyasn1[${PYTHON_USEDEP}] |
175 |
- >=dev-python/slixmpp-1.5.2[${PYTHON_USEDEP}] |
176 |
+ >=dev-python/slixmpp-1.7.1[${PYTHON_USEDEP}] |
177 |
" |
178 |
+DEPEND="test? ( ${RDEPEND} )" |
179 |
|
180 |
-distutils_enable_tests pytest |
181 |
+PATCHES=( |
182 |
+ "${FILESDIR}/Do-not-install-man-pages-and-files-in-usr-share-poez.patch" |
183 |
+) |
184 |
|
185 |
-DOC_CONTENTS=" |
186 |
-Install these optional runtime dependencies for additional features. |
187 |
-* dev-python/pyinotify for screen autoaway plugin support. |
188 |
-" |
189 |
-DISABLE_AUTOFORMATTING=true |
190 |
+distutils_enable_tests pytest |
191 |
|
192 |
src_prepare() { |
193 |
default |
194 |
@@ -42,11 +44,27 @@ src_prepare() { |
195 |
rm plugins/mpd_client.py || die |
196 |
} |
197 |
|
198 |
+src_compile() { |
199 |
+ distutils-r1_src_compile |
200 |
+ |
201 |
+ if [[ -n "${EGIT_REPO_URI}" ]]; then |
202 |
+ emake -C doc html |
203 |
+ fi |
204 |
+} |
205 |
+ |
206 |
src_install() { |
207 |
distutils-r1_src_install |
208 |
- readme.gentoo_create_doc |
209 |
+ |
210 |
+ doman data/poezio.1 data/poezio_logs.1 |
211 |
+ |
212 |
+ if [[ -n "${EGIT_REPO_URI}" ]]; then |
213 |
+ docinto html |
214 |
+ dodoc -r doc/build/html/* |
215 |
+ fi |
216 |
} |
217 |
|
218 |
pkg_postinst() { |
219 |
- readme.gentoo_print_elog |
220 |
+ xdg_pkg_postinst |
221 |
+ |
222 |
+ optfeature "screen autoaway support" dev-python/pyinotify |
223 |
} |