2003-12-29 06:09:53 +00:00
|
|
|
# New ports collection makefile for: WiKicker
|
|
|
|
# Date created: 21 Sep 2003
|
|
|
|
# Whom: Fumihiko Kimura <jfkimura@yahoo.co.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= WiKicker
|
2004-02-10 17:46:41 +00:00
|
|
|
PORTVERSION= 0.21
|
2003-12-29 06:09:53 +00:00
|
|
|
CATEGORIES+= japanese www perl5
|
|
|
|
MASTER_SITES= \
|
|
|
|
http://www.naney.org/comp/distrib/WiKicker/archive/
|
|
|
|
|
|
|
|
MAINTAINER= jfkimura@yahoo.co.jp
|
|
|
|
COMMENT= Wiki like system by perl5 (Only Japanese Language)
|
|
|
|
|
|
|
|
# ============================================================================
|
|
|
|
# = You have to appoint GPG to use a function to upload an image. =
|
|
|
|
# = If it is necessary, it seems to be WITH_IMAGEUPLOAD=yes =
|
|
|
|
# ============================================================================
|
|
|
|
|
|
|
|
.if defined(WITH_IMAGEUPLOAD)
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/GnuPG/Interface.pm:${PORTSDIR}/security/p5-GnuPG-Interface
|
|
|
|
.endif
|
|
|
|
RUN_DEPENDS+= \
|
|
|
|
${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
|
|
|
|
${SITE_PERL}/Time/Zone.pm:${PORTSDIR}/devel/p5-TimeDate \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Unicode/String.pm:${PORTSDIR}/converters/p5-Unicode-String \
|
|
|
|
${SITE_PERL}/Algorithm/Diff.pm:${PORTSDIR}/devel/p5-Algorithm-Diff \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode \
|
|
|
|
${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \
|
|
|
|
${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI
|
|
|
|
|
2004-02-10 17:46:41 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500800
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/Locale/Maketext.pm:${PORTSDIR}/devel/p5-Locale-Maketext
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_WIKICKER_RECENTLOG)
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/IPC/ShareLite.pm:${PORTSDIR}/devel/p5-IPC-ShareLite
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_WIKICKER_MEMCACHED)
|
2004-03-28 06:44:36 +00:00
|
|
|
RUN_DEPENDS+= memcached:${PORTSDIR}/databases/memcached
|
2004-02-10 17:46:41 +00:00
|
|
|
.endif
|
|
|
|
|
2003-12-29 06:09:53 +00:00
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
WIKIAUTO= ${SITE_PERL}/auto/${PORTNAME}
|
|
|
|
WIKIPM= ${SITE_PERL}/${PORTNAME}
|
|
|
|
WIKISCRIPT= wiki.cgi.in
|
|
|
|
MAN3= WiKicker.3 WiKicker::HTML.3
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "============================================================="
|
|
|
|
@${ECHO_MSG} " Install Documents to ${DOCSDIR}"
|
|
|
|
@${ECHO_MSG} "============================================================="
|
|
|
|
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in AUTHORS ChangeLog MANIFEST.SKIP MANIFEST NEWS README THANKS
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@cd ${DOCSDIR} && ${FIND} . -type f -o -type l | ${SED} -e 's,^\.,${DOCSDIR:S|${LOCALBASE}/||},' >>${TMPPLIST}
|
|
|
|
@cd ${DOCSDIR} && ${FIND} . -type d -depth | ${SED} -e 's,^\.,@dirrm ${DOCSDIR:S|${LOCALBASE}/||},' >>${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "============================================================="
|
|
|
|
@${ECHO_MSG} " Install Examples to ${EXAMPLESDIR}"
|
|
|
|
@${ECHO_MSG} "============================================================="
|
|
|
|
|
|
|
|
@-${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for FILE in htaccess.in wiki.cgi.properties.in wiki.css.in
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/${FILE} ${EXAMPLESDIR}/${FILE:S|.in||}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/${WIKISCRIPT} ${EXAMPLESDIR}/${WIKISCRIPT:S|.in||}
|
|
|
|
@cd ${EXAMPLESDIR} && ${FIND} . -type f -o -type l | ${SED} -e 's,^\.,${EXAMPLESDIR:S|${LOCALBASE}/||},' >>${TMPPLIST}
|
|
|
|
@cd ${EXAMPLESDIR} && ${FIND} . -type d -depth | ${SED} -e 's,^\.,@dirrm ${EXAMPLESDIR:S|${LOCALBASE}/||},' >>${TMPPLIST}
|
|
|
|
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "===> Making PLIST Phase Start"
|
|
|
|
@cd ${PREFIX}; ${FIND} ${WIKIAUTO:S/^${PREFIX}\///} -type f -o -type l | ${SED} -e 's,^\.,${WIKIAUTO:S|${PREFIX}/||},' >>${TMPPLIST}
|
2004-01-22 11:06:02 +00:00
|
|
|
@cd ${PREFIX}; ${FIND} ${WIKIAUTO:S/^${PREFIX}\///} -type d | \
|
|
|
|
${SORT} -r | ${SED} -e 's/^/@dirrm /' >>${TMPPLIST}
|
2003-12-29 06:09:53 +00:00
|
|
|
@cd ${PREFIX}; ${FIND} ${WIKIPM:S/^${PREFIX}\///} -type f -o -type l | ${SED} -e 's,^\.,${WIKIPM:S|${PREFIX}/||},' >>${TMPPLIST}
|
2004-01-22 11:06:02 +00:00
|
|
|
@cd ${PREFIX}; ${FIND} ${WIKIPM:S/^${PREFIX}\///} -type d | \
|
|
|
|
${SORT} -r | ${SED} -e 's/^/@dirrm /' >>${TMPPLIST}
|
2003-12-29 06:09:53 +00:00
|
|
|
@${ECHO_MSG} "===> Making PLIST Phase End"
|
|
|
|
|
|
|
|
@${SED} -e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|' \
|
|
|
|
-e 's|%%HostName%%|${HOST}|' < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2004-02-10 17:46:41 +00:00
|
|
|
.include <bsd.port.post.mk>
|