aboutsummaryrefslogtreecommitdiffstats
path: root/devel/dulwich/Makefile
blob: ef9ba6d44d2cc56a2731923b4a83082d60a42e09 (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
# Ports collection makefile for:    dulwich
# Date created:     2009-10-24
# Whom:         Marco Broeder <marco.broeder@gmx.eu>
#
# $FreeBSD$
#

PORTNAME=   dulwich
PORTVERSION=    0.4.0
CATEGORIES= devel python
MASTER_SITES=   http://samba.org/~jelmer/${PORTNAME}/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= marco.broeder@gmx.eu
COMMENT=    Pure-Python implementation of the Git file formats and protocols

USE_PYTHON= yes
USE_PYDISTUTILS=yes

.ifndef (NOPORTDOCS)
PORTDOCS=   AUTHORS COPYING HACKING NEWS README
.endif

post-patch:
    ${REINPLACE_CMD} -e 's|PYTHON = python|PYTHON = /usr/bin/env python|g; \
        s|/usr|${PREFIX}|g' ${WRKSRC}/Makefile

    ${REINPLACE_CMD} -e 's|/usr/bin/python|/usr/bin/env python|g' \
        ${WRKSRC}/setup.py

post-install:
.ifndef (NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    for n in ${PORTDOCS}; do \
        ${INSTALL_MAN} ${WRKSRC}/$${n} ${DOCSDIR}/; \
    done
.endif

.include <bsd.port.mk>