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/
Date: Sat, 12 Sep 2020 11:57:16
Message-Id: 1599911813.90eb397557742300bd8b84097c2af6a8c28ad207.titanofold@gentoo
1 commit: 90eb397557742300bd8b84097c2af6a8c28ad207
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 12 11:56:46 2020 +0000
4 Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 12 11:56:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90eb3975
7
8 dev-db/pgadmin4: Bump to 4.25
9
10 Closes: https://bugs.gentoo.org/720468
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>
13
14 dev-db/pgadmin4/Manifest | 1 +
15 dev-db/pgadmin4/pgadmin4-4.25.ebuild | 124 +++++++++++++++++++++++++++++++++++
16 2 files changed, 125 insertions(+)
17
18 diff --git a/dev-db/pgadmin4/Manifest b/dev-db/pgadmin4/Manifest
19 index a287f6abac5..e1f3d8ac927 100644
20 --- a/dev-db/pgadmin4/Manifest
21 +++ b/dev-db/pgadmin4/Manifest
22 @@ -1 +1,2 @@
23 DIST pgadmin4-4.17.tar.gz 28007097 BLAKE2B d296f2b9372c23067db899fa82e1b8e732837b01a6172dd2d70520f815aafde161715eea9d9d53e7507a6a715dbfdaabf001a10d143c1aa0505237b2b138e334 SHA512 f9e292ba7ff1e5edaa8738188eb01744d69d0eb134700feb0623806425c998e7f298f74cd498a09f2d9a073a9a349c82f7a3f617e1da3c8dd757cc982d941c9f
24 +DIST pgadmin4-4.25.tar.gz 33167393 BLAKE2B 5a40e45c53f79ea66c6f685d1605ddce7b1758540bf3a6863d4b092cc4dab5b00daff15832cd6feee28aa348c7a5376e25a93508fd348d8ffd4d29031e2b6c68 SHA512 a1944f9c65b8aa7ec5bd83ef75702293d869ae341ea73f81fb4358bfbc7f91a6981237eb9f1b20055c5f3fa182428afe19dc170963265789c34d73f2e240c268
25
26 diff --git a/dev-db/pgadmin4/pgadmin4-4.25.ebuild b/dev-db/pgadmin4/pgadmin4-4.25.ebuild
27 new file mode 100644
28 index 00000000000..b5bffaede3b
29 --- /dev/null
30 +++ b/dev-db/pgadmin4/pgadmin4-4.25.ebuild
31 @@ -0,0 +1,124 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +PYTHON_REQ_USE="sqlite"
39 +inherit desktop python-single-r1 qmake-utils xdg
40 +
41 +DESCRIPTION="GUI administration and development platform for PostgreSQL"
42 +HOMEPAGE="https://www.pgadmin.org/"
43 +SRC_URI="https://ftp.postgresql.org/pub/pgadmin/${PN}/v${PV}/source/${P}.tar.gz"
44 +
45 +LICENSE="POSTGRESQL"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="doc"
49 +
50 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
51 +
52 +RESTRICT="test"
53 +
54 +# libsodium dep added because of 689678
55 +COMMON_DEPEND="${PYTHON_DEPS}
56 + dev-libs/libsodium[-minimal]
57 + dev-qt/qtcore:5
58 + dev-qt/qtgui:5
59 + dev-qt/qtnetwork:5[ssl]
60 + dev-qt/qtwidgets:5
61 +"
62 +DEPEND="${COMMON_DEPEND}
63 + doc? (
64 + $(python_gen_cond_dep '
65 + dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
66 + ')
67 + )
68 + virtual/imagemagick-tools[png]
69 +"
70 +
71 +# In 4.25's requirement.txt, bcrypt is listed as <=3.17, but upstream's
72 +# git history shows this is just for compatibility with <python-3.6.
73 +RDEPEND="${COMMON_DEPEND}
74 + $(python_gen_cond_dep '
75 + >=dev-python/blinker-1.4[${PYTHON_MULTI_USEDEP}]
76 + >=dev-python/flask-1.0.2[${PYTHON_MULTI_USEDEP}]
77 + >=dev-python/flask-compress-1.4.0[${PYTHON_MULTI_USEDEP}]
78 + >=dev-python/flask-gravatar-0.5.0[${PYTHON_MULTI_USEDEP}]
79 + >=dev-python/flask-login-0.4.1[${PYTHON_MULTI_USEDEP}]
80 + >=dev-python/flask-mail-0.9.1[${PYTHON_MULTI_USEDEP}]
81 + >=dev-python/flask-migrate-2.4.0[${PYTHON_MULTI_USEDEP}]
82 + >=dev-python/flask-paranoid-0.2.0[${PYTHON_MULTI_USEDEP}]
83 + >=dev-python/flask-principal-0.4.0[${PYTHON_MULTI_USEDEP}]
84 + >=dev-python/flask-security-3.0.0[${PYTHON_MULTI_USEDEP}]
85 + >=dev-python/flask-sqlalchemy-2.3.2[${PYTHON_MULTI_USEDEP}]
86 + >=dev-python/flask-wtf-0.14.2[${PYTHON_MULTI_USEDEP}]
87 + >=dev-python/ldap3-2.5.1[${PYTHON_MULTI_USEDEP}]
88 + >=dev-python/passlib-1.7.2[${PYTHON_MULTI_USEDEP}]
89 + >=dev-python/psutil-5.7.0[${PYTHON_MULTI_USEDEP}]
90 + >=dev-python/psycopg-2.8[${PYTHON_MULTI_USEDEP}]
91 + >=dev-python/python-dateutil-2.8.0[${PYTHON_MULTI_USEDEP}]
92 + >=dev-python/pytz-2018.9[${PYTHON_MULTI_USEDEP}]
93 + >=dev-python/simplejson-3.16.0[${PYTHON_MULTI_USEDEP}]
94 + >=dev-python/six-1.12.0[${PYTHON_MULTI_USEDEP}]
95 + >=dev-python/speaklater-1.3[${PYTHON_MULTI_USEDEP}]
96 + >=dev-python/sqlalchemy-1.3.13[${PYTHON_MULTI_USEDEP}]
97 + >=dev-python/sqlparse-0.2.4[${PYTHON_MULTI_USEDEP}]
98 + >=dev-python/sshtunnel-0.1.5[${PYTHON_MULTI_USEDEP}]
99 + >=dev-python/werkzeug-0.15.0[${PYTHON_MULTI_USEDEP}]
100 + >=dev-python/wtforms-2.2.1[${PYTHON_MULTI_USEDEP}]
101 + dev-python/bcrypt[${PYTHON_MULTI_USEDEP}]
102 + ')
103 +"
104 +
105 +S="${WORKDIR}"/${P}/runtime
106 +
107 +src_prepare() {
108 + cd "${WORKDIR}"/${P} || die
109 + default
110 +}
111 +
112 +src_configure() {
113 + export PGADMIN_PYTHON_DIR="${EPREFIX}/usr"
114 + eqmake5
115 +}
116 +
117 +src_compile() {
118 + default
119 + use doc && emake -C "${WORKDIR}"/${P} docs
120 +}
121 +
122 +src_install() {
123 + dobin pgAdmin4
124 +
125 + cd "${WORKDIR}"/${P} || die
126 +
127 + local APP_DIR=/usr/share/${PN}/web
128 + insinto "${APP_DIR}"
129 + doins -r web/.
130 + newins - config_local.py <<-EOF
131 + SERVER_MODE = False
132 + UPGRADE_CHECK_ENABLED = False
133 + EOF
134 + python_optimize "${D}${APP_DIR}"
135 +
136 + insinto /etc/xdg/pgadmin
137 + newins - pgadmin4.conf <<-EOF
138 + [General]
139 + ApplicationPath=${APP_DIR}
140 + PythonPath=$(python_get_sitedir)
141 + EOF
142 +
143 + if use doc; then
144 + rm -r docs/en_US/_build/html/_sources || die
145 + insinto /usr/share/${PN}/docs/en_US/_build
146 + doins -r docs/en_US/_build/html
147 + fi
148 +
149 + local s
150 + for s in 16 32 48 64 72 96 128 192 256; do
151 + convert runtime/pgAdmin4.png -resize ${s}x${s} ${PN}_${s}.png || die
152 + newicon -s ${s} ${PN}_${s}.png ${PN}.png
153 + done
154 + domenu "${FILESDIR}"/${PN}.desktop
155 +}