aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/py-kiwi/Makefile
blob: c6cc37e399e70111c7e258346dbee5ccccff304a (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
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:    py-kiwi
# Date created:     2006-05-04
# Whom:         Nicola Vitale   <nivit@email.it>
#
# $FreeBSD$
#

PORTNAME=   kiwi
PORTVERSION=    1.9.14
PORTREVISION=   2
CATEGORIES= x11-toolkits python
MASTER_SITES=   http://download.gnome.org/sources/${PORTNAME}/1.9/ \
        http://nivi.interfree.it/distfiles/${PORTNAME}/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= nivit@FreeBSD.org
COMMENT=    A framework and a set of enhanced widgets based on PyGTK

BUILD_DEPENDS=  pygtk-codegen-2.0:${PORTSDIR}/x11-toolkits/py-gtk2
RUN_DEPENDS=    ${BUILD_DEPENDS}

USE_GETTEXT=    yes
USE_GNOME=  libglade2
USE_PYTHON= yes
USE_PYDISTUTILS=    yes

EXAMPLESDIR=    ${PREFIX}/share/examples/py-${PORTNAME}
FIND_DOCSDIR=   api howto

FETCH_CMD=  /usr/bin/fetch -rRp

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    for d in ${FIND_DOCSDIR}; do \
        ${MKDIR} ${DOCSDIR}/$${d}; \
        cd ${WRKSRC}/doc/$${d} && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/$${d} ";" ; \
    done;
    ${MKDIR} ${EXAMPLESDIR}
    cd ${WRKSRC}/examples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} ";"
    cd ${WRKSRC}/examples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} ";"
.endif

.include <bsd.port.pre.mk>

.if defined (WITH_ZOPEINTERFACE)
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}zopeInterface>=3.3.0:${PORTSDIR}/www/py-zopeInterface
.endif

.include <bsd.port.post.mk>