source: trunk/dports/aqua/PsyncX/Portfile @ 135926

Last change on this file since 135926 was 122473, checked in by ryandesign@…, 6 years ago

PsyncX: use perl5.16 (#44405)

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