Ticket #25236: Portfile

File Portfile, 2.7 KB (added by jdunn@…, 14 years ago)
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$
3
4PortSystem      1.0
5PortGroup       archcheck 1.0
6
7name            gvfs
8version         1.6.2
9set branch      [join [lrange [split ${version} .] 0 1] .]
10maintainers     nomaintainer
11categories      devel
12platforms       darwin
13description     The Gnome Virtual File System.
14
15long_description \
16    gvfs is a userspace virtual filesystem designed \
17    to work with the i/o abstractions of gio (a new \
18    library available with glib). It installs several \
19    modules that are automatically used by applications \
20    using the APIs of libgio. The gvfs model differs \
21    from e.g. gnome-vfs in that filesystems must be \
22    mounted before they are used. There is a central \
23    daemon (gvfsd) that handles coordinting mounts, and \
24    then each mount is (typically) in its own daemon \
25    process (although mounts can share daemon process). \
26    gvfs comes with a set of backends, including trash \
27    support, sftp, smb, http, dav and others. There is \
28    a set of command line programs starting with gvfs- \
29    that lets you run commands (like cat, ls, stat, etc) \
30    on files in the gvfs.
31
32homepage        http://www.gnome.org/
33master_sites    gnome:sources/${name}/${branch}/
34use_bzip2       yes
35
36checksums       md5 6ed1d943d1c1b8b15a6b180a6cd51043
37
38post-patch {
39    reinplace s/(unix)/(is_unix)/ ${worksrcpath}/daemon/gvfsftpdircache.c
40}
41
42depends_build   port:pkgconfig \
43                port:intltool
44
45depends_lib \
46    port:gconf \
47    port:gettext \
48    path:lib/pkgconfig/glib-2.0.pc:glib2 \
49    port:gnome-keyring \
50    port:libarchive \
51    port:libsoup \
52    port:libxml2
53
54archcheck.files \
55    lib/libarchive.dylib \
56    lib/libglib-2.0.dylib \
57    lib/libintl.dylib \
58    lib/libsoup-2.4.dylib \
59    lib/libxml2.dylib
60
61configure.args  --disable-avahi \
62                --disable-fuse \
63                --disable-hal \
64                --disable-cdda \
65                --disable-obexftp \
66                --disable-gphoto2 \
67                --disable-samba \
68
69test.run        yes
70test.target     check
71
72post-destroot {
73    set docdir ${prefix}/share/doc/${name}
74    xinstall -d ${destroot}${docdir}
75    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING MAINTAINERS NEWS README \
76        ${destroot}${docdir}
77}
78
79variant no_gnome description "Disable GNOME support" {
80    depends_lib-delete \
81        port:gconf \
82        port:gnome-keyring
83
84    configure.args-append \
85        --disable-keyring \
86        --disable-gconf
87}
88
89livecheck.type  regex
90livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
91livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}