source: trunk/dports/aqua/fugu/Portfile

Last change on this file was 116585, checked in by jmr@…, 4 years ago

fugu: fix build with recent Xcode

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 116585 2014-01-29 14:14:53Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               xcode 1.0
5
6name                    fugu
7set my_name             Fugu
8version                 1.2.0
9license                 MIT
10maintainers             nomaintainer
11description             A Mac OS X SFTP, SCP and SSH Frontend.
12
13long_description        Fugu is a graphical frontend to the commandline \
14                        Secure File Transfer application (SFTP). SFTP is \
15                        similar to FTP, but unlike FTP, the entire session \
16                        is encrypted, meaning no passwords are sent in \
17                        cleartext form, and is thus much less vulnerable to \
18                        third-party interception.
19
20homepage                http://rsug.itd.umich.edu/software/fugu/
21master_sites    ${homepage}files/
22extract.suffix  .tgz
23
24checksums               md5 977b15709364f2fc26d0152a7667d379 \
25                                sha1 f52458be93a57b8f7b1438a9bf790d7b8be71247 \
26                                rmd160 6b7503b071abea4f764da9cbfc62b6d6e29ab0c2
27
28supported_archs i386 ppc
29
30xcode.destroot.settings SKIP_INSTALL=yes
31
32if {${os.major} >= 11} {
33    patchfiles-append no-TruncateThemeText.patch
34}
35
36post-patch {
37    if {[vercmp $xcodeversion 4.0] >= 0} {
38        move ${worksrcpath}/Fugu.pbproj ${worksrcpath}/Fugu.xcodeproj
39        file copy -force ${filespath}/project.pbxproj ${worksrcpath}/Fugu.xcodeproj/
40        reinplace "s|build/|build/${xcode.configuration}/|" \
41            ${worksrcpath}/Fugu.xcodeproj/project.pbxproj
42    } else {
43        reinplace "s|build/|build/${xcode.configuration}/|" \
44            ${worksrcpath}/Fugu.pbproj/project.pbxproj
45        }
46}
47
48post-destroot {
49        delete ${worksrcpath}/build/${xcode.configuration}/${my_name}.app/${my_name}.app
50        xinstall -d ${destroot}${applications_dir}
51        copy ${worksrcpath}/build/${xcode.configuration}/${my_name}.app \
52                ${destroot}${applications_dir}
53}
54
55livecheck.type  regex
56livecheck.url   ${homepage}
57livecheck.regex "${my_name} (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.