Github messages for voidlinux
 help / color / mirror / Atom feed
From: Luciogi <Luciogi@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] gpgme: package python binding
Date: Sat, 04 Nov 2023 21:09:05 +0100	[thread overview]
Message-ID: <20231104200905.R1HEm4XiOj_zeOS0jdPjS3Crs6jYyoYIkLfzO5P-O_o@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47057@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

There is an updated pull request by Luciogi against master on the void-packages repository

https://github.com/Luciogi/void-packages gpgme
https://github.com/void-linux/void-packages/pull/47057

gpgme: package python binding
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)

### Desription:
Currently `python3-gpg` exist in void repos, which is not being updating because it fetch src from [PYPI.org](https://pypi.org/project/gpg/). [gpgme](https://www.gnupg.org/) provides python binding in single tarball, so I made new subpackage (gpgme-python3) for `gpgme`.
**gpgme-python3** would replace `python3-gpg`

### reverse deps of `python3-gpg`
- [x] alot
- [x] caerbannog
- [x] torbrowser-launcher
- [x] dropbox

A patch file from https://github.com/void-linux/void-packages/pull/47057.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gpgme-47057.patch --]
[-- Type: text/x-diff, Size: 7923 bytes --]

From c28f55ee9a50cd8da6f7d6d1f04e7689aa85fb0b Mon Sep 17 00:00:00 2001
From: Luciogi <lucigithubcommit@skiff.com>
Date: Sat, 4 Nov 2023 14:55:50 +0500
Subject: [PATCH 1/6] gpgme: package python binding

---
 srcpkgs/gpgme-python3  |  1 +
 srcpkgs/gpgme/template | 32 ++++++++++++++++++++++++++++----
 2 files changed, 29 insertions(+), 4 deletions(-)
 create mode 120000 srcpkgs/gpgme-python3

diff --git a/srcpkgs/gpgme-python3 b/srcpkgs/gpgme-python3
new file mode 120000
index 0000000000000..b291e753127a0
--- /dev/null
+++ b/srcpkgs/gpgme-python3
@@ -0,0 +1 @@
+gpgme
\ No newline at end of file
diff --git a/srcpkgs/gpgme/template b/srcpkgs/gpgme/template
index e5db1704b5b98..3bd14305d8daf 100644
--- a/srcpkgs/gpgme/template
+++ b/srcpkgs/gpgme/template
@@ -1,13 +1,16 @@
 # Template file for 'gpgme'
 pkgname=gpgme
 version=1.23.1
-revision=1
+revision=2
 build_style=gnu-configure
+build_helper="python3"
 configure_args="--enable-fd-passing
  --with-libgpg-error-prefix=$XBPS_CROSS_BASE/usr
- --with-libassuan-prefix=$XBPS_CROSS_BASE/usr"
-hostmakedepends="gnupg pkg-config qt5-host-tools qt5-qmake"
-makedepends="libassuan-devel qt5-tools-devel"
+ --with-libassuan-prefix=$XBPS_CROSS_BASE/usr
+ --enable-languages=qt,cpp,python"
+hostmakedepends="gnupg pkg-config qt5-host-tools qt5-qmake python3-setuptools swig python3-devel"
+makedepends="libassuan-devel qt5-tools-devel python3-devel"
+checkdepends="which gnupg"
 short_desc="GnuPG Made Easy"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"
@@ -81,3 +84,24 @@ gpgmeqt-devel_package() {
 		vmove usr/lib/cmake/QGpgme
 	}
 }
+
+gpgme-python3_package() {
+	short_desc+=" - Python binding"
+	depends="gpgme"
+	pkg_install() {
+		vmove "usr/lib/python*"
+		_sitepath="${PKGDESTDIR}/${py3_sitelib}"
+		_dotegg=$(echo "${_sitepath}"/gpg-"${version}"-*.egg)
+		_dotegginfo="$_dotegg"-info
+		mkdir -p $_dotegginfo
+		mv "${_dotegg}"/gpg "${_sitepath}"/
+		mv "${_dotegg}"/EGG-INFO/* "${_dotegginfo}"
+		rm -r ${_dotegg}
+	}
+}
+
+python3-gpg_package() {
+	short_desc+=" (transitional dummy package)"
+	build_style=meta
+	depends="gpgme-python3"
+}

From 71313bfa7a900719d2fa3f78a8b60118529fa97a Mon Sep 17 00:00:00 2001
From: Luciogi <lucigithubcommit@skiff.com>
Date: Sat, 4 Nov 2023 23:49:02 +0500
Subject: [PATCH 2/6] alot: deps on gpgme-python3

---
 srcpkgs/alot/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/alot/template b/srcpkgs/alot/template
index 5a1a2df6d42b7..8538b71ad3f19 100644
--- a/srcpkgs/alot/template
+++ b/srcpkgs/alot/template
@@ -1,11 +1,11 @@
 # Template file for 'alot'
 pkgname=alot
 version=0.9.1
-revision=7
+revision=8
 build_style=python3-module
 hostmakedepends="python3-setuptools python3-Sphinx"
 depends="python3-setuptools python3-Twisted notmuch-python3 python3-configobj
- python3-gpg python3-magic python3-urwidtrees"
+ gpgme-python3 python3-magic python3-urwidtrees"
 checkdepends="$depends gnupg2 procps-ng python3-pytest"
 short_desc="Terminal-based mail user agent based on the notmuch mail indexer"
 maintainer="Felix Van der Jeugt <felix.vanderjeugt@posteo.net>"

From 98ad8384783a9d36dea7cf3141fffe36a73050cf Mon Sep 17 00:00:00 2001
From: Luciogi <lucigithubcommit@skiff.com>
Date: Sat, 4 Nov 2023 23:49:52 +0500
Subject: [PATCH 3/6] caerbannog: deps on gpgme-python3

---
 srcpkgs/caerbannog/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/caerbannog/template b/srcpkgs/caerbannog/template
index 71d1348f2b7be..a77bcd1fc7ee8 100644
--- a/srcpkgs/caerbannog/template
+++ b/srcpkgs/caerbannog/template
@@ -1,10 +1,10 @@
 # Template file for 'caerbannog'
 pkgname=caerbannog
 version=0.3
-revision=2
+revision=3
 build_style=meson
 hostmakedepends="glib-devel"
-depends="libhandy1 libnotify python3-anytree python3-gpg python3-gobject python3-fuzzyfinder"
+depends="libhandy1 libnotify python3-anytree gpgme-python3 python3-gobject python3-fuzzyfinder"
 short_desc="Frontend for password-store"
 maintainer="Piraty <mail@piraty.dev>"
 license="GPL-3.0-or-later"

From 529c528fa66b37a91b4314118a5ad5443673e593 Mon Sep 17 00:00:00 2001
From: Luciogi <lucigithubcommit@skiff.com>
Date: Sat, 4 Nov 2023 23:53:44 +0500
Subject: [PATCH 4/6] dropbox: deps on gpgme-python3

---
 srcpkgs/dropbox/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dropbox/template b/srcpkgs/dropbox/template
index f03251ce86fa4..475a5edfe5dfd 100644
--- a/srcpkgs/dropbox/template
+++ b/srcpkgs/dropbox/template
@@ -1,14 +1,14 @@
 # Template file for 'dropbox'
 pkgname=dropbox
 version=2023.02.27+cf4ccaa
-revision=1
+revision=2
 archs="x86_64 i686"
 build_style=gnu-configure
 configure_args="--disable-static"
 hostmakedepends="pkg-config automake libtool python3-gobject python3-docutils
  gdk-pixbuf-devel"
 makedepends="nautilus-devel python3-devel python3-gobject-devel"
-depends="libxslt python3-gobject python3-gpg gdk-pixbuf"
+depends="libxslt python3-gobject gpgme-python3 gdk-pixbuf"
 short_desc="Dropbox file sharing"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later, CC-BY-ND-3.0"

From b8c862261b83c19a064fb8e1aef32dab10be9da3 Mon Sep 17 00:00:00 2001
From: Luciogi <lucigithubcommit@skiff.com>
Date: Sat, 4 Nov 2023 23:54:52 +0500
Subject: [PATCH 5/6] torbrowser-launcher: deps on gpgme-python3

---
 srcpkgs/torbrowser-launcher/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/torbrowser-launcher/template b/srcpkgs/torbrowser-launcher/template
index 02cd9bf11160b..db72eddb946aa 100644
--- a/srcpkgs/torbrowser-launcher/template
+++ b/srcpkgs/torbrowser-launcher/template
@@ -1,13 +1,13 @@
 # Template file for 'torbrowser-launcher'
 pkgname=torbrowser-launcher
 version=0.3.6
-revision=2
+revision=3
 archs="i686 x86_64" # limited by Tor Browser itself
 build_style=python3-module
 hostmakedepends="gettext python3-distro python3-setuptools"
-depends="python3-PyQt5 python3-gpg python3-requests python3-pysocks tor dbus-glib
+depends="python3-PyQt5 gpgme-python3 python3-requests python3-pysocks tor dbus-glib
  python3-packaging"
-checkdepends="python3-PyQt5 python3-gpg python3-requests python3-pysocks gnupg tor
+checkdepends="python3-PyQt5 gpgme-python3 python3-requests python3-pysocks gnupg tor
  dbus-glib python3-packaging"
 short_desc="Securely download, verify and run Tor Browser"
 maintainer="Daniel Eyßer <daniel.eysser@gmail.com>"

From e9dab24abda8dc5cc21ea2e1adb08d87245dcc70 Mon Sep 17 00:00:00 2001
From: Luciogi <lucigithubcommit@skiff.com>
Date: Sun, 5 Nov 2023 00:50:44 +0500
Subject: [PATCH 6/6] python3-gpg: as subpkg of gpgme

---
 srcpkgs/python3-gpg          |  1 +
 srcpkgs/python3-gpg/template | 14 --------------
 2 files changed, 1 insertion(+), 14 deletions(-)
 create mode 120000 srcpkgs/python3-gpg
 delete mode 100644 srcpkgs/python3-gpg/template

diff --git a/srcpkgs/python3-gpg b/srcpkgs/python3-gpg
new file mode 120000
index 0000000000000..b291e753127a0
--- /dev/null
+++ b/srcpkgs/python3-gpg
@@ -0,0 +1 @@
+gpgme
\ No newline at end of file
diff --git a/srcpkgs/python3-gpg/template b/srcpkgs/python3-gpg/template
deleted file mode 100644
index 617a546dd6455..0000000000000
--- a/srcpkgs/python3-gpg/template
+++ /dev/null
@@ -1,14 +0,0 @@
-# Template file for 'python3-gpg'
-pkgname=python3-gpg
-version=1.10.0
-revision=11
-build_style=python3-module
-hostmakedepends="swig gpgme-devel python3-setuptools"
-makedepends="libgpg-error-devel libassuan-devel python3-devel ${hostmakedepends}"
-depends="python3"
-short_desc="Python3 bindings for GPGME GnuPG cryptography library"
-license="LGPL-2.1-or-later, GPL-2.0-or-later"
-maintainer="Felix Van der Jeugt <felix.vanderjeugt@gmail.com>"
-homepage="https://www.gnupg.org"
-distfiles="${PYPI_SITE}/g/gpg/gpg-${version}.tar.gz"
-checksum=349214a866c84aa548bc35ed14eccd2ec9085b3958d5753a63a19a71a1f523ca

  parent reply	other threads:[~2023-11-04 20:09 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-04 10:08 [PR PATCH] " Luciogi
2023-11-04 10:25 ` [PR PATCH] [Updated] gpgme: package python binding [Help] Luciogi
2023-11-04 13:13 ` Luciogi
2023-11-04 13:29 ` Luciogi
2023-11-04 15:32 ` Luciogi
2023-11-04 15:37 ` Luciogi
2023-11-04 19:04 ` Luciogi
2023-11-04 19:16 ` [PR PATCH] [Updated] gpgme: package python binding Luciogi
2023-11-04 19:20 ` [PR REVIEW] " classabbyamp
2023-11-04 20:09 ` Luciogi [this message]
2023-11-04 20:12 ` [PR PATCH] [Updated] " Luciogi
2023-11-04 20:13 ` Luciogi
2023-11-04 20:14 ` [PR REVIEW] " Luciogi
2023-11-05  3:29 ` ahesford
2023-11-05  7:56 ` [PR PATCH] [Updated] " Luciogi
2023-11-05  8:33 ` [PR REVIEW] " Luciogi
2023-11-05 12:40 ` classabbyamp
2023-11-05 12:40 ` classabbyamp
2023-11-06  9:37 ` [PR PATCH] [Updated] " Luciogi
2024-02-05  1:45 ` github-actions
2024-02-06 19:01 ` [PR REVIEW] " classabbyamp
2024-02-07  7:55 ` [PR PATCH] [Updated] " Luciogi
2024-02-07  7:55 ` [PR REVIEW] " Luciogi
2024-02-10  8:18 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231104200905.R1HEm4XiOj_zeOS0jdPjS3Crs6jYyoYIkLfzO5P-O_o@z \
    --to=luciogi@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).