aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/py-traitsgui/Makefile
blob: a4013e99fb32536b682996003905f910818d6d96 (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
# Created by: Jacob Frelinger <jacob.frelinger@duke.edu>
# $FreeBSD$

PORTNAME=   traitsgui
PORTVERSION=    3.1.0
PORTREVISION=   5
CATEGORIES= x11-toolkits python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   TraitsGUI-${PORTVERSION}

MAINTAINER= jacob.frelinger@duke.edu
COMMENT=    Gui toolkit derived from the Enthought python traits library

BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}traitsbackendwx>=3.1.0:${PORTSDIR}/x11-toolkits/py-traitsbackendwx
RUN_DEPENDS:=   ${BUILD_DEPENDS}

USE_PYTHON=     yes
USE_PYDISTUTILS=    easy_install
PYDISTUTILS_PKGNAME=    TraitsGUI

NO_STAGE=   yes
post-install:
.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${EXAMPLESDIR}
    cd ${WRKSRC}/examples \
        && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/\{} \; \
        && ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${EXAMPLESDIR}/\{} \;
.endif

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/docs \
        && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; \
        && ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
.endif

.include <bsd.port.pre.mk>
.include <bsd.port.post.mk>