# New ports collection makefile for: WiLiKi # Date created: 22 August 2003 # Whom: Kimura Fuyuki # # $FreeBSD$ # PORTNAME= wiliki PORTVERSION= 0.6.1 PORTREVISION= 1 CATEGORIES= www scheme MASTER_SITES= SF DISTNAME= WiLiKi-${PORTVERSION} EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= A lightweight Wiki engine written in Scheme BUILD_DEPENDS= gosh:${PORTSDIR}/lang/gauche RUN_DEPENDS= ${LOCALBASE}/share/gauche/${GAUCHE_VER}/lib/dbm/gdbm.scm:${PORTSDIR}/databases/gauche-gdbm GNU_CONFIGURE= yes VARDIR= /var/wiliki MAKE_JOBS_UNSAFE= yes USE_GETTEXT= yes .include .if ${ARCH} == "alpha" BROKEN= Does not build .endif .if exists(${LOCALBASE}/bin/gauche-config) GAUCHE_VER!= ${LOCALBASE}/bin/gauche-config -V .else GAUCHE_VER= none .endif post-patch: ${REINPLACE_CMD} -E \ -e 's,/usr/bin,${PREFIX}/bin,' \ -e 's,/home/shiro/data/wikidata.dbm,/var/wiliki/data.dbm,' \ -e 's,wiliki2?\.css,/&,' \ -e "s/:language 'jp/:language 'en/" ${WRKSRC}/src/*.cgi post-build: cd ${WRKSRC}/po && ${MAKE} ja.gmo post-install: ${MKDIR} ${PREFIX}/www/cgi-bin .for f in wiliki.cgi wiliki2.cgi ${INSTALL_DATA} ${WRKSRC}/src/${f} ${PREFIX}/www/cgi-bin/${f}.dist .endfor ${MKDIR} ${PREFIX}/www/data ${INSTALL_DATA} ${WRKSRC}/src/*.css ${PREFIX}/www/data ${MKDIR} ${VARDIR} ${CHOWN} www:www ${VARDIR} @${CAT} ${PKGMESSAGE} test: cd ${WRKSRC}; ${MAKE} check .include