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