Gentoo Archives: gentoo-commits

From: "Aaron W. Swenson" <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/pgadmin4/, dev-db/pgadmin4/files/
Date: Fri, 25 Dec 2020 03:18:03
Message-Id: 1608866168.f997bdc5009d9b7b78b57ddf1494867268eaca13.titanofold@gentoo
1 commit: f997bdc5009d9b7b78b57ddf1494867268eaca13
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 25 03:16:08 2020 +0000
4 Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 25 03:16:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f997bdc5
7
8 dev-db/pgadmin4: Cleanup
9
10 Closes: https://bugs.gentoo.org/735014
11 Closes: https://bugs.gentoo.org/744151
12 Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>
13
14 dev-db/pgadmin4/Manifest | 3 -
15 .../pgadmin4/files/pgadmin4-4.17-python-3.8.patch | 12 --
16 dev-db/pgadmin4/pgadmin4-4.17-r1.ebuild | 120 -------------------
17 dev-db/pgadmin4/pgadmin4-4.25.ebuild | 124 --------------------
18 dev-db/pgadmin4/pgadmin4-4.28.ebuild | 130 ---------------------
19 5 files changed, 389 deletions(-)
20
21 diff --git a/dev-db/pgadmin4/Manifest b/dev-db/pgadmin4/Manifest
22 index 515fa48e511..8ff0d2d9f13 100644
23 --- a/dev-db/pgadmin4/Manifest
24 +++ b/dev-db/pgadmin4/Manifest
25 @@ -1,5 +1,2 @@
26 -DIST pgadmin4-4.17.tar.gz 28007097 BLAKE2B d296f2b9372c23067db899fa82e1b8e732837b01a6172dd2d70520f815aafde161715eea9d9d53e7507a6a715dbfdaabf001a10d143c1aa0505237b2b138e334 SHA512 f9e292ba7ff1e5edaa8738188eb01744d69d0eb134700feb0623806425c998e7f298f74cd498a09f2d9a073a9a349c82f7a3f617e1da3c8dd757cc982d941c9f
27 -DIST pgadmin4-4.25.tar.gz 33167393 BLAKE2B 5a40e45c53f79ea66c6f685d1605ddce7b1758540bf3a6863d4b092cc4dab5b00daff15832cd6feee28aa348c7a5376e25a93508fd348d8ffd4d29031e2b6c68 SHA512 a1944f9c65b8aa7ec5bd83ef75702293d869ae341ea73f81fb4358bfbc7f91a6981237eb9f1b20055c5f3fa182428afe19dc170963265789c34d73f2e240c268
28 DIST pgadmin4-4.26.tar.gz 33525278 BLAKE2B 2a4061f59299bc48b029a4a93f410538170b6c3d97597074d2b3b6eed1de0f9a1ac88bc187614d9e46d8fe872941f173ba0f0a02def590451dad09e6a3b78e5a SHA512 952a4771f80541c54234fcaa9c870283fdf4887246d0d9751a77c28340b7e39ba871141f230086efda9a274d5e6bd567305047cdc7edf766ccd41112281fdf94
29 -DIST pgadmin4-4.28.tar.gz 35386627 BLAKE2B 6cbee6ccadf3b35e1b0aece2e8fc4b9e35dd04ed70436a3b74d69c09e887499c3a2ab8710d16df3327cd848c3c5ee1fac2cde06facbdc5605673b04a4a4fc434 SHA512 b9e8946e8133b382b9d69126c1ec6fc07a4b2051316c2151c339f15652900fa2bdf0a07811e052548c3f8699e382d8c16d187e89409b194e491148123558522e
30 DIST pgadmin4-4.29.tar.gz 35389494 BLAKE2B faaa84c0eee9c92ba483f4adffaf9e39e0c5f8ea21630a9ee8fad62aa833c88aa913df50c760be740afa0696aa1fbf1b6902a8b5bfd322822472f7d2dcb295e1 SHA512 2c7d20d10c96712f41621c2862a6a6222f6d6dad4a0b3e1aaf04744e65744460dcae4220f61b27785e02c82a624fa0793df2ea9d8e83ac0a6de048455929e615
31
32 diff --git a/dev-db/pgadmin4/files/pgadmin4-4.17-python-3.8.patch b/dev-db/pgadmin4/files/pgadmin4-4.17-python-3.8.patch
33 deleted file mode 100644
34 index fbf2f7be4a9..00000000000
35 --- a/dev-db/pgadmin4/files/pgadmin4-4.17-python-3.8.patch
36 +++ /dev/null
37 @@ -1,12 +0,0 @@
38 -diff -uprb pgadmin4-4.13.orig/runtime/pgAdmin4.pro pgadmin4-4.13/runtime/pgAdmin4.pro
39 ---- a/runtime/pgAdmin4.pro 2019-10-16 10:07:59.000000000 +0300
40 -+++ b/runtime/pgAdmin4.pro 2019-11-05 18:33:18.524516120 +0200
41 -@@ -75,7 +75,7 @@ else {
42 -
43 - QMAKE_CXXFLAGS += $$system($$PYTHON_CONFIG --includes)
44 - QMAKE_LFLAGS += $$system($$PYTHON_CONFIG --ldflags)
45 -- LIBS += $$system($$PYTHON_CONFIG --libs)
46 -+ LIBS += $$system(PYTHON_LIBS=`$$PYTHON_CONFIG --libs --embed` || PYTHON_LIBS=`$$PYTHON_CONFIG --libs`; echo $PYTHON_LIBS)
47 -
48 - contains( LIBS, -lpython2.* ) {
49 - DEFINES += PYTHON2
50
51 diff --git a/dev-db/pgadmin4/pgadmin4-4.17-r1.ebuild b/dev-db/pgadmin4/pgadmin4-4.17-r1.ebuild
52 deleted file mode 100644
53 index 7a651a4aa6b..00000000000
54 --- a/dev-db/pgadmin4/pgadmin4-4.17-r1.ebuild
55 +++ /dev/null
56 @@ -1,120 +0,0 @@
57 -# Copyright 1999-2020 Gentoo Authors
58 -# Distributed under the terms of the GNU General Public License v2
59 -
60 -EAPI=7
61 -
62 -PYTHON_COMPAT=( python3_{6,7,8} )
63 -PYTHON_REQ_USE="sqlite"
64 -inherit desktop python-single-r1 qmake-utils xdg
65 -
66 -DESCRIPTION="GUI administration and development platform for PostgreSQL"
67 -HOMEPAGE="https://www.pgadmin.org/"
68 -SRC_URI="https://ftp.postgresql.org/pub/pgadmin/${PN}/v${PV}/source/${P}.tar.gz"
69 -
70 -LICENSE="POSTGRESQL"
71 -SLOT="0"
72 -KEYWORDS="amd64 x86"
73 -IUSE="doc"
74 -
75 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
76 -
77 -RESTRICT="test"
78 -
79 -# libsodium dep added because of 689678
80 -COMMON_DEPEND="${PYTHON_DEPS}
81 - dev-libs/libsodium[-minimal]
82 - dev-qt/qtcore:5
83 - dev-qt/qtgui:5
84 - dev-qt/qtnetwork:5[ssl]
85 - dev-qt/qtwidgets:5
86 -"
87 -DEPEND="${COMMON_DEPEND}
88 - doc? (
89 - $(python_gen_cond_dep '
90 - dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
91 - ')
92 - )
93 - virtual/imagemagick-tools[png]
94 -"
95 -RDEPEND="${COMMON_DEPEND}
96 - $(python_gen_cond_dep '
97 - >=app-text/htmlmin-0.1.12[${PYTHON_MULTI_USEDEP}]
98 - >=dev-python/blinker-1.4[${PYTHON_MULTI_USEDEP}]
99 - >=dev-python/flask-1.0.2[${PYTHON_MULTI_USEDEP}]
100 - >=dev-python/flask-gravatar-0.5.0[${PYTHON_MULTI_USEDEP}]
101 - >=dev-python/flask-htmlmin-1.5.0[${PYTHON_MULTI_USEDEP}]
102 - >=dev-python/flask-login-0.4.1[${PYTHON_MULTI_USEDEP}]
103 - >=dev-python/flask-mail-0.9.1[${PYTHON_MULTI_USEDEP}]
104 - >=dev-python/flask-migrate-2.4.0[${PYTHON_MULTI_USEDEP}]
105 - >=dev-python/flask-paranoid-0.2.0[${PYTHON_MULTI_USEDEP}]
106 - >=dev-python/flask-principal-0.4.0[${PYTHON_MULTI_USEDEP}]
107 - >=dev-python/flask-security-3.0.0[${PYTHON_MULTI_USEDEP}]
108 - >=dev-python/flask-sqlalchemy-2.3.2[${PYTHON_MULTI_USEDEP}]
109 - >=dev-python/flask-wtf-0.14.2[${PYTHON_MULTI_USEDEP}]
110 - >=dev-python/passlib-1.7.1[${PYTHON_MULTI_USEDEP}]
111 - >=dev-python/psutil-5.5.1[${PYTHON_MULTI_USEDEP}]
112 - >=dev-python/psycopg-2.8[${PYTHON_MULTI_USEDEP}]
113 - >=dev-python/python-dateutil-2.8.0[${PYTHON_MULTI_USEDEP}]
114 - >=dev-python/pytz-2018.9[${PYTHON_MULTI_USEDEP}]
115 - >=dev-python/simplejson-3.16.0[${PYTHON_MULTI_USEDEP}]
116 - >=dev-python/six-1.12.0[${PYTHON_MULTI_USEDEP}]
117 - >=dev-python/speaklater-1.3[${PYTHON_MULTI_USEDEP}]
118 - >=dev-python/sqlalchemy-1.2.18[${PYTHON_MULTI_USEDEP}]
119 - >=dev-python/sqlparse-0.2.4[${PYTHON_MULTI_USEDEP}]
120 - >=dev-python/sshtunnel-0.1.4[${PYTHON_MULTI_USEDEP}]
121 - >=dev-python/wtforms-2.2.1[${PYTHON_MULTI_USEDEP}]
122 - ')
123 -"
124 -
125 -PATCHES=( "${FILESDIR}"/${P}-python-3.8.patch )
126 -
127 -S="${WORKDIR}"/${P}/runtime
128 -
129 -src_prepare() {
130 - cd "${WORKDIR}"/${P} || die
131 - default
132 -}
133 -
134 -src_configure() {
135 - eqmake5
136 -}
137 -
138 -src_compile() {
139 - default
140 - use doc && emake -C "${WORKDIR}"/${P} docs
141 -}
142 -
143 -src_install() {
144 - dobin pgAdmin4
145 -
146 - cd "${WORKDIR}"/${P} || die
147 -
148 - local APP_DIR=/usr/share/${PN}/web
149 - insinto "${APP_DIR}"
150 - doins -r web/.
151 - newins - config_local.py <<-EOF
152 - SERVER_MODE = False
153 - UPGRADE_CHECK_ENABLED = False
154 - EOF
155 - python_optimize "${D}${APP_DIR}"
156 -
157 - insinto /etc/xdg/pgadmin
158 - newins - pgadmin4.conf <<-EOF
159 - [General]
160 - ApplicationPath=${APP_DIR}
161 - PythonPath=$(python_get_sitedir)
162 - EOF
163 -
164 - if use doc; then
165 - rm -r docs/en_US/_build/html/_sources || die
166 - insinto /usr/share/${PN}/docs/en_US/_build
167 - doins -r docs/en_US/_build/html
168 - fi
169 -
170 - local s
171 - for s in 16 32 48 64 72 96 128 192 256; do
172 - convert runtime/pgAdmin4.png -resize ${s}x${s} ${PN}_${s}.png || die
173 - newicon -s ${s} ${PN}_${s}.png ${PN}.png
174 - done
175 - domenu "${FILESDIR}"/${PN}.desktop
176 -}
177
178 diff --git a/dev-db/pgadmin4/pgadmin4-4.25.ebuild b/dev-db/pgadmin4/pgadmin4-4.25.ebuild
179 deleted file mode 100644
180 index b5bffaede3b..00000000000
181 --- a/dev-db/pgadmin4/pgadmin4-4.25.ebuild
182 +++ /dev/null
183 @@ -1,124 +0,0 @@
184 -# Copyright 1999-2020 Gentoo Authors
185 -# Distributed under the terms of the GNU General Public License v2
186 -
187 -EAPI=7
188 -
189 -PYTHON_COMPAT=( python3_{6,7,8} )
190 -PYTHON_REQ_USE="sqlite"
191 -inherit desktop python-single-r1 qmake-utils xdg
192 -
193 -DESCRIPTION="GUI administration and development platform for PostgreSQL"
194 -HOMEPAGE="https://www.pgadmin.org/"
195 -SRC_URI="https://ftp.postgresql.org/pub/pgadmin/${PN}/v${PV}/source/${P}.tar.gz"
196 -
197 -LICENSE="POSTGRESQL"
198 -SLOT="0"
199 -KEYWORDS="~amd64 ~x86"
200 -IUSE="doc"
201 -
202 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
203 -
204 -RESTRICT="test"
205 -
206 -# libsodium dep added because of 689678
207 -COMMON_DEPEND="${PYTHON_DEPS}
208 - dev-libs/libsodium[-minimal]
209 - dev-qt/qtcore:5
210 - dev-qt/qtgui:5
211 - dev-qt/qtnetwork:5[ssl]
212 - dev-qt/qtwidgets:5
213 -"
214 -DEPEND="${COMMON_DEPEND}
215 - doc? (
216 - $(python_gen_cond_dep '
217 - dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
218 - ')
219 - )
220 - virtual/imagemagick-tools[png]
221 -"
222 -
223 -# In 4.25's requirement.txt, bcrypt is listed as <=3.17, but upstream's
224 -# git history shows this is just for compatibility with <python-3.6.
225 -RDEPEND="${COMMON_DEPEND}
226 - $(python_gen_cond_dep '
227 - >=dev-python/blinker-1.4[${PYTHON_MULTI_USEDEP}]
228 - >=dev-python/flask-1.0.2[${PYTHON_MULTI_USEDEP}]
229 - >=dev-python/flask-compress-1.4.0[${PYTHON_MULTI_USEDEP}]
230 - >=dev-python/flask-gravatar-0.5.0[${PYTHON_MULTI_USEDEP}]
231 - >=dev-python/flask-login-0.4.1[${PYTHON_MULTI_USEDEP}]
232 - >=dev-python/flask-mail-0.9.1[${PYTHON_MULTI_USEDEP}]
233 - >=dev-python/flask-migrate-2.4.0[${PYTHON_MULTI_USEDEP}]
234 - >=dev-python/flask-paranoid-0.2.0[${PYTHON_MULTI_USEDEP}]
235 - >=dev-python/flask-principal-0.4.0[${PYTHON_MULTI_USEDEP}]
236 - >=dev-python/flask-security-3.0.0[${PYTHON_MULTI_USEDEP}]
237 - >=dev-python/flask-sqlalchemy-2.3.2[${PYTHON_MULTI_USEDEP}]
238 - >=dev-python/flask-wtf-0.14.2[${PYTHON_MULTI_USEDEP}]
239 - >=dev-python/ldap3-2.5.1[${PYTHON_MULTI_USEDEP}]
240 - >=dev-python/passlib-1.7.2[${PYTHON_MULTI_USEDEP}]
241 - >=dev-python/psutil-5.7.0[${PYTHON_MULTI_USEDEP}]
242 - >=dev-python/psycopg-2.8[${PYTHON_MULTI_USEDEP}]
243 - >=dev-python/python-dateutil-2.8.0[${PYTHON_MULTI_USEDEP}]
244 - >=dev-python/pytz-2018.9[${PYTHON_MULTI_USEDEP}]
245 - >=dev-python/simplejson-3.16.0[${PYTHON_MULTI_USEDEP}]
246 - >=dev-python/six-1.12.0[${PYTHON_MULTI_USEDEP}]
247 - >=dev-python/speaklater-1.3[${PYTHON_MULTI_USEDEP}]
248 - >=dev-python/sqlalchemy-1.3.13[${PYTHON_MULTI_USEDEP}]
249 - >=dev-python/sqlparse-0.2.4[${PYTHON_MULTI_USEDEP}]
250 - >=dev-python/sshtunnel-0.1.5[${PYTHON_MULTI_USEDEP}]
251 - >=dev-python/werkzeug-0.15.0[${PYTHON_MULTI_USEDEP}]
252 - >=dev-python/wtforms-2.2.1[${PYTHON_MULTI_USEDEP}]
253 - dev-python/bcrypt[${PYTHON_MULTI_USEDEP}]
254 - ')
255 -"
256 -
257 -S="${WORKDIR}"/${P}/runtime
258 -
259 -src_prepare() {
260 - cd "${WORKDIR}"/${P} || die
261 - default
262 -}
263 -
264 -src_configure() {
265 - export PGADMIN_PYTHON_DIR="${EPREFIX}/usr"
266 - eqmake5
267 -}
268 -
269 -src_compile() {
270 - default
271 - use doc && emake -C "${WORKDIR}"/${P} docs
272 -}
273 -
274 -src_install() {
275 - dobin pgAdmin4
276 -
277 - cd "${WORKDIR}"/${P} || die
278 -
279 - local APP_DIR=/usr/share/${PN}/web
280 - insinto "${APP_DIR}"
281 - doins -r web/.
282 - newins - config_local.py <<-EOF
283 - SERVER_MODE = False
284 - UPGRADE_CHECK_ENABLED = False
285 - EOF
286 - python_optimize "${D}${APP_DIR}"
287 -
288 - insinto /etc/xdg/pgadmin
289 - newins - pgadmin4.conf <<-EOF
290 - [General]
291 - ApplicationPath=${APP_DIR}
292 - PythonPath=$(python_get_sitedir)
293 - EOF
294 -
295 - if use doc; then
296 - rm -r docs/en_US/_build/html/_sources || die
297 - insinto /usr/share/${PN}/docs/en_US/_build
298 - doins -r docs/en_US/_build/html
299 - fi
300 -
301 - local s
302 - for s in 16 32 48 64 72 96 128 192 256; do
303 - convert runtime/pgAdmin4.png -resize ${s}x${s} ${PN}_${s}.png || die
304 - newicon -s ${s} ${PN}_${s}.png ${PN}.png
305 - done
306 - domenu "${FILESDIR}"/${PN}.desktop
307 -}
308
309 diff --git a/dev-db/pgadmin4/pgadmin4-4.28.ebuild b/dev-db/pgadmin4/pgadmin4-4.28.ebuild
310 deleted file mode 100644
311 index f795a75bfb2..00000000000
312 --- a/dev-db/pgadmin4/pgadmin4-4.28.ebuild
313 +++ /dev/null
314 @@ -1,130 +0,0 @@
315 -# Copyright 1999-2020 Gentoo Authors
316 -# Distributed under the terms of the GNU General Public License v2
317 -
318 -EAPI=7
319 -
320 -PYTHON_COMPAT=( python3_{6,7,8} )
321 -PYTHON_REQ_USE="sqlite"
322 -inherit desktop python-single-r1 qmake-utils xdg
323 -
324 -DESCRIPTION="GUI administration and development platform for PostgreSQL"
325 -HOMEPAGE="https://www.pgadmin.org/"
326 -SRC_URI="https://ftp.postgresql.org/pub/pgadmin/${PN}/v${PV}/source/${P}.tar.gz"
327 -
328 -LICENSE="POSTGRESQL"
329 -SLOT="0"
330 -KEYWORDS="~amd64 ~x86"
331 -IUSE="doc"
332 -
333 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
334 -
335 -RESTRICT="test"
336 -
337 -# libsodium dep added because of 689678
338 -COMMON_DEPEND="${PYTHON_DEPS}
339 - dev-libs/libsodium[-minimal]
340 - dev-qt/qtcore:5
341 - dev-qt/qtgui:5
342 - dev-qt/qtnetwork:5[ssl]
343 - dev-qt/qtwidgets:5
344 -"
345 -DEPEND="${COMMON_DEPEND}
346 - doc? (
347 - $(python_gen_cond_dep '
348 - dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
349 - ')
350 - )
351 - virtual/imagemagick-tools[png]
352 -"
353 -
354 -# In 4.25's requirement.txt, bcrypt is listed as <=3.17, but upstream's
355 -# git history shows this is just for compatibility with <python-3.6.
356 -# In 4.26's requirement.txt, cryptography is listed as <=3.0, but upstream's
357 -# git history shows this is just for compatibility with Windows.
358 -# 4.28; requirement.txt: Flask-Security was renamed to
359 -# Flask-Security-Too. This is still the same dev-python/flask-security.
360 -RDEPEND="${COMMON_DEPEND}
361 - $(python_gen_cond_dep '
362 - >=dev-python/blinker-1.4[${PYTHON_MULTI_USEDEP}]
363 - >=dev-python/flask-1.0.2[${PYTHON_MULTI_USEDEP}]
364 - >=dev-python/flask-compress-1.4.0[${PYTHON_MULTI_USEDEP}]
365 - >=dev-python/flask-gravatar-0.5.0[${PYTHON_MULTI_USEDEP}]
366 - >=dev-python/flask-login-0.4.1[${PYTHON_MULTI_USEDEP}]
367 - >=dev-python/flask-mail-0.9.1[${PYTHON_MULTI_USEDEP}]
368 - >=dev-python/flask-migrate-2.4.0[${PYTHON_MULTI_USEDEP}]
369 - >=dev-python/flask-paranoid-0.2.0[${PYTHON_MULTI_USEDEP}]
370 - >=dev-python/flask-principal-0.4.0[${PYTHON_MULTI_USEDEP}]
371 - >=dev-python/flask-security-3.0.0[${PYTHON_MULTI_USEDEP}]
372 - >=dev-python/flask-sqlalchemy-2.4.1[${PYTHON_MULTI_USEDEP}]
373 - >=dev-python/flask-wtf-0.14.3[${PYTHON_MULTI_USEDEP}]
374 - >=dev-python/ldap3-2.5.1[${PYTHON_MULTI_USEDEP}]
375 - >=dev-python/passlib-1.7.2[${PYTHON_MULTI_USEDEP}]
376 - >=dev-python/psutil-5.7.0[${PYTHON_MULTI_USEDEP}]
377 - >=dev-python/psycopg-2.8[${PYTHON_MULTI_USEDEP}]
378 - >=dev-python/python-dateutil-2.8.0[${PYTHON_MULTI_USEDEP}]
379 - >=dev-python/pytz-2020.1[${PYTHON_MULTI_USEDEP}]
380 - >=dev-python/simplejson-3.16.0[${PYTHON_MULTI_USEDEP}]
381 - >=dev-python/six-1.12.0[${PYTHON_MULTI_USEDEP}]
382 - >=dev-python/speaklater-1.3[${PYTHON_MULTI_USEDEP}]
383 - >=dev-python/sqlalchemy-1.3.13[${PYTHON_MULTI_USEDEP}]
384 - >=dev-python/sqlparse-0.3.0[${PYTHON_MULTI_USEDEP}]
385 - >=dev-python/sshtunnel-0.1.5[${PYTHON_MULTI_USEDEP}]
386 - >=dev-python/werkzeug-0.15.0[${PYTHON_MULTI_USEDEP}]
387 - >=dev-python/wtforms-2.2.1[${PYTHON_MULTI_USEDEP}]
388 - dev-python/bcrypt[${PYTHON_MULTI_USEDEP}]
389 - dev-python/cryptography[${PYTHON_MULTI_USEDEP}]
390 - dev-python/python-email-validator[${PYTHON_MULTI_USEDEP}]
391 - ')
392 -"
393 -
394 -S="${WORKDIR}"/${P}/runtime
395 -
396 -src_prepare() {
397 - cd "${WORKDIR}"/${P} || die
398 - default
399 -}
400 -
401 -src_configure() {
402 - export PGADMIN_PYTHON_DIR="${EPREFIX}/usr"
403 - eqmake5
404 -}
405 -
406 -src_compile() {
407 - default
408 - use doc && emake -C "${WORKDIR}"/${P} docs
409 -}
410 -
411 -src_install() {
412 - dobin pgAdmin4
413 -
414 - cd "${WORKDIR}"/${P} || die
415 -
416 - local APP_DIR=/usr/share/${PN}/web
417 - insinto "${APP_DIR}"
418 - doins -r web/.
419 - newins - config_local.py <<-EOF
420 - SERVER_MODE = False
421 - UPGRADE_CHECK_ENABLED = False
422 - EOF
423 - python_optimize "${D}${APP_DIR}"
424 -
425 - insinto /etc/xdg/pgadmin
426 - newins - pgadmin4.conf <<-EOF
427 - [General]
428 - ApplicationPath=${APP_DIR}
429 - PythonPath=$(python_get_sitedir)
430 - EOF
431 -
432 - if use doc; then
433 - rm -r docs/en_US/_build/html/_sources || die
434 - insinto /usr/share/${PN}/docs/en_US/_build
435 - doins -r docs/en_US/_build/html
436 - fi
437 -
438 - local s
439 - for s in 16 32 48 64 72 96 128 192 256; do
440 - convert runtime/pgAdmin4.png -resize ${s}x${s} ${PN}_${s}.png || die
441 - newicon -s ${s} ${PN}_${s}.png ${PN}.png
442 - done
443 - domenu "${FILESDIR}"/${PN}.desktop
444 -}