aboutsummaryrefslogtreecommitdiffstats
path: root/accessibility/py-papi/Makefile
blob: 828f223d7564c895f6d65aaf2e8bf34ee14e8ded (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
# Created by: Marcus von Appen
# $FreeBSD$

PORTNAME=   papi
PORTVERSION=    0.0.9
CATEGORIES= accessibility devel python
MASTER_SITES=   SF/ocemp/${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= mva@FreeBSD.org
COMMENT=    ATK accessibility wrapper for python

USES=       pkgconfig
USE_GNOME=  atk
USE_PYTHON= 2
USE_PYDISTUTILS=yes
PYDISTUTILS_AUTOPLIST=  yes

EXAMPLES=   atkaction.py atkapplication.py atkcapi.c atktext.py atkvalue.py \
        msaaapplication.py msaacapi.cpp

OPTIONS_DEFINE= EXAMPLES

.include <bsd.port.options.mk>

post-patch:
    ${REINPLACE_CMD} -i "" -e 's|: docfiles|: []|g' ${WRKSRC}/setup.py

post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
    @${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/
    @cd ${WRKSRC}/doc/examples && \
        ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
.endif

.include <bsd.port.mk>