ports/156097: [NEW PORT] devel/svn2git-1.0.3: Imports svn repositories into git

David Naylor naylor.b.david at gmail.com
Thu Mar 31 20:10:12 UTC 2011


>Number:         156097
>Category:       ports
>Synopsis:       [NEW PORT] devel/svn2git-1.0.3: Imports svn repositories into git
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 31 20:10:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     David Naylor
>Release:        FreeBSD-current
>Organization:
Private
>Environment:
>Description:
"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

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	svn2git
#	svn2git/files
#	svn2git/files/patch-src::src.pro
#	svn2git/Makefile
#	svn2git/distinfo
#	svn2git/pkg-descr
#
echo c - svn2git
mkdir -p svn2git > /dev/null 2>&1
echo c - svn2git/files
mkdir -p svn2git/files > /dev/null 2>&1
echo x - svn2git/files/patch-src::src.pro
sed 's/^X//' >svn2git/files/patch-src::src.pro << '6c27e774c9c2a9542b649de99e2fb8b5'
Xdiff --git a/src/src.pro b/src/src.pro
Xindex da6d40d..5749202 100644
X--- src/src.pro
X+++ src/src.pro
X@@ -2,11 +2,12 @@
X # Automatically generated by qmake (2.01a) dim. dc. 23 13:49:28 2007
X ######################################################################
X 
X-SVN_INCLUDE = /usr/include/subversion-1 /usr/local/include/subversion-1
X-APR_INCLUDE = /usr/include/apr-1.0 /usr/include/apr-1 /usr/local/include/apr-1
X+LOCALBASE = /usr/local
X+SVN_INCLUDE = $${LOCALBASE}/include/subversion-1
X+APR_INCLUDE = $${LOCALBASE}/include/apr-1
X exists(local-config.pri):include(local-config.pri)
X 
X-VERSION = $$system(git --no-pager show --pretty=oneline --no-notes | head -1 | cut -b-40)
X+VERSION = 1.0.3
X     !isEmpty(VERSION){
X       VERSION = $${VERSION}
X     }
X@@ -15,7 +16,7 @@ VERSTR = '\\"$${VERSION}\\"'  # place quotes around the version string
X DEFINES += VER=\"$${VERSTR}\" # create a VER macro containing the version string
X 
X TEMPLATE = app
X-TARGET = ../svn-all-fast-export
X+TARGET = ../svn2git
X DEPENDPATH += .
X QT = core
X 
6c27e774c9c2a9542b649de99e2fb8b5
echo x - svn2git/Makefile
sed 's/^X//' >svn2git/Makefile << 'e39a543004b2aa8d56a91df438b3830a'
X# New ports collection makefile for:	svn2git
X# Date created:				2011/03/30
X# Whom:					David Naylor <naylor.b.david at gmail.com>
X#
X# $FreeBSD$
X
XPORTNAME=	svn2git
XDISTVERSION=	1.0.3
XCATEGORIES=	devel kde
XMASTER_SITES=	http://cloud.github.com/downloads/DragonSA/svn2git/
X
XMAINTAINER=	naylor.b.david at gmail.com
XCOMMENT=	Imports svn repositories into git
X
XLIB_DEPENDS=	svn_client-1:${PORTSDIR}/devel/subversion
XRUN_DEPENDS+=	git:${PORTSDIR}/devel/git \
X		${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
X		${SITE_PERL}/${PERL_ARCH}/SVN/Core.pm:${PORTSDIR}/devel/p5-subversion
X
XLICENSES=	GPLv1 GPLv2 GPLv3
X
XPLIST_FILES=	bin/svn2git
XUSE_XZ=		yes
XUSE_QT_VER=	4
XQT_COMPONENTS=	corelib qmake_build
XMAKE_JOBS_SAFE=	yes
X
Xpost-patch:
X	${REINPLACE_CMD} "s|/usr/local|${LOCALBASE}|" ${WRKSRC}/src/src.pro
X
Xdo-configure:
X	(cd ${WRKSRC}; ${QMAKE} fast-export2.pro)
X
Xpost-build:
X	${STRIP_CMD} ${WRKSRC}/svn2git
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/svn2git ${PREFIX}/bin/
X
X.include <bsd.port.mk>
e39a543004b2aa8d56a91df438b3830a
echo x - svn2git/distinfo
sed 's/^X//' >svn2git/distinfo << '7f32a435dae4062b5c294fb29a6d64ab'
XSHA256 (svn2git-1.0.3.tar.xz) = 4dc207f457ff38f2f762f5b15f4ef3c1f3652ffa61769fede853eeed816ace68
XSIZE (svn2git-1.0.3.tar.xz) = 21736
7f32a435dae4062b5c294fb29a6d64ab
echo x - svn2git/pkg-descr
sed 's/^X//' >svn2git/pkg-descr << 'ea778579a72ba7a564c1d97f82c6cc29'
X"Importer for one time conversion from svn to git."
X
XThe svn to git converter as used by KDE.  For practical examples on writing
Xrules for conversion, see: http://gitorious.org/svn2git/kde-ruleset
X
XWWW: http://gitorious.org/svn2git/svn2git
ea778579a72ba7a564c1d97f82c6cc29
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list