Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Apr 2008 16:07:59 GMT
From:      olli hauer <ohauer@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/122471: [patch] port devel/cvs2svn
Message-ID:  <200804051607.m35G7xeN052870@www.freebsd.org>
Resent-Message-ID: <200804051610.m35GA2ff096237@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         122471
>Category:       ports
>Synopsis:       [patch] port devel/cvs2svn
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 05 16:10:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     olli hauer
>Release:        
>Organization:
>Environment:
>Description:
make support for git optional.

if you want to convert cvs to svn ther is no need for git, only if you like to convert from cvs to git.


>How-To-Repeat:

>Fix:
--- Makefile.orig       2008-03-17 00:05:51.000000000 +0100
+++ Makefile    2008-04-05 18:04:07.000000000 +0200
@@ -17,10 +17,26 @@
 MAINTAINER=    joe@joeholden.co.uk
 COMMENT=       CVS to Subversion Repository Converter

+OPTIONS=       SUBVERSION "Build with subversion support" on \
+               GIT "Build with git support" off
+
+.include <bsd.port.pre.mk>
+
 BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gdbm.so:${PORTSDIR}/databases/py-gdbm
-RUN_DEPENDS=   ${LOCALBASE}/bin/svn:${PORTSDIR}/devel/subversion \
-               ${LOCALBASE}/bin/git:${PORTSDIR}/devel/git \
-               ${BUILD_DEPENDS}
+
+.if defined(WITHOUT_SUBVERSION) && defined(WITHOUT_GIT)
+BROKEN=        choose at least subversion, git or both
+.endif
+
+.if defined(WITH_SUBVERSION)
+RUN_DEPENDS+=  ${LOCALBASE}/bin/svn:${PORTSDIR}/devel/subversion
+.endif
+
+.if defined(WITH_GIT)
+RUN_DEPENDS+=  ${LOCALBASE}/bin/git:${PORTSDIR}/devel/git
+.endif
+
+RUN_DEPENDS+=  ${BUILD_DEPENDS}

 DISABLE_SIZE=  yes

@@ -45,4 +61,4 @@
 post-install:
        ${INSTALL_MAN} ${WRKSRC}/cvs2svn.1 ${PREFIX}/man/man1/

-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804051607.m35G7xeN052870>