aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-graph-dot/Makefile
blob: 7b97ab81a0a9092f15c9c3a49909a0287ad183f3 (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
# New ports collection makefile for:    py-graph
# Date created:     2008-08-29
# Whom:         Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   graph
PORTVERSION=    1.0.0
CATEGORIES= graphics python
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   python-graph-${PORTVERSION}

MAINTAINER= yzlin@cs.nctu.edu.tw
COMMENT=    A library for working with graphs in Python

BUILD_DEPENDS=  dot:${PORTSDIR}/graphics/graphviz
RUN_DEPENDS=    dot:${PORTSDIR}/graphics/graphviz

PROJECTHOST=    python-graph
USE_PYTHON= yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_PKGNAME=    python-graph

WRKSRC=     ${WRKDIR}/${PYDISTUTILS_PKGNAME}

USE_BZIP2=  yes

DOCSDIR=    ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR=    ${PREFIX}/share/examples/py-${PORTNAME}

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/docs/* ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>