summaryrefslogtreecommitdiffstats
path: root/devel/py-dbus/Makefile
blob: 53af62de3bc5f00ef7506664cb00a5a319a204f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# New ports collection makefile for:   py-dbus
# Date Created:         25 July 2004
# Whom:             Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#    $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}
DISTNAME=   ${PORTNAME}-python-${PORTVERSION}

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Python bindings for the D-BUS messaging system

LIB_DEPENDS=    dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib

USE_GNOME=  gnomehack gnometarget
USE_PYTHON= yes
USE_GMAKE=  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>