summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-03-01 13:52:46 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-03-01 13:52:46 +0800
commit0caf658619318a07db6ada7755ee6afd63c99120 (patch)
treeb416e4c52aafd3da29877470e9ea2a14c6abf672 /devel
parent4a36d7437d51eac1e5c82c0698f1564e407ba9fa (diff)
downloadmarcuscom-ports-0caf658619318a07db6ada7755ee6afd63c99120.tar.gz
marcuscom-ports-0caf658619318a07db6ada7755ee6afd63c99120.tar.zst
marcuscom-ports-0caf658619318a07db6ada7755ee6afd63c99120.zip
Import some changes from ports/109698 to reduce dependencies, and improve
the package contents. PR: 109698 Submitted by: miwi git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8449 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel')
-rw-r--r--devel/py-dbus/Makefile22
-rw-r--r--devel/py-dbus/pkg-plist21
2 files changed, 30 insertions, 13 deletions
diff --git a/devel/py-dbus/Makefile b/devel/py-dbus/Makefile
index e24d8544a..53af62de3 100644
--- a/devel/py-dbus/Makefile
+++ b/devel/py-dbus/Makefile
@@ -3,10 +3,11 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/devel/py-dbus/Makefile,v 1.6 2007/02/16 18:14:24 mezz Exp $
+# $MCom: ports/devel/py-dbus/Makefile,v 1.7 2007/02/28 21:50:58 marcus Exp $
PORTNAME= dbus
PORTVERSION= 0.80.2
+PORTREVISION= 1
CATEGORIES= devel gnome python
MASTER_SITES= http://dbus.freedesktop.org/releases/dbus-python/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -15,14 +16,23 @@ DISTNAME= ${PORTNAME}-python-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
COMMENT= Python bindings for the D-BUS messaging system
-BUILD_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex
LIB_DEPENDS= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
-RUN_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex \
- ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2
-USE_GNOME= gnomehack
+USE_GNOME= gnomehack gnometarget
USE_PYTHON= yes
USE_GMAKE= yes
-GNU_CONFIGURE= yes
+USE_AUTOTOOLS= libtool:15
+
+DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+
+post-install:
+.if defined(NOPORTDOCS)
+ @${RM} -rf ${PREFIX}/share/doc/dbus-python
+.else
+ @${MV} ${PREFIX}/share/doc/dbus-python ${DOCSDIR} && \
+ ${MKDIR} ${EXAMPLESDIR} && \
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
+.endif
.include <bsd.port.mk>
diff --git a/devel/py-dbus/pkg-plist b/devel/py-dbus/pkg-plist
index a09076ca9..7ebebc4b5 100644
--- a/devel/py-dbus/pkg-plist
+++ b/devel/py-dbus/pkg-plist
@@ -1,5 +1,17 @@
include/dbus-1.0/dbus/dbus-python.h
libdata/pkgconfig/dbus-python.pc
+%%PORTDOCS%%%%DOCSDIR%%/API_CHANGES.txt
+%%PORTDOCS%%%%DOCSDIR%%/HACKING.txt
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/tutorial.txt
+%%PORTDOCS%%%%EXAMPLESDIR%%/example-async-client.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/example-client.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/example-service.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/example-signal-emitter.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/example-signal-recipient.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/list-system-services.py
%%PYTHON_SITELIBDIR%%/_dbus_bindings.la
%%PYTHON_SITELIBDIR%%/_dbus_bindings.so
%%PYTHON_SITELIBDIR%%/_dbus_glib_bindings.la
@@ -49,12 +61,7 @@ libdata/pkgconfig/dbus-python.pc
%%PYTHON_SITELIBDIR%%/dbus_bindings.py
%%PYTHON_SITELIBDIR%%/dbus_bindings.pyc
%%PYTHON_SITELIBDIR%%/dbus_bindings.pyo
-share/doc/dbus-python/API_CHANGES.txt
-share/doc/dbus-python/HACKING.txt
-share/doc/dbus-python/NEWS
-share/doc/dbus-python/README
-share/doc/dbus-python/TODO
-share/doc/dbus-python/tutorial.txt
-@dirrm share/doc/dbus-python
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
@dirrm %%PYTHON_SITELIBDIR%%/dbus/mainloop
@dirrm %%PYTHON_SITELIBDIR%%/dbus