source: trunk/dports/aqua/PsyncX/Portfile

Last change on this file was 154089, checked in by mojca@…, 11 months ago

PsyncX: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- 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
2# $Id: Portfile 154089 2016-10-20 02:50:40Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6PortGroup           xcode 1.0
7
8name                PsyncX
9version             2.2.2
10revision            4
11categories          aqua sysutils
12maintainers         ryandesign openmaintainer
13homepage            http://psyncx.sourceforge.net/
14
15description         Mac OS X wrapper around psync and crontab
16
17long_description    ${name} is a ${description}. That means that PsyncX \
18                    uses an existing free Unix application, psync, and the \
19                    ability to schedule jobs (known as cron in Unix) to \
20                    allow you to schedule backups whenever you want.
21
22fetch.type          svn
23svn.url             http://svn.code.sf.net/p/psyncx/code/trunk/
24svn.revision        29
25worksrcdir          trunk
26
27perl5.branches      5.24
28
29depends_lib         port:perl${perl5.major} \
30                    port:p${perl5.major}-macosx-file
31
32# p5-macosx-file is 32-bit only
33supported_archs     i386 ppc
34
35# I don't know why these files aren't in the psyncx subversion repository.
36# I copied them from the installer package on the psyncx 2.2.2 disk image.
37post-extract {
38    xinstall -W ${filespath} psyncwriter runpsync ${worksrcpath}
39}
40
41patchfiles          patch-AuthorizedTasks.m.diff \
42                    patch-CronController.m.diff \
43                    patch-CronJob.m.diff \
44                    patch-psyncapplescript.diff \
45                    patch-psyncwriter.diff \
46                    patch-runpsync.diff
47
48post-patch {
49    reinplace "s|@PREFIX@|${prefix}|g" \
50                    ${worksrcpath}/AuthorizedTasks.m \
51                    ${worksrcpath}/CronController.m \
52                    ${worksrcpath}/CronJob.m \
53                    ${worksrcpath}/runpsync
54    reinplace "s|@PERL@|${perl5.bin}|g" \
55                    ${worksrcpath}/psyncapplescript \
56                    ${worksrcpath}/psyncwriter \
57                    ${worksrcpath}/runpsync
58    reinplace "s|@PSYNC@|${prefix}/bin/psync-${perl5.major}|g" \
59                    ${worksrcpath}/runpsync
60}
61
62post-destroot {
63    xinstall -W ${worksrcpath} psyncwriter runpsync ${destroot}${prefix}/bin
64}
65
66post-activate {
67    touch ${prefix}/var/log/psync.log
68    file attributes ${prefix}/var/log/psync.log -permissions a+rw
69}
70
71# "PsyncX is officially unsupported" —http://psyncx.sourceforge.net/
72livecheck.type      none
73
74notes "
75PsyncX is obsolete and is no longer supported or developed by its developer.\
76It is recommended that you use rsync instead.
77"
78
79if {${os.major} >= 10} {
80notes-append "
81
82PsyncX has not been tested on OS X Snow Leopard and above\
83and may not work at all on your OS version.
84"
85}
Note: See TracBrowser for help on using the repository browser.