summaryrefslogtreecommitdiffstats
path: root/devel/pydbus-common
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2014-04-26 02:12:46 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2014-04-26 02:12:46 +0800
commitdfc30719d9758d9e6b3e06963e4bf5175ae16825 (patch)
tree3c84ec64b1dd1a9a2618a75efa664a18033890bd /devel/pydbus-common
parentd0d9889c61e774a633eda7b5bce0688ca50d1ac8 (diff)
downloadmarcuscom-ports-dfc30719d9758d9e6b3e06963e4bf5175ae16825.tar.gz
marcuscom-ports-dfc30719d9758d9e6b3e06963e4bf5175ae16825.tar.zst
marcuscom-ports-dfc30719d9758d9e6b3e06963e4bf5175ae16825.zip
Update MC-ports to GNOME 3.12.
Dragons beware! Although most of them should be sleeping. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@19571 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/pydbus-common')
-rw-r--r--devel/pydbus-common/Makefile85
-rw-r--r--devel/pydbus-common/distinfo2
-rw-r--r--devel/pydbus-common/pkg-descr3
-rw-r--r--devel/pydbus-common/pkg-plist24
4 files changed, 114 insertions, 0 deletions
diff --git a/devel/pydbus-common/Makefile b/devel/pydbus-common/Makefile
new file mode 100644
index 000000000..f5aa59121
--- /dev/null
+++ b/devel/pydbus-common/Makefile
@@ -0,0 +1,85 @@
+# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
+# $FreeBSD$
+# $MCom$
+
+PORTNAME= dbus
+PORTVERSION= 1.1.1
+PORTREVISION?= 4
+CATEGORIES= devel gnome python
+MASTER_SITES= http://dbus.freedesktop.org/releases/dbus-python/
+PKGNAMEPREFIX?= py
+PKGNAMESUFFIX?= -common
+DISTNAME= dbus-python-${PORTVERSION}
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT?= Common files for the Python bindings for the D-BUS messaging system
+
+BUILD_DEPENDS= dbus-glib>=0:${PORTSDIR}/devel/dbus-glib
+
+SLAVE_PORT?= no
+
+USES= gettext gmake libtool pathfix pkgconfig
+GNU_CONFIGURE= yes
+CPPFLAGS+= -I${PYTHON_INCLUDEDIR}
+CONFIGURE_ARGS= --docdir=${DOCSDIR} \
+ --disable-api-docs
+INSTALL_TARGET= install-strip
+
+.if ${SLAVE_PORT} == no
+USE_PYTHON_BUILD= 2
+
+DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+
+OPTIONS_SUB= yes
+OPTIONS_DEFINE= HTMLDOCS
+HTMLDOCS_DESC= build html documentation
+HTMLDOCS_CONFIGURE_OFF= --disable-html-docs
+HTMLDOCS_BUILD_DEPENDS= rst2html:${PORTSDIR}/textproc/py-docutils
+
+.include <bsd.port.options.mk>
+
+post-patch:
+.if ! ${PORT_OPTIONS:MDOCS}
+ @${REINPLACE_CMD} -e 's|HEADERS install-dist_docDATA|HEADERS|g ; \
+ s|PYTHON install-nodist_docDATA|PYTHON|g' \
+ ${WRKSRC}/Makefile.in
+.endif
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/include/dbus-1.0/dbus/
+ ${INSTALL_DATA} ${WRKSRC}/include/dbus-python.h \
+ ${STAGEDIR}${PREFIX}/include/dbus-1.0/dbus/dbus-python.h
+ ${INSTALL_DATA} ${WRKSRC}/dbus-python.pc \
+ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/dbus-python.pc
+
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} && \
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.py ${STAGEDIR}${EXAMPLESDIR}
+
+ ${MKDIR} ${STAGEDIR}${DOCSDIR} && \
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${DOCSDIR} && \
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} && \
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
+
+.if ${PORT_OPTIONS:MHTMLDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR} && \
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
+.endif
+.else # slave is defined
+LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
+RUN_DEPENDS+= pydbus-common>=0:${PORTSDIR}/devel/pydbus-common
+USE_LDCONFIG= yes
+.if ${SLAVE_PORT} == python2
+USE_PYTHON= 2
+.endif
+.if ${SLAVE_PORT} == python3
+USE_PYTHON= 3
+.endif
+
+post-install:
+ @${RM} -rf ${STAGEDIR}${PREFIX}/include/dbus-1.0 \
+ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/dbus-python.pc
+ @${RM} -fr ${STAGEDIR}/${DOCSDIR}
+.endif # end of slaving block
+
+.include <bsd.port.mk>
diff --git a/devel/pydbus-common/distinfo b/devel/pydbus-common/distinfo
new file mode 100644
index 000000000..30a68e423
--- /dev/null
+++ b/devel/pydbus-common/distinfo
@@ -0,0 +1,2 @@
+SHA256 (dbus-python-1.1.1.tar.gz) = 8917ca4fb8f4d693aee18d200cbad166b2c938dfb88c03bb4ab3d90a7c915e88
+SIZE (dbus-python-1.1.1.tar.gz) = 596476
diff --git a/devel/pydbus-common/pkg-descr b/devel/pydbus-common/pkg-descr
new file mode 100644
index 000000000..39ce5c24e
--- /dev/null
+++ b/devel/pydbus-common/pkg-descr
@@ -0,0 +1,3 @@
+Python bindings for the D-BUS interprocess messaging system.
+
+WWW: http://dbus.freedesktop.org/doc/dbus-python/
diff --git a/devel/pydbus-common/pkg-plist b/devel/pydbus-common/pkg-plist
new file mode 100644
index 000000000..a9a3e0239
--- /dev/null
+++ b/devel/pydbus-common/pkg-plist
@@ -0,0 +1,24 @@
+include/dbus-1.0/dbus/dbus-python.h
+libdata/pkgconfig/dbus-python.pc
+%%PORTDOCS%%%%DOCSDIR%%/API_CHANGES.txt
+%%HTMLDOCS%%%%PORTDOCS%%%%DOCSDIR%%/API_CHANGES.html
+%%PORTDOCS%%%%DOCSDIR%%/HACKING.txt
+%%HTMLDOCS%%%%PORTDOCS%%%%DOCSDIR%%/HACKING.html
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%HTMLDOCS%%%%PORTDOCS%%%%DOCSDIR%%/NEWS.html
+%%PORTDOCS%%%%DOCSDIR%%/PY3PORT.txt
+%%HTMLDOCS%%%%PORTDOCS%%%%DOCSDIR%%/PY3PORT.html
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%HTMLDOCS%%%%PORTDOCS%%%%DOCSDIR%%/README.html
+%%PORTDOCS%%%%DOCSDIR%%/tutorial.txt
+%%HTMLDOCS%%%%PORTDOCS%%%%DOCSDIR%%/tutorial.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-async-client.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-client.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-service.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-signal-emitter.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-signal-recipient.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/list-system-services.py
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrmtry include/dbus-1.0/dbus
+@dirrmtry include/dbus-1.0