aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hs-darcs
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2003-04-27 00:40:49 +0800
committerobraun <obraun@FreeBSD.org>2003-04-27 00:40:49 +0800
commit6854494c024a0919413611e145b62f75f59af33d (patch)
tree48f5fd71331b438d4cf5dc70a99032e5888d71a2 /devel/hs-darcs
parent90aa82e5d8897eb899f846ea59809469b51bb873 (diff)
downloadfreebsd-ports-gnome-6854494c024a0919413611e145b62f75f59af33d.tar.gz
freebsd-ports-gnome-6854494c024a0919413611e145b62f75f59af33d.tar.zst
freebsd-ports-gnome-6854494c024a0919413611e145b62f75f59af33d.zip
* Upgrade to 0.9.7.
* Add WITH_CGI knob.
Diffstat (limited to 'devel/hs-darcs')
-rw-r--r--devel/hs-darcs/Makefile25
-rw-r--r--devel/hs-darcs/distinfo2
-rw-r--r--devel/hs-darcs/pkg-plist1
3 files changed, 26 insertions, 2 deletions
diff --git a/devel/hs-darcs/Makefile b/devel/hs-darcs/Makefile
index d155fd363d1e..22f7f0891d43 100644
--- a/devel/hs-darcs/Makefile
+++ b/devel/hs-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/hs-darcs/distinfo b/devel/hs-darcs/distinfo
index 7dc006d08ce0..ccd472c65834 100644
--- a/devel/hs-darcs/distinfo
+++ b/devel/hs-darcs/distinfo
@@ -1 +1 @@
-MD5 (darcs-0.9.5.tar.gz) = 1e326165490c5f139779c10851c1546b
+MD5 (darcs-0.9.7.tar.gz) = e54616acbc62d38df9e16b0583896999
diff --git a/devel/hs-darcs/pkg-plist b/devel/hs-darcs/pkg-plist
index 3979d39da1f0..d3f54b81d774 100644
--- a/devel/hs-darcs/pkg-plist
+++ b/devel/hs-darcs/pkg-plist
@@ -1 +1,2 @@
bin/darcs
+%%CGIDIR%%/darcs_cgi