source: trunk/dports/aqua/cotvnc/Portfile @ 113174

Last change on this file since 113174 was 103779, checked in by ryandesign@…, 7 years ago

cotvnc: remove unnecessary reinplace

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 103779 2013-03-07 05:15:25Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup xcode 1.0
6
7name            cotvnc
8version         2.0b4
9revision        1
10categories-append vnc
11maintainers     nomaintainer
12license         GPL-2
13
14description     Chicken of the VNC is a VNC client for Mac OS X
15long_description    Chicken of the VNC is a Cocoa based VNC client for \
16                    Mac OS X. A VNC client allows one to display and \
17                    interact with a remote computer screen. In other \
18                    words, you can use Chicken of the VNC to interact \
19                    with a remote computer as though it is right next to \
20                    you.
21homepage        http://sourceforge.net/projects/cotvnc/
22master_sites    sourceforge:project/cotvnc/cotvnc/Chicken%20of%20the%20VNC%20${version}
23distname        ${name}-[strsed ${version} {g/[.]//}]-source
24extract.suffix  .tgz
25checksums       md5 9383068b0a381857551404c86bd05dc1 \
26                sha1 1a749854f314d62d1e54b9ae1ce5ac13bb20f1e8 \
27                rmd160 dce9aafff048545e2612c6795c0ee118f3bc0da8
28
29depends_build   bin:iconv:libiconv
30
31depends_lib     lib:libz.1:zlib
32
33patchfiles      patch-project.pbxproj.diff
34
35worksrcdir      ${name}
36
37post-patch {
38    # .strings files should be UTF-16 but this project's are UTF-8.
39    # New Xcode versions convert them for us but we need a predictable
40    # encoding for the sed script that the Xcode project runs.
41    foreach f [glob ${worksrcpath}/Resources/*.lproj/InfoPlist.strings] {
42        move ${f} ${f}.tmp
43        system "iconv -f UTF-8 -t UTF-16 ${f}.tmp > ${f}"
44    }
45}
46
47xcode.destroot.settings SKIP_INSTALL=NO
48
49# Fix non-root destroot.
50# (this is a workaround for bug rdar://5071108).
51pre-destroot {
52    fs-traverse dir ${worksrcpath}/build {
53        if {[file isdirectory ${dir}]} {
54            file attributes ${dir} -permissions u+w
55        }
56    }
57}
58post-destroot {
59    fs-traverse dir ${destroot} {
60        if {[file isdirectory ${dir}]} {
61            file attributes ${dir} -permissions u+w
62        }
63    }
64}
65
66livecheck.regex "/cotvnc/Chicken\ of\ the\ VNC\ (\[a-zA-Z0-9.\]+)/${name}-(\[a-zA-Z0-9\]+)-source${extract.suffix}"
67livecheck.type  regex
68livecheck.url   http://sourceforge.net/api/file/index/project-id/64347/mtime/desc/limit/20/rss
Note: See TracBrowser for help on using the repository browser.