aboutsummaryrefslogtreecommitdiff
path: root/devel/bzr/Makefile
blob: ed937fc78177b41941c69c79cfb78d0114563d3d (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
# Ports collection makefile for:	bazaar-ng
# Date created:		10 October 2005
# Whom:			Ulf Lilleengen
#
# $FreeBSD$
#

PORTNAME=	bazaar-ng
PORTVERSION=	2.2.3
CATEGORIES=	devel
MASTER_SITES=	https://launchpadlibrarian.net/62541600/
DISTNAME=	bzr-${PORTVERSION}

MAINTAINER=	fullermd@over-yonder.net
COMMENT=	Distributed version control system by Canonical

# Often not needed, but it's cheap insurance
BUILD_DEPENDS=	pyrexc:${PORTSDIR}/devel/pyrex

OPTIONS=	SFTP "Enable Paramiko for SFTP support" on

USE_PYTHON=	2.4+
USE_PYDISTUTILS=	yes
PYDISTUTILS_PKGNAME=	bzr

MAN1=		bzr.1

.include <bsd.port.pre.mk>

# Included in 2.5
.if (${PYTHON_VERSION} == python2.4)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/cElementTree.so:${PORTSDIR}/devel/py-celementtree
.endif

.if !defined(WITHOUT_SFTP)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/paramiko/__init__.py:${PORTSDIR}/security/py-paramiko
.endif

post-install:
	${INSTALL_MAN} ${WRKSRC}/bzr.1 ${MAN1PREFIX}/man/man1/

test:	build
	cd ${WRKSRC} && ./bzr selftest

.include <bsd.port.post.mk>