freebsd-ports/devel/svn2git/Makefile
2013-11-03 15:14:00 +00:00

42 lines
1,002 B
Makefile

# Created by: David Naylor <naylor.b.david@gmail.com>
# $FreeBSD$
PORTNAME= svn2git
DISTVERSION= 1.0.10
CATEGORIES= devel kde
MASTER_SITES= LOCAL/dbn/${PORTNAME}
MAINTAINER= dbn@FreeBSD.org
COMMENT= Imports svn repositories into git
LICENSE= GPLv3
LIB_DEPENDS= svn_client-1:${PORTSDIR}/devel/subversion
RUN_DEPENDS+= git:${PORTSDIR}/devel/git \
p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey \
p5-subversion>=0:${PORTSDIR}/devel/p5-subversion
USE_XZ= yes
USE_QT4= corelib qmake_build
OPTIONS_DEFINE= FREEBSD_REPO
FREEBSD_REPO_DESC= FreeBSD-repo only mode
PLIST_FILES= bin/svn2git
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFREEBSD_REPO}
EXTRA_PATCHES= ${PATCHDIR}/freebsd-export-patch
.endif
post-patch:
${REINPLACE_CMD} "s|/usr/local|${LOCALBASE}|" ${WRKSRC}/src/src.pro
do-configure:
(cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS} fast-export2.pro)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/svn2git ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>