* Re: [PR PATCH] [Updated] New package: pgadmin4-qt-4.22
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
@ 2020-07-07 5:09 ` mustaqimM
2020-07-07 6:32 ` mustaqimM
1 sibling, 0 replies; 2+ messages in thread
From: mustaqimM @ 2020-07-07 5:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 495 bytes --]
There is an updated pull request by mustaqimM against master on the void-packages repository
https://github.com/mustaqimM/void-packages update_pgadmin
https://github.com/void-linux/void-packages/pull/23201
New package: pgadmin4-qt-4.22
I haven't as yet used it extensively but it seems to work. The executable is used only to launch the python backend; should I rename the package to just: `pgadmin4`?
A patch file from https://github.com/void-linux/void-packages/pull/23201.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update_pgadmin-23201.patch --]
[-- Type: text/x-diff, Size: 16343 bytes --]
From 17cd88f4e37451586010f39e912d1478eadf8c2a Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:04:05 +0200
Subject: [PATCH 01/11] New package: python3-Flask-BabelEx-0.9.4
---
srcpkgs/python3-Flask-BabelEx/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/python3-Flask-BabelEx/template
diff --git a/srcpkgs/python3-Flask-BabelEx/template b/srcpkgs/python3-Flask-BabelEx/template
new file mode 100644
index 00000000000..1d8cd9fa548
--- /dev/null
+++ b/srcpkgs/python3-Flask-BabelEx/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-BabelEx'
+pkgname=python3-Flask-BabelEx
+version=0.9.4
+revision=1
+wrksrc="flask-babelex-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Flask python3-Babel python3-speaklater python3-Jinja2"
+short_desc="i18n and l10n support for Flask based on Babel and pytz"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="BSD-3-Clause"
+homepage="https://github.com/mrjoes/flask-babelex"
+distfiles="https://github.com/mrjoes/flask-babelex/archive/${version}.tar.gz"
+checksum=436869a09884b456dc989566582209e9aef7f06b1d342e0b57936d6b834fa073
+
+post_install() {
+ vlicense LICENSE
+}
From 4222b34bb8a2a23e3cabc82d1fb63aad5d172b66 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:04:44 +0200
Subject: [PATCH 02/11] New package: python3-Flask-Compress-1.5.0
---
srcpkgs/python3-Flask-Compress/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Compress/template
diff --git a/srcpkgs/python3-Flask-Compress/template b/srcpkgs/python3-Flask-Compress/template
new file mode 100644
index 00000000000..e4328eb623d
--- /dev/null
+++ b/srcpkgs/python3-Flask-Compress/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Compress'
+pkgname=python3-Flask-Compress
+version=1.5.0
+revision=1
+wrksrc="flask-compress-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-brotli"
+short_desc="Compress responses in your Flask app with gzip or brotli"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://github.com/colour-science/flask-compress"
+distfiles="https://github.com/colour-science/flask-compress/archive/v${version}.tar.gz"
+checksum=692838db8293949fdc9af814be6313743fc77d37b9981a9418eb5f87f34b09c2
+
+post_install() {
+ vlicense LICENSE.txt
+}
From a7f88cb707c186386ab989c7a10a4a69abaaf60b Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:05:24 +0200
Subject: [PATCH 03/11] New package: python3-Flask-Gravatar-0.5.0
---
srcpkgs/python3-Flask-Gravatar/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Gravatar/template
diff --git a/srcpkgs/python3-Flask-Gravatar/template b/srcpkgs/python3-Flask-Gravatar/template
new file mode 100644
index 00000000000..dad2498577b
--- /dev/null
+++ b/srcpkgs/python3-Flask-Gravatar/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Gravatar'
+pkgname=python3-Flask-Gravatar
+version=0.5.0
+revision=1
+wrksrc="Flask-Gravatar-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Small and simple integration of gravatar into flask"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="BSD-3-Clause"
+homepage="https://github.com/zzzsochi/flask-gravatar"
+distfiles="https://github.com/zzzsochi/flask-gravatar/archive/v${version}.tar.gz"
+checksum=9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55
+
+post_install() {
+ vlicense LICENSE
+}
From 48d8a8ab9650eb33c1c8ec72139f44ae570f3fb4 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:05:47 +0200
Subject: [PATCH 04/11] New package: python3-Flask-Migrate-2.5.3
---
srcpkgs/python3-Flask-Migrate/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Migrate/template
diff --git a/srcpkgs/python3-Flask-Migrate/template b/srcpkgs/python3-Flask-Migrate/template
new file mode 100644
index 00000000000..7b38d6136c2
--- /dev/null
+++ b/srcpkgs/python3-Flask-Migrate/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Migrate'
+pkgname=python3-Flask-Migrate
+version=2.5.3
+revision=1
+wrksrc="Flask-Migrate-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="SQLAlchemy database migrations for Flask applications using Alembic "
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://pypi.org/project/Flask-Migrate/"
+distfiles="https://github.com/miguelgrinberg/Flask-Migrate/archive/v${version}.tar.gz"
+changelog="https://raw.githubusercontent.com/miguelgrinberg/Flask-Migrate/master/CHANGES.md"
+checksum=4af1feb1b5e5a0332c11c3ebe7981228719776b73c0bfa28b4aead541dff46d8
+
+post_install() {
+ vlicense LICENSE
+}
From e34ad9a13a66e044aecdab42f8e290a40849fbdd Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:06:25 +0200
Subject: [PATCH 05/11] New package: python3-Flask-Paranoid-0.2
---
srcpkgs/python3-Flask-Paranoid/template | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Paranoid/template
diff --git a/srcpkgs/python3-Flask-Paranoid/template b/srcpkgs/python3-Flask-Paranoid/template
new file mode 100644
index 00000000000..6fc65175d47
--- /dev/null
+++ b/srcpkgs/python3-Flask-Paranoid/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-Flask-Paranoid'
+pkgname=python3-Flask-Paranoid
+version=0.2
+revision=1
+wrksrc="flask-paranoid-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Simple user session protection"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://flask-paranoid.readthedocs.io/en/latest/"
+distfiles="https://github.com/miguelgrinberg/flask-paranoid/archive/v${version}.tar.gz"
+checksum=cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3
From a994d949338378bbe39d5bd193e951bf6c0d6701 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:06:56 +0200
Subject: [PATCH 06/11] New package: python3-Flask-Principal-0.4.0
---
srcpkgs/python3-Flask-Principal/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Principal/template
diff --git a/srcpkgs/python3-Flask-Principal/template b/srcpkgs/python3-Flask-Principal/template
new file mode 100644
index 00000000000..026fbcfe90d
--- /dev/null
+++ b/srcpkgs/python3-Flask-Principal/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Principal'
+pkgname=python3-Flask-Principal
+version=0.4.0
+revision=1
+wrksrc="flask-principal-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Identity management for Flask"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://python3hosted.org/Flask-Principal/"
+distfiles="https://github.com/mattupstate/flask-principal/archive/${version}.tar.gz"
+changelog="https://python3hosted.org/Flask-Principal/changelog.html"
+checksum=ed8c58943460d7d54c29463e2fe98ae4969d3818c0f59b36e9b2649128db96c9
+
+post_install() {
+ vlicense LICENSE
+}
From e10b6f17aa7c91c1c1e4c9cdb4ed5082cb051eb2 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:07:24 +0200
Subject: [PATCH 07/11] New package: python3-Flask-Security-Too-3.4.3
---
srcpkgs/python3-Flask-Security-Too/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Security-Too/template
diff --git a/srcpkgs/python3-Flask-Security-Too/template b/srcpkgs/python3-Flask-Security-Too/template
new file mode 100644
index 00000000000..1868c08826f
--- /dev/null
+++ b/srcpkgs/python3-Flask-Security-Too/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Security-Too'
+pkgname=python3-Flask-Security-Too
+version=3.4.3
+revision=1
+wrksrc="flask-security-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Simple security for Flask apps"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://github.com/Flask-Middleware/flask-security/"
+distfiles="https://github.com/Flask-Middleware/flask-security/archive/${version}.tar.gz"
+checksum=3b618b61cf8fe71bb82bcc228b54d9ca8fa7224776b457710dd62b8d9f598606
+
+post_install() {
+ vlicense LICENSE
+}
From a4e61090fc5e0b3913001e9e3fd7334fccc794e0 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:07:51 +0200
Subject: [PATCH 08/11] New package: python3-brotli-1.0.7
---
srcpkgs/python3-brotli/template | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/python3-brotli/template
diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template
new file mode 100644
index 00000000000..4e1087acc59
--- /dev/null
+++ b/srcpkgs/python3-brotli/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-brotli'
+pkgname=python3-brotli
+version=1.0.7
+revision=1
+wrksrc="Brotli-${version}"
+build_style="python3-module"
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Python3 brotli module"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="Apache-2.0"
+homepage="https://pypi.org/project/Brotli/"
+distfiles=$PYPI_SITE/B/Brotli/Brotli-${version}.tar.gz
+checksum=0538dc1744fd17c314d2adc409ea7d1b779783b89fd95bcfb0c2acc93a6ea5a7
From a67c898bafa2bd243df51d5dd2c75825fe17b511 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:08:12 +0200
Subject: [PATCH 09/11] New package: python3-speaklater-0.13
---
srcpkgs/python3-speaklater/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/python3-speaklater/template
diff --git a/srcpkgs/python3-speaklater/template b/srcpkgs/python3-speaklater/template
new file mode 100644
index 00000000000..f7ff0c304b1
--- /dev/null
+++ b/srcpkgs/python3-speaklater/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-speaklater'
+pkgname=python3-speaklater
+version=0.13
+revision=1
+wrksrc="speaklater-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Lazy strings for translations"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="custom:BSD"
+homepage="https://pypi.org/project/speaklater/"
+distfiles="https://github.com/mitsuhiko/speaklater/archive/${version}.tar.gz"
+checksum=11f42873c46f620d68fcbc051782ec1d63c6758d3de8be9a75d0cf7ff4bad83b
+
+post_install() {
+ vlicense LICENSE
+}
From f4648e3d3c63e42187fb8318258b50f4b251f93d Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:08:34 +0200
Subject: [PATCH 10/11] New package: python3-sshtunnel-0.1.5
---
srcpkgs/python3-sshtunnel/template | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 srcpkgs/python3-sshtunnel/template
diff --git a/srcpkgs/python3-sshtunnel/template b/srcpkgs/python3-sshtunnel/template
new file mode 100644
index 00000000000..d72bdffa95a
--- /dev/null
+++ b/srcpkgs/python3-sshtunnel/template
@@ -0,0 +1,14 @@
+# Template file for 'python3-sshtunnel'
+pkgname=python3-sshtunnel
+version=0.1.5
+revision=1
+wrksrc="sshtunnel-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-paramiko"
+short_desc="Pure python2 SSH tunnels"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://pypi.org/project/sshtunnel/"
+distfiles="https://github.com/pahaz/sshtunnel/archive/${version}.tar.gz"
+checksum=7590d5f79af5c8c33ab49cc99cfc867b401ed55c5e24dfaeed870bd920978c38
From 757294ce5f7e692db3feb4de5ef4f4818ea14640 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:09:31 +0200
Subject: [PATCH 11/11] New package: pgadmin4-4.22
---
srcpkgs/pgadmin4/files/pgadmin4.desktop | 11 +++++
.../patches/hardcode-py-lib-location.patch | 30 +++++++++++++
srcpkgs/pgadmin4/template | 43 +++++++++++++++++++
3 files changed, 84 insertions(+)
create mode 100644 srcpkgs/pgadmin4/files/pgadmin4.desktop
create mode 100644 srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
create mode 100644 srcpkgs/pgadmin4/template
diff --git a/srcpkgs/pgadmin4/files/pgadmin4.desktop b/srcpkgs/pgadmin4/files/pgadmin4.desktop
new file mode 100644
index 00000000000..03d6845ddb1
--- /dev/null
+++ b/srcpkgs/pgadmin4/files/pgadmin4.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=pgAdmin4
+Exec=/usr/bin/pgAdmin4
+Icon=/usr/share/icons/pgAdmin4.png
+Type=Application
+Categories=Application;Development;
+MimeType=text/html
+GenericName=Management tool for PostgreSQL
+Comment=Management tools for PostgreSQL
+Keywords=database;db;sql;query;administration;development;
diff --git a/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
new file mode 100644
index 00000000000..4d8cdc86706
--- /dev/null
+++ b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
@@ -0,0 +1,30 @@
+diff --git a/runtime/Server.cpp b/runtime/Server.cpp
+index 62f4a27f7..ba2783f0e 100644
+--- a/runtime/Server.cpp
++++ b/runtime/Server.cpp
+@@ -127,11 +127,11 @@ Server::Server(quint16 port, QString key, QString logFileName):
+ add_to_path(pythonHome, venvPath.canonicalFilePath());
+ #else
+ // Build (and canonicalise) the virtual environment path
+- QFileInfo venvBinPath(app_dir + "/../venv/bin");
+- QFileInfo venvLibPath(app_dir + "/../venv/lib/python");
+- QFileInfo venvDynLibPath(app_dir + "/../venv/lib/python/lib-dynload");
+- QFileInfo venvSitePackagesPath(app_dir + "/../venv/lib/python/site-packages");
+- QFileInfo venvPath(app_dir + "/../venv");
++ QFileInfo venvBinPath("/usr/bin");
++ QFileInfo venvLibPath("/usr/lib/python3.8");
++ QFileInfo venvDynLibPath("/usr/lib/python3.8/lib-dynload");
++ QFileInfo venvSitePackagesPath("/usr/lib/python3.8/site-packages");
++ QFileInfo venvPath("/usr/lib/python3.8");
+
+ // Prepend the bin directory to the path
+ add_to_path(path_env, venvBinPath.canonicalFilePath(), true);
+@@ -265,7 +265,7 @@ bool Server::Init()
+
+ // Find the webapp
+ QStringList paths;
+- paths.append("../web/"); // Linux source tree
++ paths.append("/usr/lib/pgadmin4/web/"); // Linux source tree
+ paths.append("../../web/"); // Windows source tree
+ paths.append("../../../../web/"); // Mac source tree (in a dev env)
+ #ifdef Q_OS_MAC
diff --git a/srcpkgs/pgadmin4/template b/srcpkgs/pgadmin4/template
new file mode 100644
index 00000000000..1786e56aa23
--- /dev/null
+++ b/srcpkgs/pgadmin4/template
@@ -0,0 +1,43 @@
+# Template file for 'pgadmin4'
+pkgname=pgadmin4
+version=4.22
+revision=1
+wrksrc="pgadmin4-${version}"
+hostmakedepends="qt5-qmake python3-devel qt5-host-tools qt5-devel"
+depends="python3-Flask python3-Flask-BabelEx python3-Flask-Login python3-Flask-Mail
+ python3-blinker python3-Flask-Paranoid python3-Flask-Security-Too python3-Flask-Principal
+ python3-passlib python3-Flask-WTF python3-speaklater python3-Flask-SQLAlchemy python3-simplejson python3-dateutil
+ python3-Flask-Migrate python3-alembic python3-psycopg2 python3-cryptography python3-sshtunnel python3-ldap3
+ python3-Flask-Gravatar python3-sqlparse python3-psutil python3-Flask-Compress"
+short_desc="Comprehensive design and management interface for PostgreSQL"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="PostgreSQL"
+homepage="http://www.pgadmin.org"
+distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v${version}/source/pgadmin4-${version}.tar.gz"
+checksum=77d863d2da5b50a357133f0e34ada9ac12b99f94ecb40ca2ab07c564aea084f7
+patch_args="-Np1"
+
+do_configure() {
+ vsed -i runtime/ConfigWindow.ui \
+ -e 's|/usr/pgadmin4/lib/python2.7|/usr/lib/python3.8|g' \
+ -e 's|/usr/pgadmin4/web|/usr/lib/pgadmin4/web|'
+}
+
+do_build() {
+ export PGADMIN_PYTHON_DIR=/usr
+ cd runtime
+ qmake CONFIG+=release
+ make
+}
+
+do_install() {
+ vbin runtime/pgAdmin4
+ vmkdir /usr/lib/pgadmin4
+ vcopy web /usr/lib/pgadmin4
+}
+
+post_install() {
+ vinstall "${FILESDIR}/pgadmin4.desktop" 644 usr/share/applications/
+ vinstall runtime/pgAdmin4.png 644 usr/share/icons/
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Updated] New package: pgadmin4-qt-4.22
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
2020-07-07 5:09 ` [PR PATCH] [Updated] New package: pgadmin4-qt-4.22 mustaqimM
@ 2020-07-07 6:32 ` mustaqimM
1 sibling, 0 replies; 2+ messages in thread
From: mustaqimM @ 2020-07-07 6:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 495 bytes --]
There is an updated pull request by mustaqimM against master on the void-packages repository
https://github.com/mustaqimM/void-packages update_pgadmin
https://github.com/void-linux/void-packages/pull/23201
New package: pgadmin4-qt-4.22
I haven't as yet used it extensively but it seems to work. The executable is used only to launch the python backend; should I rename the package to just: `pgadmin4`?
A patch file from https://github.com/void-linux/void-packages/pull/23201.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update_pgadmin-23201.patch --]
[-- Type: text/x-diff, Size: 16982 bytes --]
From 17cd88f4e37451586010f39e912d1478eadf8c2a Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:04:05 +0200
Subject: [PATCH 01/11] New package: python3-Flask-BabelEx-0.9.4
---
srcpkgs/python3-Flask-BabelEx/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/python3-Flask-BabelEx/template
diff --git a/srcpkgs/python3-Flask-BabelEx/template b/srcpkgs/python3-Flask-BabelEx/template
new file mode 100644
index 00000000000..1d8cd9fa548
--- /dev/null
+++ b/srcpkgs/python3-Flask-BabelEx/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-BabelEx'
+pkgname=python3-Flask-BabelEx
+version=0.9.4
+revision=1
+wrksrc="flask-babelex-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Flask python3-Babel python3-speaklater python3-Jinja2"
+short_desc="i18n and l10n support for Flask based on Babel and pytz"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="BSD-3-Clause"
+homepage="https://github.com/mrjoes/flask-babelex"
+distfiles="https://github.com/mrjoes/flask-babelex/archive/${version}.tar.gz"
+checksum=436869a09884b456dc989566582209e9aef7f06b1d342e0b57936d6b834fa073
+
+post_install() {
+ vlicense LICENSE
+}
From 4222b34bb8a2a23e3cabc82d1fb63aad5d172b66 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:04:44 +0200
Subject: [PATCH 02/11] New package: python3-Flask-Compress-1.5.0
---
srcpkgs/python3-Flask-Compress/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Compress/template
diff --git a/srcpkgs/python3-Flask-Compress/template b/srcpkgs/python3-Flask-Compress/template
new file mode 100644
index 00000000000..e4328eb623d
--- /dev/null
+++ b/srcpkgs/python3-Flask-Compress/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Compress'
+pkgname=python3-Flask-Compress
+version=1.5.0
+revision=1
+wrksrc="flask-compress-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-brotli"
+short_desc="Compress responses in your Flask app with gzip or brotli"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://github.com/colour-science/flask-compress"
+distfiles="https://github.com/colour-science/flask-compress/archive/v${version}.tar.gz"
+checksum=692838db8293949fdc9af814be6313743fc77d37b9981a9418eb5f87f34b09c2
+
+post_install() {
+ vlicense LICENSE.txt
+}
From a7f88cb707c186386ab989c7a10a4a69abaaf60b Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:05:24 +0200
Subject: [PATCH 03/11] New package: python3-Flask-Gravatar-0.5.0
---
srcpkgs/python3-Flask-Gravatar/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Gravatar/template
diff --git a/srcpkgs/python3-Flask-Gravatar/template b/srcpkgs/python3-Flask-Gravatar/template
new file mode 100644
index 00000000000..dad2498577b
--- /dev/null
+++ b/srcpkgs/python3-Flask-Gravatar/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Gravatar'
+pkgname=python3-Flask-Gravatar
+version=0.5.0
+revision=1
+wrksrc="Flask-Gravatar-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Small and simple integration of gravatar into flask"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="BSD-3-Clause"
+homepage="https://github.com/zzzsochi/flask-gravatar"
+distfiles="https://github.com/zzzsochi/flask-gravatar/archive/v${version}.tar.gz"
+checksum=9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55
+
+post_install() {
+ vlicense LICENSE
+}
From 48d8a8ab9650eb33c1c8ec72139f44ae570f3fb4 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:05:47 +0200
Subject: [PATCH 04/11] New package: python3-Flask-Migrate-2.5.3
---
srcpkgs/python3-Flask-Migrate/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Migrate/template
diff --git a/srcpkgs/python3-Flask-Migrate/template b/srcpkgs/python3-Flask-Migrate/template
new file mode 100644
index 00000000000..7b38d6136c2
--- /dev/null
+++ b/srcpkgs/python3-Flask-Migrate/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Migrate'
+pkgname=python3-Flask-Migrate
+version=2.5.3
+revision=1
+wrksrc="Flask-Migrate-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="SQLAlchemy database migrations for Flask applications using Alembic "
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://pypi.org/project/Flask-Migrate/"
+distfiles="https://github.com/miguelgrinberg/Flask-Migrate/archive/v${version}.tar.gz"
+changelog="https://raw.githubusercontent.com/miguelgrinberg/Flask-Migrate/master/CHANGES.md"
+checksum=4af1feb1b5e5a0332c11c3ebe7981228719776b73c0bfa28b4aead541dff46d8
+
+post_install() {
+ vlicense LICENSE
+}
From e34ad9a13a66e044aecdab42f8e290a40849fbdd Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:06:25 +0200
Subject: [PATCH 05/11] New package: python3-Flask-Paranoid-0.2
---
srcpkgs/python3-Flask-Paranoid/template | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Paranoid/template
diff --git a/srcpkgs/python3-Flask-Paranoid/template b/srcpkgs/python3-Flask-Paranoid/template
new file mode 100644
index 00000000000..6fc65175d47
--- /dev/null
+++ b/srcpkgs/python3-Flask-Paranoid/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-Flask-Paranoid'
+pkgname=python3-Flask-Paranoid
+version=0.2
+revision=1
+wrksrc="flask-paranoid-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Simple user session protection"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://flask-paranoid.readthedocs.io/en/latest/"
+distfiles="https://github.com/miguelgrinberg/flask-paranoid/archive/v${version}.tar.gz"
+checksum=cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3
From a994d949338378bbe39d5bd193e951bf6c0d6701 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:06:56 +0200
Subject: [PATCH 06/11] New package: python3-Flask-Principal-0.4.0
---
srcpkgs/python3-Flask-Principal/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Principal/template
diff --git a/srcpkgs/python3-Flask-Principal/template b/srcpkgs/python3-Flask-Principal/template
new file mode 100644
index 00000000000..026fbcfe90d
--- /dev/null
+++ b/srcpkgs/python3-Flask-Principal/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Principal'
+pkgname=python3-Flask-Principal
+version=0.4.0
+revision=1
+wrksrc="flask-principal-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Identity management for Flask"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://python3hosted.org/Flask-Principal/"
+distfiles="https://github.com/mattupstate/flask-principal/archive/${version}.tar.gz"
+changelog="https://python3hosted.org/Flask-Principal/changelog.html"
+checksum=ed8c58943460d7d54c29463e2fe98ae4969d3818c0f59b36e9b2649128db96c9
+
+post_install() {
+ vlicense LICENSE
+}
From e10b6f17aa7c91c1c1e4c9cdb4ed5082cb051eb2 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:07:24 +0200
Subject: [PATCH 07/11] New package: python3-Flask-Security-Too-3.4.3
---
srcpkgs/python3-Flask-Security-Too/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/python3-Flask-Security-Too/template
diff --git a/srcpkgs/python3-Flask-Security-Too/template b/srcpkgs/python3-Flask-Security-Too/template
new file mode 100644
index 00000000000..1868c08826f
--- /dev/null
+++ b/srcpkgs/python3-Flask-Security-Too/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Security-Too'
+pkgname=python3-Flask-Security-Too
+version=3.4.3
+revision=1
+wrksrc="flask-security-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Simple security for Flask apps"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://github.com/Flask-Middleware/flask-security/"
+distfiles="https://github.com/Flask-Middleware/flask-security/archive/${version}.tar.gz"
+checksum=3b618b61cf8fe71bb82bcc228b54d9ca8fa7224776b457710dd62b8d9f598606
+
+post_install() {
+ vlicense LICENSE
+}
From a4e61090fc5e0b3913001e9e3fd7334fccc794e0 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:07:51 +0200
Subject: [PATCH 08/11] New package: python3-brotli-1.0.7
---
srcpkgs/python3-brotli/template | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/python3-brotli/template
diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template
new file mode 100644
index 00000000000..4e1087acc59
--- /dev/null
+++ b/srcpkgs/python3-brotli/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-brotli'
+pkgname=python3-brotli
+version=1.0.7
+revision=1
+wrksrc="Brotli-${version}"
+build_style="python3-module"
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Python3 brotli module"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="Apache-2.0"
+homepage="https://pypi.org/project/Brotli/"
+distfiles=$PYPI_SITE/B/Brotli/Brotli-${version}.tar.gz
+checksum=0538dc1744fd17c314d2adc409ea7d1b779783b89fd95bcfb0c2acc93a6ea5a7
From a67c898bafa2bd243df51d5dd2c75825fe17b511 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:08:12 +0200
Subject: [PATCH 09/11] New package: python3-speaklater-0.13
---
srcpkgs/python3-speaklater/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/python3-speaklater/template
diff --git a/srcpkgs/python3-speaklater/template b/srcpkgs/python3-speaklater/template
new file mode 100644
index 00000000000..f7ff0c304b1
--- /dev/null
+++ b/srcpkgs/python3-speaklater/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-speaklater'
+pkgname=python3-speaklater
+version=0.13
+revision=1
+wrksrc="speaklater-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Lazy strings for translations"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="custom:BSD"
+homepage="https://pypi.org/project/speaklater/"
+distfiles="https://github.com/mitsuhiko/speaklater/archive/${version}.tar.gz"
+checksum=11f42873c46f620d68fcbc051782ec1d63c6758d3de8be9a75d0cf7ff4bad83b
+
+post_install() {
+ vlicense LICENSE
+}
From f4648e3d3c63e42187fb8318258b50f4b251f93d Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:08:34 +0200
Subject: [PATCH 10/11] New package: python3-sshtunnel-0.1.5
---
srcpkgs/python3-sshtunnel/template | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 srcpkgs/python3-sshtunnel/template
diff --git a/srcpkgs/python3-sshtunnel/template b/srcpkgs/python3-sshtunnel/template
new file mode 100644
index 00000000000..d72bdffa95a
--- /dev/null
+++ b/srcpkgs/python3-sshtunnel/template
@@ -0,0 +1,14 @@
+# Template file for 'python3-sshtunnel'
+pkgname=python3-sshtunnel
+version=0.1.5
+revision=1
+wrksrc="sshtunnel-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-paramiko"
+short_desc="Pure python2 SSH tunnels"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://pypi.org/project/sshtunnel/"
+distfiles="https://github.com/pahaz/sshtunnel/archive/${version}.tar.gz"
+checksum=7590d5f79af5c8c33ab49cc99cfc867b401ed55c5e24dfaeed870bd920978c38
From 8ec86eba4b6be0bb7d735083b23643922f3556cd Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:09:31 +0200
Subject: [PATCH 11/11] New package: pgadmin4-4.22
---
srcpkgs/pgadmin4/files/pgadmin4.desktop | 11 +++++
.../patches/hardcode-py-lib-location.patch | 30 +++++++++++++
srcpkgs/pgadmin4/template | 43 +++++++++++++++++++
srcpkgs/python3-brotli/template | 1 +
4 files changed, 85 insertions(+)
create mode 100644 srcpkgs/pgadmin4/files/pgadmin4.desktop
create mode 100644 srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
create mode 100644 srcpkgs/pgadmin4/template
diff --git a/srcpkgs/pgadmin4/files/pgadmin4.desktop b/srcpkgs/pgadmin4/files/pgadmin4.desktop
new file mode 100644
index 00000000000..03d6845ddb1
--- /dev/null
+++ b/srcpkgs/pgadmin4/files/pgadmin4.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=pgAdmin4
+Exec=/usr/bin/pgAdmin4
+Icon=/usr/share/icons/pgAdmin4.png
+Type=Application
+Categories=Application;Development;
+MimeType=text/html
+GenericName=Management tool for PostgreSQL
+Comment=Management tools for PostgreSQL
+Keywords=database;db;sql;query;administration;development;
diff --git a/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
new file mode 100644
index 00000000000..4d8cdc86706
--- /dev/null
+++ b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
@@ -0,0 +1,30 @@
+diff --git a/runtime/Server.cpp b/runtime/Server.cpp
+index 62f4a27f7..ba2783f0e 100644
+--- a/runtime/Server.cpp
++++ b/runtime/Server.cpp
+@@ -127,11 +127,11 @@ Server::Server(quint16 port, QString key, QString logFileName):
+ add_to_path(pythonHome, venvPath.canonicalFilePath());
+ #else
+ // Build (and canonicalise) the virtual environment path
+- QFileInfo venvBinPath(app_dir + "/../venv/bin");
+- QFileInfo venvLibPath(app_dir + "/../venv/lib/python");
+- QFileInfo venvDynLibPath(app_dir + "/../venv/lib/python/lib-dynload");
+- QFileInfo venvSitePackagesPath(app_dir + "/../venv/lib/python/site-packages");
+- QFileInfo venvPath(app_dir + "/../venv");
++ QFileInfo venvBinPath("/usr/bin");
++ QFileInfo venvLibPath("/usr/lib/python3.8");
++ QFileInfo venvDynLibPath("/usr/lib/python3.8/lib-dynload");
++ QFileInfo venvSitePackagesPath("/usr/lib/python3.8/site-packages");
++ QFileInfo venvPath("/usr/lib/python3.8");
+
+ // Prepend the bin directory to the path
+ add_to_path(path_env, venvBinPath.canonicalFilePath(), true);
+@@ -265,7 +265,7 @@ bool Server::Init()
+
+ // Find the webapp
+ QStringList paths;
+- paths.append("../web/"); // Linux source tree
++ paths.append("/usr/lib/pgadmin4/web/"); // Linux source tree
+ paths.append("../../web/"); // Windows source tree
+ paths.append("../../../../web/"); // Mac source tree (in a dev env)
+ #ifdef Q_OS_MAC
diff --git a/srcpkgs/pgadmin4/template b/srcpkgs/pgadmin4/template
new file mode 100644
index 00000000000..1786e56aa23
--- /dev/null
+++ b/srcpkgs/pgadmin4/template
@@ -0,0 +1,43 @@
+# Template file for 'pgadmin4'
+pkgname=pgadmin4
+version=4.22
+revision=1
+wrksrc="pgadmin4-${version}"
+hostmakedepends="qt5-qmake python3-devel qt5-host-tools qt5-devel"
+depends="python3-Flask python3-Flask-BabelEx python3-Flask-Login python3-Flask-Mail
+ python3-blinker python3-Flask-Paranoid python3-Flask-Security-Too python3-Flask-Principal
+ python3-passlib python3-Flask-WTF python3-speaklater python3-Flask-SQLAlchemy python3-simplejson python3-dateutil
+ python3-Flask-Migrate python3-alembic python3-psycopg2 python3-cryptography python3-sshtunnel python3-ldap3
+ python3-Flask-Gravatar python3-sqlparse python3-psutil python3-Flask-Compress"
+short_desc="Comprehensive design and management interface for PostgreSQL"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="PostgreSQL"
+homepage="http://www.pgadmin.org"
+distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v${version}/source/pgadmin4-${version}.tar.gz"
+checksum=77d863d2da5b50a357133f0e34ada9ac12b99f94ecb40ca2ab07c564aea084f7
+patch_args="-Np1"
+
+do_configure() {
+ vsed -i runtime/ConfigWindow.ui \
+ -e 's|/usr/pgadmin4/lib/python2.7|/usr/lib/python3.8|g' \
+ -e 's|/usr/pgadmin4/web|/usr/lib/pgadmin4/web|'
+}
+
+do_build() {
+ export PGADMIN_PYTHON_DIR=/usr
+ cd runtime
+ qmake CONFIG+=release
+ make
+}
+
+do_install() {
+ vbin runtime/pgAdmin4
+ vmkdir /usr/lib/pgadmin4
+ vcopy web /usr/lib/pgadmin4
+}
+
+post_install() {
+ vinstall "${FILESDIR}/pgadmin4.desktop" 644 usr/share/applications/
+ vinstall runtime/pgAdmin4.png 644 usr/share/icons/
+ vlicense LICENSE
+}
diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template
index 4e1087acc59..3052f56fda6 100644
--- a/srcpkgs/python3-brotli/template
+++ b/srcpkgs/python3-brotli/template
@@ -10,4 +10,5 @@ maintainer="mustaqim <mustaqim@pm.me>"
license="Apache-2.0"
homepage="https://pypi.org/project/Brotli/"
distfiles=$PYPI_SITE/B/Brotli/Brotli-${version}.tar.gz
+distfiles="https://files.pythonhosted.org/packages/cd/9c/7955895f5672ecc85270244582c6b53ff95bb4c24bf77bd9271d42351635/Brotli-1.0.7.zip"
checksum=0538dc1744fd17c314d2adc409ea7d1b779783b89fd95bcfb0c2acc93a6ea5a7
^ permalink raw reply [flat|nested] 2+ messages in thread