ports/122471: [patch] port devel/cvs2svn

olli hauer ohauer at gmx.de
Sat Apr 5 16:10:03 UTC 2008


>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 at 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:



More information about the freebsd-ports-bugs mailing list