blob: 06360913553b8a01db91abaee78568b73bceb4f5 (
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
|
PORTNAME= svn2git
PORTVERSION= 1.0.18
CATEGORIES= devel kde
MAINTAINER= ports@FreeBSD.org
COMMENT= Imports svn repositories into git
WWW= http://gitorious.org/svn2git/svn2git
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libapr-1.so:devel/apr1 \
libsvn_client-1.so:devel/subversion
RUN_DEPENDS= git:devel/git \
p5-Term-ReadKey>=0:devel/p5-Term-ReadKey \
p5-subversion>=0:devel/p5-subversion
USES= compiler:c++11-lang qmake qt:5
USE_GITHUB= yes
USE_QT= core
GH_ACCOUNT= svn-all-fast-export
OPTIONS_DEFINE= FREEBSD_REPO
FREEBSD_REPO_DESC= FreeBSD-repo only mode
QMAKE_ARGS= SVN_INCLUDE=${LOCALBASE}/include/subversion-1 \
SVN_LIBDIR=${LOCALBASE}/lib \
APR_INCLUDE=${LOCALBASE}/include/apr-1
PLIST_FILES= bin/svn2git
FREEBSD_REPO_EXTRA_PATCHES= ${PATCHDIR}/freebsd-export-patch
post-patch:
@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|" \
-e "s/VERSION = .*/VERSION = ${PORTVERSION}/" ${WRKSRC}/src/src.pro
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/svn2git ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>
|