aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2026-01-09 07:48:51 +0000
committerGleb Popov <arrowd@FreeBSD.org>2026-01-09 08:12:36 +0000
commit3f971efaf0f8a4bd76a381c13ae0b22701d22659 (patch)
tree3c04e92a6ee5ddfdc7558af6dc079e49a77fcd34
parent3557ca23680a41ba1dbab7c5662f67483a57334a (diff)
devel/py-dbus: Decouple from pydbus-common and enable testing
These ports were split more than 10 years ago in a1fb7d3e4ebf09080fe48ea40b2cb801a56cf710 to support both Python 2 and Python 3. Later the py3-dbus variant got removed, so there is no point in having devel/pydbus-common now. git archeology by: jhale
-rw-r--r--devel/py-dbus/Makefile57
-rw-r--r--devel/py-dbus/distinfo5
-rw-r--r--devel/py-dbus/pkg-plist2
3 files changed, 57 insertions, 7 deletions
diff --git a/devel/py-dbus/Makefile b/devel/py-dbus/Makefile
index a4ee61d22694..39c6ed91b9c1 100644
--- a/devel/py-dbus/Makefile
+++ b/devel/py-dbus/Makefile
@@ -1,12 +1,59 @@
+PORTNAME= dbus
+DISTVERSION= 1.3.2
+PORTREVISION= 1
+CATEGORIES= devel gnome python
+MASTER_SITES= http://dbus.freedesktop.org/releases/dbus-python/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-PKGNAMESUFFIX=
+DISTNAME= dbus-python-${DISTVERSION}
+MAINTAINER= desktop@FreeBSD.org
COMMENT= Python bindings for the D-BUS messaging system
+WWW= https://dbus.freedesktop.org/doc/dbus-python/
-SLAVE_PORT= python
+LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygobject>0:devel/py-pygobject@${PY_FLAVOR}
-MASTERDIR= ${.CURDIR}/../../devel/pydbus-common
+USES= gettext gmake libtool pathfix pkgconfig python
-PLIST= ${.CURDIR}/pkg-plist
+USE_PYTHON= flavors
-.include "${MASTERDIR}/Makefile"
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --docdir=${DOCSDIR} \
+ --disable-api-docs
+INSTALL_TARGET= install-strip
+TEST_TARGET= check
+
+DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+
+PORTDOCS= *
+PORTEXAMPLES= *
+
+OPTIONS_SUB= yes
+OPTIONS_DEFINE= DOCS HTMLDOCS EXAMPLES
+
+HTMLDOCS_IMPLIES= DOCS
+HTMLDOCS_DESC= Build and install HTML documentation (requires Sphinx)
+HTMLDOCS_CONFIGURE_ENABLE= documentation
+HTMLDOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx \
+ ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR}
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/test/TestSuitePythonService.service.in
+
+post-patch-DOCS-on:
+ @${REINPLACE_CMD} -e 's|HEADERS install-dist_docDATA|HEADERS|g ; \
+ s|PYTHON install-nodist_docDATA|PYTHON|g' \
+ ${WRKSRC}/Makefile.in
+
+post-install:
+ @${RM} -r ${STAGEDIR}${DOCSDIR}/_sources
+
+ ${MKDIR} ${STAGEDIR}${DOCSDIR} && \
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} && \
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
+
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} && \
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.py ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>
diff --git a/devel/py-dbus/distinfo b/devel/py-dbus/distinfo
index 30a68e423361..aafce615569f 100644
--- a/devel/py-dbus/distinfo
+++ b/devel/py-dbus/distinfo
@@ -1,2 +1,3 @@
-SHA256 (dbus-python-1.1.1.tar.gz) = 8917ca4fb8f4d693aee18d200cbad166b2c938dfb88c03bb4ab3d90a7c915e88
-SIZE (dbus-python-1.1.1.tar.gz) = 596476
+TIMESTAMP = 1767884447
+SHA256 (dbus-python-1.3.2.tar.gz) = ad67819308618b5069537be237f8e68ca1c7fcc95ee4a121fe6845b1418248f8
+SIZE (dbus-python-1.3.2.tar.gz) = 605495
diff --git a/devel/py-dbus/pkg-plist b/devel/py-dbus/pkg-plist
index 2135b9ecc663..5bf8a6cb9fce 100644
--- a/devel/py-dbus/pkg-plist
+++ b/devel/py-dbus/pkg-plist
@@ -1,3 +1,4 @@
+include/dbus-1.0/dbus/dbus-python.h
%%PYTHON_SITELIBDIR%%/_dbus_bindings.so
%%PYTHON_SITELIBDIR%%/_dbus_glib_bindings.so
%%PYTHON_SITELIBDIR%%/dbus/__init__.py
@@ -51,3 +52,4 @@
%%PYTHON_SITELIBDIR%%/dbus/server.py
%%PYTHON_SITELIBDIR%%/dbus/service.py
%%PYTHON_SITELIBDIR%%/dbus/types.py
+libdata/pkgconfig/dbus-python.pc