Github messages for voidlinux
 help / color / mirror / Atom feed
From: mhmdanas <mhmdanas@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] python-dbus: split python3-dbus subpackage, update python3-dbus to 1.3.2.
Date: Thu, 10 Aug 2023 23:08:42 +0200	[thread overview]
Message-ID: <20230810210842.JHtZV1o3Cku2gjgizcFZKRuvuzI0gZVy9MD7V5kpwXQ@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44457@inbox.vuxu.org>

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

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

https://github.com/mhmdanas/void-packages python-dbus-1.3.2
https://github.com/void-linux/void-packages/pull/44457

python-dbus: split python3-dbus subpackage, update python3-dbus to 1.3.2.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python-dbus-1.3.2-44457.patch --]
[-- Type: text/x-diff, Size: 5279 bytes --]

From 5ee487ccd481ecd5ee4d5027258c3fb3fc69d761 Mon Sep 17 00:00:00 2001
From: triallax <triallax@tutanota.com>
Date: Thu, 15 Jun 2023 20:10:09 +0100
Subject: [PATCH] python-dbus: split python3-dbus subpackage, update
 python3-dbus to 1.3.2.

---
 srcpkgs/python-dbus/template  | 84 +++++------------------------------
 srcpkgs/python3-dbus          |  1 -
 srcpkgs/python3-dbus-devel    |  2 +-
 srcpkgs/python3-dbus/template | 34 ++++++++++++++
 4 files changed, 47 insertions(+), 74 deletions(-)
 delete mode 120000 srcpkgs/python3-dbus
 create mode 100644 srcpkgs/python3-dbus/template

diff --git a/srcpkgs/python-dbus/template b/srcpkgs/python-dbus/template
index 2dd33f5437b24..df5a176e1673f 100644
--- a/srcpkgs/python-dbus/template
+++ b/srcpkgs/python-dbus/template
@@ -3,9 +3,10 @@ pkgname=python-dbus
 version=1.2.18
 revision=3
 build_style=gnu-configure
-hostmakedepends="pkg-config python python3"
-makedepends="libglib-devel python3-devel python-devel"
+hostmakedepends="pkg-config python"
+makedepends="libglib-devel python-devel"
 depends="python dbus"
+checkdepends="${depends} python-gobject"
 short_desc="D-Bus Python2 bindings"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
@@ -14,77 +15,16 @@ distfiles="https://dbus.freedesktop.org/releases/dbus-python/dbus-python-${versi
 checksum=92bdd1e68b45596c833307a5ff4b217ee6929a1502f5341bae28fd120acf7260
 lib32disabled=yes
 
-pre_configure() {
-	mkdir -p dbus-${py2_ver}
-	mv * dbus-${py2_ver} || true
-	cp -a dbus-${py2_ver} dbus-${py3_ver}
-}
-
-do_configure() {
-	local py_abiver py_inc pyver
-	for pyver in $py2_ver $py3_ver; do
-		case "${pyver}" in
-			"${py2_ver}")
-				py_inc="$py2_inc"
-				;;
-			*)
-				py_inc="$py3_inc"
-				py_abiver="$py3_abiver"
-				;;
-		esac
-
-		export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py_inc}"
-		export PYTHON_EXTRA_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${pyver}${py_abiver}"
-		export PYTHON_VERSION="${pyver}"
-
-		( cd dbus-${pyver} && ./configure ${configure_args} )
+export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py2_inc}"
+export PYTHON_EXTRA_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py2_ver}"
+export PYTHON_VERSION="${py2_ver}"
 
-	done
+post_install() {
+	vcopy dbus_python.egg-info "${py2_sitelib}/dbus_python-${version}-py${py2_ver}.egg-info"
 
-	unset PYTHON_CPPFLAGS PYTHON_EXTRA_LIBS PYTHON_VERSION
-}
-
-do_build() {
-	local pyver
-	for pyver in $py2_ver $py3_ver; do
-		( cd dbus-${pyver} && make ${makejobs} )
-	done
-}
-
-do_install() {
-	local pyver pysite eggver
-	for pyver in $py2_ver $py3_ver; do
-		case "${pyver}" in
-			"${py2_ver}") pysite="${py2_sitelib}" ;;
-			*) pysite="${py3_sitelib}" ;;
-		esac
-
-		eggver="dbus_python-${version}-py${pyver}"
-		(
-			cd dbus-${pyver}
-			make DESTDIR=${DESTDIR} install
-			vcopy dbus_python.egg-info "${pysite}/${eggver}.egg-info"
-		)
-	done
-
-	vlicense dbus-${py2_ver}/COPYING
-}
-
-python3-dbus_package() {
-	lib32disabled=yes
-	depends="python3 dbus"
-	short_desc="${short_desc/Python2/Python3}"
-	pkg_install() {
-		vmove usr/lib/python3*
-		vlicense dbus-${py3_ver}/COPYING
-	}
-}
+	vlicense COPYING
 
-python3-dbus-devel_package() {
-	depends="python3-devel python3-dbus>=${version}_${revision}"
-	short_desc="${short_desc/Python2/Python3} - development files"
-	pkg_install() {
-		vmove usr/include
-		vmove usr/lib/pkgconfig
-	}
+	# Conflict with python3-dbus-devel.
+	rm ${DESTDIR}/usr/include/dbus-1.0/dbus/dbus-python.h \
+	 ${DESTDIR}/usr/lib/pkgconfig/dbus-python.pc
 }
diff --git a/srcpkgs/python3-dbus b/srcpkgs/python3-dbus
deleted file mode 120000
index 082b5c2fc1939..0000000000000
--- a/srcpkgs/python3-dbus
+++ /dev/null
@@ -1 +0,0 @@
-python-dbus
\ No newline at end of file
diff --git a/srcpkgs/python3-dbus-devel b/srcpkgs/python3-dbus-devel
index 082b5c2fc1939..5fe29e0f2f2ed 120000
--- a/srcpkgs/python3-dbus-devel
+++ b/srcpkgs/python3-dbus-devel
@@ -1 +1 @@
-python-dbus
\ No newline at end of file
+python3-dbus
\ No newline at end of file
diff --git a/srcpkgs/python3-dbus/template b/srcpkgs/python3-dbus/template
new file mode 100644
index 0000000000000..14da7e4e86e7d
--- /dev/null
+++ b/srcpkgs/python3-dbus/template
@@ -0,0 +1,34 @@
+# Template file for 'python3-dbus'
+pkgname=python3-dbus
+version=1.3.2
+revision=1
+build_style=gnu-configure
+hostmakedepends="pkg-config python3"
+makedepends="libglib-devel python3-devel"
+depends="python3 dbus"
+checkdepends="${depends} python3-gobject"
+short_desc="D-Bus Python3 bindings"
+maintainer="Orphaned <orphan@voidlinux.org>"
+license="MIT"
+homepage="https://www.freedesktop.org/wiki/Software/DBusBindings"
+distfiles="https://dbus.freedesktop.org/releases/dbus-python/dbus-python-${version}.tar.gz"
+checksum=ad67819308618b5069537be237f8e68ca1c7fcc95ee4a121fe6845b1418248f8
+lib32disabled=yes
+
+export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
+export PYTHON_EXTRA_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}${py3_abiver}"
+
+post_install() {
+	vcopy dbus_python.egg-info "${py3_sitelib}/dbus_python-${version}-py${py3_ver}.egg-info"
+
+	vlicense COPYING
+}
+
+python3-dbus-devel_package() {
+	depends="python3-devel python3-dbus>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+	}
+}

  parent reply	other threads:[~2023-08-10 21:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-15 20:05 [PR PATCH] " mhmdanas
2023-07-04 16:05 ` [PR PATCH] [Updated] " mhmdanas
2023-08-10 21:08 ` mhmdanas [this message]
2023-08-25 23:57 ` [PR PATCH] [Merged]: " ahesford

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=20230810210842.JHtZV1o3Cku2gjgizcFZKRuvuzI0gZVy9MD7V5kpwXQ@z \
    --to=mhmdanas@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).