1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/www/davical/Makefile
Mathieu Arnold 72ea7e696b Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:33:55 +00:00

71 lines
2.0 KiB
Makefile

# Created by: Maurice Castro <maurice@castro.aus.net>
# $FreeBSD$
PORTNAME= davical
PORTVERSION= 1.1.2
DISTVERSIONPREFIX= r
PORTREVISION= 1
CATEGORIES?= www
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple CalDAV server using a postgres backend
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= p5-DBI>=0:databases/p5-DBI \
p5-YAML>=0:textproc/p5-YAML \
p5-DBD-Pg>=0:databases/p5-DBD-Pg \
${LOCALBASE}/bin/pwgen:sysutils/pwgen \
php-libawl>=0.54:devel/php-libawl
USE_GITHUB= yes
GH_ACCOUNT= DAViCal
NO_BUILD= yes
USE_PHP= gettext iconv pcre pdo pdo_pgsql pgsql xml calendar
USES= shebangfix pgsql
SHEBANG_FILES= scripts/sync-remote-caldav.php
SUB_FILES= pkg-message httpd-davical.conf
PORTDOCS= api website \
README INSTALL davical_en_user_guide.odt translation.rst
PORTEXAMPLES= config
OPTIONS_DEFINE= DOCS EXAMPLES
post-extract:
@${FIND} ${WRKSRC} -name .gitignore -delete
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}/htdocs \
${STAGEDIR}${WWWDIR}/inc \
${STAGEDIR}${WWWDIR}/config \
${STAGEDIR}${EXAMPLESDIR} \
${STAGEDIR}${DATADIR} \
${STAGEDIR}${DOCSDIR}
# WWWDIR
(cd ${WRKSRC}/htdocs && \
${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/htdocs)
(cd ${WRKSRC}/inc && ${COPYTREE_SHARE} . \
${STAGEDIR}${WWWDIR}/inc "! -name always.php.in")
${INSTALL_DATA} ${WRKSRC}/config/example-config.php \
${STAGEDIR}${WWWDIR}/config/config.php.sample
# DATADIR
(cd ${WRKSRC} && ${COPYTREE_SHARE} scripts ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} dba ${STAGEDIR}${DATADIR} \
"! -name update-davical-database")
${INSTALL_DATA} ${WRKDIR}/httpd-davical.conf ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/dba/update-davical-database \
${STAGEDIR}${DATADIR}/dba
# DOCSDIR
(cd ${WRKSRC}/docs && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}
# EXAMPLESDIR
(cd ${WRKSRC} && \
${COPYTREE_SHARE} config ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>