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