1 |
commit: 85bcfc5f606a51b55ce6844e42feb69ba24273bb |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 30 12:25:44 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 5 21:27:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85bcfc5f |
7 |
|
8 |
dev-db/pgadmin4: 4.17 version bump, python3_8 |
9 |
|
10 |
Patch taken from Arch, thanks. |
11 |
|
12 |
Package-Manager: Portage-2.3.87, Repoman-2.3.20 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
dev-db/pgadmin4/Manifest | 1 + |
16 |
.../pgadmin4/files/pgadmin4-4.17-python-3.8.patch | 12 +++ |
17 |
dev-db/pgadmin4/pgadmin4-4.17.ebuild | 106 +++++++++++++++++++++ |
18 |
3 files changed, 119 insertions(+) |
19 |
|
20 |
diff --git a/dev-db/pgadmin4/Manifest b/dev-db/pgadmin4/Manifest |
21 |
index d8c0c3afb41..6a07a9896d2 100644 |
22 |
--- a/dev-db/pgadmin4/Manifest |
23 |
+++ b/dev-db/pgadmin4/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST pgadmin4-4.13.tar.gz 25077107 BLAKE2B afbf0b6fba2f4cbbc1f47ac6c7867b7f131e5698de265a9dda53b79968f237ac591c5ff4da94dde0b74479cac1158ec825f42b14fc01aee13982043822c04443 SHA512 7eca41047e41f7bdce2dfe992260e8c2ab40f985dd232eb240ea9c0024f551f011653717aa0d5e4ccdccd4ef4936102cde1f97a32852d8382dcc222fadce7707 |
26 |
+DIST pgadmin4-4.17.tar.gz 28007097 BLAKE2B d296f2b9372c23067db899fa82e1b8e732837b01a6172dd2d70520f815aafde161715eea9d9d53e7507a6a715dbfdaabf001a10d143c1aa0505237b2b138e334 SHA512 f9e292ba7ff1e5edaa8738188eb01744d69d0eb134700feb0623806425c998e7f298f74cd498a09f2d9a073a9a349c82f7a3f617e1da3c8dd757cc982d941c9f |
27 |
|
28 |
diff --git a/dev-db/pgadmin4/files/pgadmin4-4.17-python-3.8.patch b/dev-db/pgadmin4/files/pgadmin4-4.17-python-3.8.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..fbf2f7be4a9 |
31 |
--- /dev/null |
32 |
+++ b/dev-db/pgadmin4/files/pgadmin4-4.17-python-3.8.patch |
33 |
@@ -0,0 +1,12 @@ |
34 |
+diff -uprb pgadmin4-4.13.orig/runtime/pgAdmin4.pro pgadmin4-4.13/runtime/pgAdmin4.pro |
35 |
+--- a/runtime/pgAdmin4.pro 2019-10-16 10:07:59.000000000 +0300 |
36 |
++++ b/runtime/pgAdmin4.pro 2019-11-05 18:33:18.524516120 +0200 |
37 |
+@@ -75,7 +75,7 @@ else { |
38 |
+ |
39 |
+ QMAKE_CXXFLAGS += $$system($$PYTHON_CONFIG --includes) |
40 |
+ QMAKE_LFLAGS += $$system($$PYTHON_CONFIG --ldflags) |
41 |
+- LIBS += $$system($$PYTHON_CONFIG --libs) |
42 |
++ LIBS += $$system(PYTHON_LIBS=`$$PYTHON_CONFIG --libs --embed` || PYTHON_LIBS=`$$PYTHON_CONFIG --libs`; echo $PYTHON_LIBS) |
43 |
+ |
44 |
+ contains( LIBS, -lpython2.* ) { |
45 |
+ DEFINES += PYTHON2 |
46 |
|
47 |
diff --git a/dev-db/pgadmin4/pgadmin4-4.17.ebuild b/dev-db/pgadmin4/pgadmin4-4.17.ebuild |
48 |
new file mode 100644 |
49 |
index 00000000000..626795b4964 |
50 |
--- /dev/null |
51 |
+++ b/dev-db/pgadmin4/pgadmin4-4.17.ebuild |
52 |
@@ -0,0 +1,106 @@ |
53 |
+# Copyright 1999-2020 Gentoo Authors |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+ |
56 |
+EAPI=7 |
57 |
+ |
58 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
59 |
+PYTHON_REQ_USE="sqlite" |
60 |
+inherit python-single-r1 qmake-utils |
61 |
+ |
62 |
+DESCRIPTION="GUI administration and development platform for PostgreSQL" |
63 |
+HOMEPAGE="https://www.pgadmin.org/" |
64 |
+SRC_URI="https://ftp.postgresql.org/pub/pgadmin/${PN}/v${PV}/source/${P}.tar.gz" |
65 |
+ |
66 |
+LICENSE="POSTGRESQL" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~amd64 ~x86" |
69 |
+IUSE="doc" |
70 |
+ |
71 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
72 |
+ |
73 |
+RESTRICT="test" |
74 |
+ |
75 |
+# libsodium dep added because of 689678 |
76 |
+COMMON_DEPEND="${PYTHON_DEPS} |
77 |
+ dev-libs/libsodium[-minimal] |
78 |
+ dev-qt/qtcore:5 |
79 |
+ dev-qt/qtgui:5 |
80 |
+ dev-qt/qtnetwork:5[ssl] |
81 |
+ dev-qt/qtwidgets:5 |
82 |
+" |
83 |
+DEPEND="${COMMON_DEPEND} |
84 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
85 |
+" |
86 |
+RDEPEND="${COMMON_DEPEND} |
87 |
+ >=app-text/htmlmin-0.1.12[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/blinker-1.4[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/flask-1.0.2[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/flask-gravatar-0.5.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/flask-htmlmin-1.5.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/flask-login-0.4.1[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/flask-mail-0.9.1[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/flask-migrate-2.4.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/flask-paranoid-0.2.0[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/flask-principal-0.4.0[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/flask-security-3.0.0[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/flask-sqlalchemy-2.3.2[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/flask-wtf-0.14.2[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/passlib-1.7.1[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/psutil-5.5.1[${PYTHON_USEDEP}] |
102 |
+ >=dev-python/psycopg-2.8[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] |
104 |
+ >=dev-python/python-sqlparse-0.2.4[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/pytz-2018.9[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/simplejson-3.16.0[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/six-1.12.0[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/speaklater-1.3[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/sqlalchemy-1.2.18[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/sshtunnel-0.1.4[${PYTHON_USEDEP}] |
111 |
+ >=dev-python/wtforms-2.2.1[${PYTHON_USEDEP}] |
112 |
+" |
113 |
+ |
114 |
+PATCHES=( "${FILESDIR}"/${P}-python-3.8.patch ) |
115 |
+ |
116 |
+S="${WORKDIR}"/${P}/runtime |
117 |
+ |
118 |
+src_prepare() { |
119 |
+ cd "${WORKDIR}"/${P} || die |
120 |
+ default |
121 |
+} |
122 |
+ |
123 |
+src_configure() { |
124 |
+ eqmake5 |
125 |
+} |
126 |
+ |
127 |
+src_compile() { |
128 |
+ default |
129 |
+ use doc && emake -C "${WORKDIR}"/${P} docs |
130 |
+} |
131 |
+ |
132 |
+src_install() { |
133 |
+ dobin pgAdmin4 |
134 |
+ |
135 |
+ cd "${WORKDIR}"/${P} || die |
136 |
+ |
137 |
+ local APP_DIR=/usr/share/${PN}/web |
138 |
+ insinto "${APP_DIR}" |
139 |
+ doins -r web/. |
140 |
+ newins - config_local.py <<-EOF |
141 |
+ SERVER_MODE = False |
142 |
+ UPGRADE_CHECK_ENABLED = False |
143 |
+ EOF |
144 |
+ python_optimize "${D}${APP_DIR}" |
145 |
+ |
146 |
+ insinto /etc/xdg/pgadmin |
147 |
+ newins - pgadmin4.conf <<-EOF |
148 |
+ [General] |
149 |
+ ApplicationPath=${APP_DIR} |
150 |
+ PythonPath=$(python_get_sitedir) |
151 |
+ EOF |
152 |
+ |
153 |
+ if use doc; then |
154 |
+ rm -r docs/en_US/_build/html/_sources || die |
155 |
+ insinto /usr/share/${PN}/docs/en_US/_build |
156 |
+ doins -r docs/en_US/_build/html |
157 |
+ fi |
158 |
+} |