# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers ryandesign openmaintainer
homepage http://psyncx.sourceforge.net/
description Mac OS X wrapper around psync and crontab
long_description ${name} is a ${description}. That means that PsyncX \
uses an existing free Unix application, psync, and the \
ability to schedule jobs (known as cron in Unix) to \
allow you to schedule backups whenever you want.
svn.url https://svn.code.sf.net/p/psyncx/code/trunk/
depends_lib port:perl${perl5.major} \
port:p${perl5.major}-macosx-file
# p5-macosx-file is 32-bit only
# I don't know why these files aren't in the psyncx subversion repository.
# I copied them from the installer package on the psyncx 2.2.2 disk image.
xinstall -W ${filespath} psyncwriter runpsync ${worksrcpath}
patchfiles patch-AuthorizedTasks.m.diff \
patch-CronController.m.diff \
patch-psyncapplescript.diff \
reinplace "s|@PREFIX@|${prefix}|g" \
${worksrcpath}/AuthorizedTasks.m \
${worksrcpath}/CronController.m \
${worksrcpath}/CronJob.m \
reinplace "s|@PERL@|${perl5.bin}|g" \
${worksrcpath}/psyncapplescript \
${worksrcpath}/psyncwriter \
reinplace "s|@PSYNC@|${prefix}/bin/psync-${perl5.major}|g" \
xinstall -W ${worksrcpath} psyncwriter runpsync ${destroot}${prefix}/bin