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: Sat, 14 Oct 2017 23:30:15
Message-Id: 1508023791.e01efecbe1b8d455bf94b47b9a97feefbac4ad46.titanofold@gentoo
1 commit: e01efecbe1b8d455bf94b47b9a97feefbac4ad46
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 14 23:29:51 2017 +0000
4 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 14 23:29:51 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e01efecb
7
8 dev-db/pgadmin4: Add dev-python/flask-paranoid dep
9
10 Gentoo-Bug: 633732
11 Package-Manager: Portage-2.3.8, Repoman-2.3.3
12
13 dev-db/pgadmin4/pgadmin4-2.0-r1.ebuild | 122 +++++++++++++++++++++++++++++++++
14 1 file changed, 122 insertions(+)
15
16 diff --git a/dev-db/pgadmin4/pgadmin4-2.0-r1.ebuild b/dev-db/pgadmin4/pgadmin4-2.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..932530d0a98
19 --- /dev/null
20 +++ b/dev-db/pgadmin4/pgadmin4-2.0-r1.ebuild
21 @@ -0,0 +1,122 @@
22 +# Copyright 1999-2017 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +PYTHON_COMPAT=( python3_{4,5} )
28 +PYTHON_REQ_USE="sqlite"
29 +
30 +inherit python-single-r1 qmake-utils
31 +
32 +DESCRIPTION="GUI administration and development platform for PostgreSQL"
33 +HOMEPAGE="http://www.pgadmin.org/"
34 +SRC_URI="mirror://postgresql/pgadmin/${PN}/v${PV}/source/${P}.tar.gz"
35 +
36 +LICENSE="POSTGRESQL"
37 +KEYWORDS="~amd64 ~x86"
38 +SLOT="0"
39 +IUSE="doc"
40 +
41 +RESTRICT="test"
42 +
43 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
44 +
45 +COMMON_DEPEND="${PYTHON_DEPS}
46 + dev-qt/qtwidgets:5
47 + dev-qt/qtwebkit:5
48 + dev-qt/qtwebengine:5[widgets]
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.10[${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.3[${PYTHON_USEDEP}]
60 + >=dev-python/click-6.6[${PYTHON_USEDEP}]
61 + >=dev-python/extras-0.0.3[${PYTHON_USEDEP}]
62 + >=dev-python/fixtures-2.0.0[${PYTHON_USEDEP}]
63 + >=dev-python/flask-0.11.1[${PYTHON_USEDEP}]
64 + >=dev-python/flask-babel-0.11.1[${PYTHON_USEDEP}]
65 + >=dev-python/flask-gravatar-0.4.2[${PYTHON_USEDEP}]
66 + >=dev-python/flask-htmlmin-1.2[${PYTHON_USEDEP}]
67 + >=dev-python/flask-login-0.3.2[${PYTHON_USEDEP}]
68 + >=dev-python/flask-mail-0.9.1[${PYTHON_USEDEP}]
69 + >=dev-python/flask-migrate-2.0.3[${PYTHON_USEDEP}]
70 + >=dev-python/flask-paranoid-0.1.0[${PYTHON_USEDEP}]
71 + >=dev-python/flask-principal-0.4.0[${PYTHON_USEDEP}]
72 + >=dev-python/flask-security-1.7.5[${PYTHON_USEDEP}]
73 + >=dev-python/flask-sqlalchemy-2.1[${PYTHON_USEDEP}]
74 + >=dev-python/flask-wtf-0.12[${PYTHON_USEDEP}]
75 + >=dev-python/html5lib-0.9999999[${PYTHON_USEDEP}]
76 + >=dev-python/itsdangerous-0.24[${PYTHON_USEDEP}]
77 + >=dev-python/jinja-2.7.3[${PYTHON_USEDEP}]
78 + >=dev-python/linecache2-1.0.0[${PYTHON_USEDEP}]
79 + >=dev-python/markupsafe-0.23[${PYTHON_USEDEP}]
80 + >=dev-python/mimeparse-1.5.1[${PYTHON_USEDEP}]
81 + >=dev-python/passlib-1.6.2[${PYTHON_USEDEP}]
82 + >=dev-python/pbr-1.9.1[${PYTHON_USEDEP}]
83 + >=dev-python/psycopg-2.7.1[${PYTHON_USEDEP}]
84 + >=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
85 + >=dev-python/pyrsistent-0.11.13[${PYTHON_USEDEP}]
86 + >=dev-python/python-dateutil-2.5.0[${PYTHON_USEDEP}]
87 + >=dev-python/python-sqlparse-0.1.19[${PYTHON_USEDEP}]
88 + >=dev-python/pytz-2014.10[${PYTHON_USEDEP}]
89 + >=dev-python/simplejson-3.6.5[${PYTHON_USEDEP}]
90 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
91 + >=dev-python/speaklater-1.3[${PYTHON_USEDEP}]
92 + >=dev-python/sqlalchemy-1.0.14[${PYTHON_USEDEP}]
93 + >=dev-python/werkzeug-0.9.6[${PYTHON_USEDEP}]
94 + >=dev-python/wtforms-2.0.2[${PYTHON_USEDEP}]
95 +"
96 +
97 +S="${WORKDIR}"/${P}/runtime
98 +
99 +src_prepare() {
100 + cd "${WORKDIR}"/${P} || die
101 + default
102 +}
103 +
104 +src_configure() {
105 + eqmake5
106 +}
107 +
108 +src_compile() {
109 + default
110 + if use doc; then
111 + cd "${WORKDIR}"/${P} || die
112 + emake docs
113 + fi
114 +}
115 +
116 +src_install() {
117 + dobin pgAdmin4
118 +
119 + cd "${WORKDIR}"/${P} || die
120 +
121 + local APP_DIR=/usr/share/${PN}/web
122 + insinto "${APP_DIR}"
123 + doins -r web/*
124 + cat > "${D}${APP_DIR}"/config_local.py <<-EOF
125 + SERVER_MODE = False
126 + UPGRADE_CHECK_ENABLED = False
127 + EOF
128 + python_optimize "${D}${APP_DIR}"
129 +
130 + local CONFIG_DIR="/etc/xdg/pgadmin"
131 + dodir "${CONFIG_DIR}"
132 + cat > "${D}${CONFIG_DIR}"/pgadmin4.conf <<-EOF
133 + [General]
134 + ApplicationPath=${APP_DIR}
135 + PythonPath=$(python_get_sitedir)
136 + EOF
137 +
138 + if use doc; then
139 + rm -r docs/en_US/_build/html/_sources || die
140 + insinto /usr/share/${PN}/docs/en_US/_build
141 + doins -r docs/en_US/_build/html
142 + fi
143 +}