Gentoo Archives: gentoo-commits

From: Aaron Swenson <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/pgadmin4/
Date: Sun, 21 Oct 2018 10:51:17
Message-Id: 1540118728.e2b539149cb0834cead7fe27755b910180d30a83.titanofold@gentoo
1 commit: e2b539149cb0834cead7fe27755b910180d30a83
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 21 10:45:14 2018 +0000
4 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 21 10:45:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2b53914
7
8 dev-db/pgadmin4: Fix QT Deps
9
10 Closes: https://bugs.gentoo.org/668340
11 Package-Manager: Portage-2.3.49, Repoman-2.3.11
12 Signed-off-by: Aaron Swenson <titanofold <AT> gentoo.org>
13
14 dev-db/pgadmin4/pgadmin4-3.4-r1.ebuild | 123 +++++++++++++++++++++++++++++++++
15 1 file changed, 123 insertions(+)
16
17 diff --git a/dev-db/pgadmin4/pgadmin4-3.4-r1.ebuild b/dev-db/pgadmin4/pgadmin4-3.4-r1.ebuild
18 new file mode 100644
19 index 00000000000..18064c0d8ee
20 --- /dev/null
21 +++ b/dev-db/pgadmin4/pgadmin4-3.4-r1.ebuild
22 @@ -0,0 +1,123 @@
23 +# Copyright 1999-2018 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +PYTHON_COMPAT=( python3_{4,5,6} )
29 +PYTHON_REQ_USE="sqlite"
30 +
31 +inherit python-single-r1 qmake-utils
32 +
33 +DESCRIPTION="GUI administration and development platform for PostgreSQL"
34 +HOMEPAGE="https://www.pgadmin.org/"
35 +SRC_URI="mirror://postgresql/pgadmin/${PN}/v${PV}/source/${P}.tar.gz"
36 +
37 +LICENSE="POSTGRESQL"
38 +KEYWORDS="~amd64 ~x86"
39 +SLOT="0"
40 +IUSE="doc"
41 +
42 +RESTRICT="test"
43 +
44 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
45 +
46 +COMMON_DEPEND="${PYTHON_DEPS}
47 + dev-qt/qtnetwork:5
48 + dev-qt/qtwidgets:5
49 +"
50 +
51 +DEPEND="${COMMON_DEPEND}
52 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
53 +"
54 +
55 +RDEPEND="${COMMON_DEPEND}
56 + >=app-text/htmlmin-0.1.12[${PYTHON_USEDEP}]
57 + >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
58 + >=dev-python/beautifulsoup-4.4.1[${PYTHON_USEDEP}]
59 + >=dev-python/blinker-1.4[${PYTHON_USEDEP}]
60 + >=dev-python/click-6.6[${PYTHON_USEDEP}]
61 + >=dev-python/extras-1.0.0[${PYTHON_USEDEP}]
62 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
63 + >=dev-python/flask-1.0.2[${PYTHON_USEDEP}]
64 + >=dev-python/flask-babel-0.11.1[${PYTHON_USEDEP}]
65 + >=dev-python/flask-babelex-0.9.3[${PYTHON_USEDEP}]
66 + >=dev-python/flask-gravatar-0.5.0[${PYTHON_USEDEP}]
67 + >=dev-python/flask-htmlmin-1.3.2[${PYTHON_USEDEP}]
68 + >=dev-python/flask-login-0.3.2[${PYTHON_USEDEP}]
69 + >=dev-python/flask-mail-0.9.1[${PYTHON_USEDEP}]
70 + >=dev-python/flask-migrate-2.1.1[${PYTHON_USEDEP}]
71 + >=dev-python/flask-paranoid-0.2.0[${PYTHON_USEDEP}]
72 + >=dev-python/flask-principal-0.4.0[${PYTHON_USEDEP}]
73 + >=dev-python/flask-security-3.0.0[${PYTHON_USEDEP}]
74 + >=dev-python/flask-sqlalchemy-2.3.2[${PYTHON_USEDEP}]
75 + >=dev-python/flask-wtf-0.14.2[${PYTHON_USEDEP}]
76 + >=dev-python/html5lib-1.0.1[${PYTHON_USEDEP}]
77 + >=dev-python/itsdangerous-0.24[${PYTHON_USEDEP}]
78 + >=dev-python/jinja-2.7.3[${PYTHON_USEDEP}]
79 + >=dev-python/linecache2-1.0.0[${PYTHON_USEDEP}]
80 + >=dev-python/markupsafe-0.23[${PYTHON_USEDEP}]
81 + >=dev-python/mimeparse-1.6.0[${PYTHON_USEDEP}]
82 + >=dev-python/passlib-1.7.1[${PYTHON_USEDEP}]
83 + >=dev-python/pbr-3.1.1[${PYTHON_USEDEP}]
84 + >=dev-python/psycopg-2.7.4[${PYTHON_USEDEP}]
85 + >=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
86 + >=dev-python/pyrsistent-0.14.2[${PYTHON_USEDEP}]
87 + >=dev-python/python-dateutil-2.7.1[${PYTHON_USEDEP}]
88 + >=dev-python/python-sqlparse-0.2.4[${PYTHON_USEDEP}]
89 + >=dev-python/pytz-2018.3[${PYTHON_USEDEP}]
90 + >=dev-python/simplejson-3.13.2[${PYTHON_USEDEP}]
91 + >=dev-python/six-1.11.0[${PYTHON_USEDEP}]
92 + >=dev-python/speaklater-1.3[${PYTHON_USEDEP}]
93 + >=dev-python/sqlalchemy-1.2.5[${PYTHON_USEDEP}]
94 + >=dev-python/sshtunnel-0.1.3[${PYTHON_USEDEP}]
95 + >=dev-python/werkzeug-0.9.6[${PYTHON_USEDEP}]
96 + >=dev-python/wtforms-2.1[${PYTHON_USEDEP}]
97 +"
98 +
99 +S="${WORKDIR}"/${P}/runtime
100 +
101 +src_prepare() {
102 + cd "${WORKDIR}"/${P} || die
103 + default
104 +}
105 +
106 +src_configure() {
107 + eqmake5
108 +}
109 +
110 +src_compile() {
111 + default
112 + if use doc; then
113 + cd "${WORKDIR}"/${P} || die
114 + emake docs
115 + fi
116 +}
117 +
118 +src_install() {
119 + dobin pgAdmin4
120 +
121 + cd "${WORKDIR}"/${P} || die
122 +
123 + local APP_DIR=/usr/share/${PN}/web
124 + insinto "${APP_DIR}"
125 + doins -r web/*
126 + cat > "${D}${APP_DIR}"/config_local.py <<-EOF
127 + SERVER_MODE = False
128 + UPGRADE_CHECK_ENABLED = False
129 + EOF
130 + python_optimize "${D}${APP_DIR}"
131 +
132 + local CONFIG_DIR="/etc/xdg/pgadmin"
133 + dodir "${CONFIG_DIR}"
134 + cat > "${D}${CONFIG_DIR}"/pgadmin4.conf <<-EOF
135 + [General]
136 + ApplicationPath=${APP_DIR}
137 + PythonPath=$(python_get_sitedir)
138 + EOF
139 +
140 + if use doc; then
141 + rm -r docs/en_US/_build/html/_sources || die
142 + insinto /usr/share/${PN}/docs/en_US/_build
143 + doins -r docs/en_US/_build/html
144 + fi
145 +}