# New ports collection makefile for:	svnmerge
# Date created:				2010-11-10
# Whom:					Tom Judge <tom@tomjudge.com>
#
# $FreeBSD: ports/devel/svnmerge/Makefile,v 1.5 2012/02/14 22:34:29 scheidell Exp $

PORTNAME=	svnmerge
PORTVERSION=	#  See ../subversion16/Makefile.inc
PORTEPOCH=	1
CATEGORIES=	devel
MASTER_SITES=	# none
DISTFILES=	# none

MAINTAINER=	tom@tomjudge.com
COMMENT=	A Python script to managing merges in a Subversion repository

RUN_DEPENDS=	${LOCALBASE}/bin/svn:${PORTSDIR}/devel/subversion16

USE_BZIP2=	yes
USE_PYTHON=	2.5+
NO_BUILD=	yes

WRKSRC=		${WRKDIR}/subversion-${PORTVERSION}/contrib/client-side/svnmerge

PLIST_FILES=	bin/svnmerge
.if !defined(NOPORTDOCS)
PORTDOCS=	*
.endif

.include <bsd.port.pre.mk>

SVN_PORTDIR=		${PORTSDIR}/devel/subversion16
.include		"${SVN_PORTDIR}/Makefile.inc"

do-extract:
	${MKDIR} ${WRKDIR}
	cd ${SVN_PORTDIR} && ${MAKE} DISABLE_CONFLICTS=yes WRKDIR=${WRKDIR} extract

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/svnmerge.py ${PREFIX}/bin/svnmerge
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/svnmerge.README ${DOCSDIR}/
.endif

.include <bsd.port.post.mk>
