Bug 65921 - [NEW PORT] devel/monotone: The monotone distributed version control system
Summary: [NEW PORT] devel/monotone: The monotone distributed version control system
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thierry Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-23 21:10 UTC by Mark A. Wicks
Modified: 2004-06-14 20:36 UTC (History)
0 users

See Also:


Attachments
monotone.tar.gz (19.12 KB, text/plain)
2004-04-23 21:10 UTC, Mark A. Wicks
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark A. Wicks 2004-04-23 21:10:22 UTC
	This is a correction to PR 65838.  Some long lines were truncated
        when I submitted PR 65838 as a shar file, so I am resubmitting it
	as a uuencoded, gzipped tar file.

	This is a new port of Monotone for version 0.11.
        Monotone is a distributed version control system with an emphasis on digital certificates.
    	For a complete description see http://www.venge.net/monotone/

        Except for a broken configure script, Monotone version 0.11 compiles almost right out of the box.
        It's difficult to generate the correct configure script automatically in the Makeile, so the port
	contains a patch for the configure script.
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2004-05-06 19:51:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->thierry


I'll take it.
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2004-05-06 19:52:32 UTC
State Changed
From-To: open->feedback


This port links by default with adns, lua and sqlite if they are 
installed on the machine. 

The following patch introduces dependencies, unless WITHOUT_* 
are defined. Of course, if you prefer, it's possible to do the 
contrary and use the --with-bundled-* configure args unless 
WITH_* are defined, but anyway you have to register the dependencies 
when they are used. 


diff -urN devel/monotone.orig/Makefile devel/monotone/Makefile 
--- devel/monotone.orig/Makefile	Wed Apr 21 04:26:36 2004 
+++ devel/monotone/Makefile	Thu May  6 20:39:01 2004 
@@ -14,30 +14,52 @@ 
MAINTAINER=	mwicks@kettering.edu 
COMMENT=	A distributed version control system with digital signatures 

-BUILD_DEPENDS=	${LOCALBASE}/include/boost/any.hpp:${PORTSDIR}/devel/boost 
-LIB_DEPENDS=	popt.0:${PORTSDIR}/devel/popt 
-RUN_DEPENDS=	${LOCALBASE}/lib/libboost_regex.so:${PORTSDIR}/devel/boost 
+LIB_DEPENDS=	popt.0:${PORTSDIR}/devel/popt		 
+		boost_regex.1:${PORTSDIR}/devel/boost 

USE_ICONV=	yes 
.if !defined(WITHOUT_NLS) 
-USE_GETTEXT=    yes 
+USE_GETTEXT=	yes 
.endif 
USE_GMAKE=	yes 

GNU_CONFIGURE=	yes 
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} 
LDFLAGS+=	-L${LOCALBASE}/lib 
CFLAGS+=	-I${LOCALBASE}/include 
-CXXFLAGS+=      -I${LOCALBASE}/include -L${LOCALBASE}/lib 
+CXXFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib 

+PLIST_FILES=	bin/depot.cgi bin/monotone 
INFO=		monotone 
MAN1=		monotone.1 

.if defined(WITHOUT_NLS) 
CONFIGURE_ARGS=	--disable-nls 
.endif 
+.if !defined(WITHOUT_ADNS) 
+LIB_DEPENDS+=	adns.1:${PORTSDIR}/dns/adns 
+.else 
+CONFIGURE_ARGS=	--with-bundled-adns 
+.endif 
+.if !defined(WITHOUT_LUA) 
+LIB_DEPENDS+=	lua.5:${PORTSDIR}/lang/lua 
+.else 
+CONFIGURE_ARGS=	--with-bundled-lua 
+.endif 
+.if !defined(WITHOUT_SQLITE) 
+LIB_DEPENDS+=	sqlite.2:${PORTSDIR}/databases/sqlite 
+.else 
+CONFIGURE_ARGS=	--with-bundled-sqlite 
+.endif 
+ 
+.include <bsd.port.pre.mk> 
+ 
+.if ${OSVERSION} < 500000 
+BROKEN=		"Does not run on FreeBSD-4.x at this time" 
+.endif 

post-patch: 
${TOUCH} ${WRKDIR}/${DISTNAME}/configure 
${TOUCH} ${WRKDIR}/${DISTNAME}/*.in 

-.include <bsd.port.mk> 
+.include <bsd.port.post.mk> 
diff -urN devel/monotone.orig/pkg-plist devel/monotone/pkg-plist 
--- devel/monotone.orig/pkg-plist	Fri Mar 26 19:12:02 2004 
+++ devel/monotone/pkg-plist	Thu Jan  1 01:00:00 1970 
@@ -1,2 +0,0 @@ 
-bin/depot.cgi 
-bin/monotone 

Since I was there, I have replaced pkg-plist by PLIST_FILES, and 
since this port does not build on FreeBSD-4.x (unless you fix it) 
I have marked it broken for this version. 

Regards,
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2004-05-06 20:02:02 UTC
Class Changed
From-To: update->change-request


This is a new port.
Comment 4 Thierry Thomas freebsd_committer freebsd_triage 2004-06-14 20:35:51 UTC
State Changed
From-To: feedback->closed


Feedback received, new port added! Thanks.