1 |
commit: 3e9311e342cdff3eea9871e5f365dbfaf2edce87 |
2 |
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 9 23:25:50 2017 +0000 |
4 |
Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 9 23:26:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e9311e3 |
7 |
|
8 |
dev-db/pgadmin4: Initial Commit |
9 |
|
10 |
Thanks to Chris Mayo for getting this started. |
11 |
|
12 |
Gentoo-Bug: 595378 |
13 |
|
14 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
15 |
|
16 |
dev-db/pgadmin4/Manifest | 1 + |
17 |
dev-db/pgadmin4/metadata.xml | 8 +++ |
18 |
dev-db/pgadmin4/pgadmin4-1.6.ebuild | 121 ++++++++++++++++++++++++++++++++++++ |
19 |
3 files changed, 130 insertions(+) |
20 |
|
21 |
diff --git a/dev-db/pgadmin4/Manifest b/dev-db/pgadmin4/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..4c8ba7efb2b |
24 |
--- /dev/null |
25 |
+++ b/dev-db/pgadmin4/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST pgadmin4-1.6.tar.gz 24595129 SHA256 514c021994c91eb9adb4a42edcec12974b473175289d48a5824b8c0f4e15e0c8 SHA512 115c2b0f1fd205912ba5fa51426de8c75ce979a075a16434ced3421186794fef756faae58f81c9585359cbe31b7bde24b773cfc886a64d349e656334349f6387 WHIRLPOOL 2697d253cf4a05a57fd06576636ab689c883daea46eae190f57ccb0a88a77e0df5e57bea554aca844beaab4cc9e10ecdf0607a0aee24468ed0602c78073f98c4 |
28 |
|
29 |
diff --git a/dev-db/pgadmin4/metadata.xml b/dev-db/pgadmin4/metadata.xml |
30 |
new file mode 100644 |
31 |
index 00000000000..f1828406d76 |
32 |
--- /dev/null |
33 |
+++ b/dev-db/pgadmin4/metadata.xml |
34 |
@@ -0,0 +1,8 @@ |
35 |
+<?xml version="1.0" encoding="UTF-8"?> |
36 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
37 |
+<pkgmetadata> |
38 |
+ <maintainer type="project"> |
39 |
+ <email>pgsql-bugs@g.o</email> |
40 |
+ <name>PostgreSQL</name> |
41 |
+ </maintainer> |
42 |
+</pkgmetadata> |
43 |
|
44 |
diff --git a/dev-db/pgadmin4/pgadmin4-1.6.ebuild b/dev-db/pgadmin4/pgadmin4-1.6.ebuild |
45 |
new file mode 100644 |
46 |
index 00000000000..9357a0e8f27 |
47 |
--- /dev/null |
48 |
+++ b/dev-db/pgadmin4/pgadmin4-1.6.ebuild |
49 |
@@ -0,0 +1,121 @@ |
50 |
+# Copyright 1999-2017 Gentoo Foundation |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=6 |
54 |
+ |
55 |
+PYTHON_COMPAT=( python3_{4,5} ) |
56 |
+PYTHON_REQ_USE="sqlite" |
57 |
+ |
58 |
+inherit python-single-r1 qmake-utils |
59 |
+ |
60 |
+DESCRIPTION="GUI administration and development platform for PostgreSQL" |
61 |
+HOMEPAGE="http://www.pgadmin.org/" |
62 |
+SRC_URI="mirror://postgresql/pgadmin/${PN}/v${PV}/source/${P}.tar.gz" |
63 |
+ |
64 |
+LICENSE="POSTGRESQL" |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
+SLOT="0" |
67 |
+IUSE="doc" |
68 |
+ |
69 |
+RESTRICT="test" |
70 |
+ |
71 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
72 |
+ |
73 |
+COMMON_DEPEND="${PYTHON_DEPS} |
74 |
+ dev-qt/qtwidgets:5 |
75 |
+ dev-qt/qtwebkit:5 |
76 |
+ dev-qt/qtwebengine:5[widgets] |
77 |
+" |
78 |
+ |
79 |
+DEPEND="${COMMON_DEPEND} |
80 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
81 |
+" |
82 |
+ |
83 |
+RDEPEND="${COMMON_DEPEND} |
84 |
+ >=app-text/htmlmin-0.1.10[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/beautifulsoup-4.4.1[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/blinker-1.3[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/click-6.6[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/extras-0.0.3[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/fixtures-2.0.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/flask-0.11.1[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/flask-babel-0.11.1[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/flask-gravatar-0.4.2[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/flask-htmlmin-1.2[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/flask-login-0.3.2[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/flask-mail-0.9.1[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/flask-migrate-2.0.3[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/flask-principal-0.4.0[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/flask-security-1.7.5[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/flask-sqlalchemy-2.1[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/flask-wtf-0.12[${PYTHON_USEDEP}] |
102 |
+ >=dev-python/html5lib-0.9999999[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/itsdangerous-0.24[${PYTHON_USEDEP}] |
104 |
+ >=dev-python/jinja-2.7.3[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/linecache2-1.0.0[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/markupsafe-0.23[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/mimeparse-1.5.1[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/passlib-1.6.2[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/pbr-1.9.1[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/psycopg-2.7.1[${PYTHON_USEDEP}] |
111 |
+ >=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}] |
112 |
+ >=dev-python/pyrsistent-0.11.13[${PYTHON_USEDEP}] |
113 |
+ >=dev-python/python-dateutil-2.5.0[${PYTHON_USEDEP}] |
114 |
+ >=dev-python/python-sqlparse-0.1.19[${PYTHON_USEDEP}] |
115 |
+ >=dev-python/pytz-2014.10[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/simplejson-3.6.5[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
118 |
+ >=dev-python/speaklater-1.3[${PYTHON_USEDEP}] |
119 |
+ >=dev-python/sqlalchemy-1.0.14[${PYTHON_USEDEP}] |
120 |
+ >=dev-python/werkzeug-0.9.6[${PYTHON_USEDEP}] |
121 |
+ >=dev-python/wtforms-2.0.2[${PYTHON_USEDEP}] |
122 |
+" |
123 |
+ |
124 |
+S="${WORKDIR}"/${P}/runtime |
125 |
+ |
126 |
+src_prepare() { |
127 |
+ cd "${WORKDIR}"/${P} || die |
128 |
+ default |
129 |
+} |
130 |
+ |
131 |
+src_configure() { |
132 |
+ eqmake5 |
133 |
+} |
134 |
+ |
135 |
+src_compile() { |
136 |
+ default |
137 |
+ if use doc; then |
138 |
+ cd "${WORKDIR}"/${P} || die |
139 |
+ emake docs |
140 |
+ fi |
141 |
+} |
142 |
+ |
143 |
+src_install() { |
144 |
+ dobin pgAdmin4 |
145 |
+ |
146 |
+ cd "${WORKDIR}"/${P} || die |
147 |
+ |
148 |
+ local APP_DIR=/usr/share/${PN}/web |
149 |
+ insinto "${APP_DIR}" |
150 |
+ doins -r web/* |
151 |
+ cat > "${D}${APP_DIR}"/config_local.py <<-EOF |
152 |
+ SERVER_MODE = False |
153 |
+ UPGRADE_CHECK_ENABLED = False |
154 |
+ EOF |
155 |
+ python_optimize "${D}${APP_DIR}" |
156 |
+ |
157 |
+ local CONFIG_DIR="/etc/xdg/pgadmin" |
158 |
+ dodir "${CONFIG_DIR}" |
159 |
+ cat > "${D}${CONFIG_DIR}"/pgadmin4.conf <<-EOF |
160 |
+ [General] |
161 |
+ ApplicationPath=${APP_DIR} |
162 |
+ PythonPath=$(python_get_sitedir) |
163 |
+ EOF |
164 |
+ |
165 |
+ if use doc; then |
166 |
+ rm -r docs/en_US/_build/html/_sources || die |
167 |
+ insinto /usr/share/${PN}/docs/en_US/_build |
168 |
+ doins -r docs/en_US/_build/html |
169 |
+ fi |
170 |
+} |