1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

Add new port devel/svn2git:

The svn to git converter as used by KDE.  For practical examples on writing
rules for conversion, see: http://gitorious.org/svn2git/kde-ruleset

WWW: http://gitorious.org/svn2git/

PR:		ports/156097
Submitted by:	David Naylor <naylor.b.david at gmail.com>
This commit is contained in:
Max Brazhnikov 2011-04-05 20:06:18 +00:00
parent b3921dcdab
commit 2f3d65fa50
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=272261
4 changed files with 75 additions and 0 deletions

38
devel/svn2git/Makefile Normal file
View File

@ -0,0 +1,38 @@
# New ports collection makefile for: svn2git
# Date created: 2011-03-30
# Whom: David Naylor <naylor.b.david@gmail.com>
#
# $FreeBSD$
PORTNAME= svn2git
DISTVERSION= 1.0.3
CATEGORIES= devel kde
MASTER_SITES= http://cloud.github.com/downloads/DragonSA/svn2git/
MAINTAINER= naylor.b.david@gmail.com
COMMENT= Imports svn repositories into git
LIB_DEPENDS= svn_client-1:${PORTSDIR}/devel/subversion
RUN_DEPENDS+= git:${PORTSDIR}/devel/git \
${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
${SITE_PERL}/${PERL_ARCH}/SVN/Core.pm:${PORTSDIR}/devel/p5-subversion
LICENSES= GPLv1 GPLv2 GPLv3
USE_XZ= yes
USE_QT_VER= 4
QT_COMPONENTS= corelib qmake_build
MAKE_JOBS_SAFE= yes
PLIST_FILES= bin/svn2git
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 ${PREFIX}/bin/
.include <bsd.port.mk>

2
devel/svn2git/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (svn2git-1.0.3.tar.xz) = 4dc207f457ff38f2f762f5b15f4ef3c1f3652ffa61769fede853eeed816ace68
SIZE (svn2git-1.0.3.tar.xz) = 21736

View File

@ -0,0 +1,29 @@
diff --git a/src/src.pro b/src/src.pro
index da6d40d..5749202 100644
--- src/src.pro
+++ src/src.pro
@@ -2,11 +2,12 @@
# Automatically generated by qmake (2.01a) dim. dc. 23 13:49:28 2007
######################################################################
-SVN_INCLUDE = /usr/include/subversion-1 /usr/local/include/subversion-1
-APR_INCLUDE = /usr/include/apr-1.0 /usr/include/apr-1 /usr/local/include/apr-1
+LOCALBASE = /usr/local
+SVN_INCLUDE = $${LOCALBASE}/include/subversion-1
+APR_INCLUDE = $${LOCALBASE}/include/apr-1
exists(local-config.pri):include(local-config.pri)
-VERSION = $$system(git --no-pager show --pretty=oneline --no-notes | head -1 | cut -b-40)
+VERSION = 1.0.3
!isEmpty(VERSION){
VERSION = $${VERSION}
}
@@ -15,7 +16,7 @@ VERSTR = '\\"$${VERSION}\\"' # place quotes around the version string
DEFINES += VER=\"$${VERSTR}\" # create a VER macro containing the version string
TEMPLATE = app
-TARGET = ../svn-all-fast-export
+TARGET = ../svn2git
DEPENDPATH += .
QT = core

6
devel/svn2git/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
"Importer for one time conversion from svn to git."
The svn to git converter as used by KDE. For practical examples on writing
rules for conversion, see: http://gitorious.org/svn2git/kde-ruleset
WWW: http://gitorious.org/svn2git/svn2git