diff options
author | Oliver Braun <obraun@FreeBSD.org> | 2003-04-26 16:40:49 +0000 |
---|---|---|
committer | Oliver Braun <obraun@FreeBSD.org> | 2003-04-26 16:40:49 +0000 |
commit | 654d0e54990cf59e161a4e259ac00e92f07477d8 (patch) | |
tree | 849abe5671b5ae9f9e8b350f20147656244bef20 /devel/darcs | |
parent | Make esound support permanent since esound must be installed to install (diff) |
* Upgrade to 0.9.7.
* Add WITH_CGI knob.
Notes
Notes:
svn path=/head/; revision=79676
Diffstat (limited to 'devel/darcs')
-rw-r--r-- | devel/darcs/Makefile | 25 | ||||
-rw-r--r-- | devel/darcs/distinfo | 2 | ||||
-rw-r--r-- | devel/darcs/pkg-plist | 1 |
3 files changed, 26 insertions, 2 deletions
diff --git a/devel/darcs/Makefile b/devel/darcs/Makefile index d155fd363d1e..22f7f0891d43 100644 --- a/devel/darcs/Makefile +++ b/devel/darcs/Makefile @@ -6,7 +6,7 @@ # PORTNAME= darcs -PORTVERSION= 0.9.5 +PORTVERSION= 0.9.7 CATEGORIES= devel MASTER_SITES= http://www.abridgegame.org/darcs/ @@ -23,8 +23,27 @@ ALL_TARGET= darcs darcs.1 GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \ ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'` +.if defined(WITH_CGI) +ALL_TARGET+= darcs_cgi +.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache) +CGIDIR?= share/apache/cgi-bin +.else +CGIDIR?= www/cgi-bin +.endif +PLIST_SUB+= CGIDIR=${CGIDIR} +.else +PLIST_SUB+= CGIDIR="@comment " +.endif + MAN1= darcs.1 +pre-everything:: +.if !defined(WITH_CGI) + @${ECHO_CMD} "" + @${ECHO_CMD} "To build and install the cgi script define WITH_CGI." + @${ECHO_CMD} "" +.endif + post-patch: @${REINPLACE_CMD} -e 's|<curl|<${PREFIX}/include/curl|' \ ${WRKSRC}/hscurl.c @@ -41,5 +60,9 @@ do-configure: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/darcs ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/darcs.1 ${MANPREFIX}/man/man1 +.if defined(WITH_CGI) + ${MKDIR} ${PREFIX}/${CGIDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/darcs_cgi ${PREFIX}/${CGIDIR} +.endif .include <bsd.port.mk> diff --git a/devel/darcs/distinfo b/devel/darcs/distinfo index 7dc006d08ce0..ccd472c65834 100644 --- a/devel/darcs/distinfo +++ b/devel/darcs/distinfo @@ -1 +1 @@ -MD5 (darcs-0.9.5.tar.gz) = 1e326165490c5f139779c10851c1546b +MD5 (darcs-0.9.7.tar.gz) = e54616acbc62d38df9e16b0583896999 diff --git a/devel/darcs/pkg-plist b/devel/darcs/pkg-plist index 3979d39da1f0..d3f54b81d774 100644 --- a/devel/darcs/pkg-plist +++ b/devel/darcs/pkg-plist @@ -1 +1,2 @@ bin/darcs +%%CGIDIR%%/darcs_cgi |