source: trunk/dports/fuse/macfuse/Portfile @ 61907

Last change on this file since 61907 was 61907, checked in by macsforever2000@…, 11 years ago

Update to version 2.0.3. (#18671)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 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 61907 2009-12-23 14:05:58Z macsforever2000@macports.org $
3
4PortSystem 1.0
5
6name                macfuse
7version             2.0.3
8categories          fuse devel
9platforms           macosx
10maintainers         eridius
11description         A FUSE-Compliant File System Implementation Mechanism for \
12                    Mac OS X
13
14long_description    MacFUSE implements a mechanism that makes it possible to  \
15                    implement a fully functional file system in a user-space  \
16                    program on Mac OS X (10.4 and above). It aims to be       \
17                    API-compliant with the FUSE (File-system in USErspace)    \
18                    mechanism that originated on Linux.  Therefore, many      \
19                    existing FUSE file systems become readily usable on       \
20                    Mac OS X. The core of MacFUSE is in a dynamically         \
21                    loadable kernel extension.
22
23homepage            http://code.google.com/p/macfuse/
24master_sites        macports
25use_bzip2           yes
26worksrcdir          core
27checksums           md5     97ab76bbade128828596aca878c6c475 \
28                    sha1    60ea1536091740e2faeb9ebf72d8696ccd11ce2f \
29                    rmd160  e9a79de37d84ee5e21f63f02b924d04a5df94636
30
31patchfiles          patch-10.5-to-10.6.diff \
32                    patch-macfuse_buildtool.sh.diff \
33                    patch-sdk-objc_GMUserFileSystem.m.diff \
34                    patch-sdk-objc_MacFuse.xcodeproj.diff \
35                    patch-10.4_libfuse_fuse-2.7.3-macosx.patch.diff \
36                    patch-10.5_libfuse_fuse-2.7.3-macosx.patch.diff \
37                    patch-10.6_libfuse_fuse-2.7.3-macosx.patch.diff
38
39livecheck.type      googlecode
40livecheck.distname  MacFUSE-(.*)%2C.*.dmg
41
42use_configure       no
43
44variant universal {
45    # provide a dummy variant since the script will actually build universal
46    # and we don't want to error out if someone says +universal
47}
48
49# ensure that user is running OS X 10.4 or higher
50pre-fetch {
51    if {${os.platform} != "darwin" || [rpm-vercomp ${os.version} 8.0.0] < 0} {
52        return -code error "MacFUSE requires at least Mac OS X 10.4 to run"
53    }
54}
55
56# copy 10.5 source directory to 10.6 to prepare for the 10.5-to-10.6 patch
57# (this patch really should be applied upstream)
58#
59# use cp -R instead of cp -r or copy to preserve symlinks
60pre-patch {
61    system "cp -R ${worksrcpath}/10.5 ${worksrcpath}/10.6"
62}
63
64post-patch {
65    reinplace s,/usr/local,${prefix},g ${worksrcpath}/macfuse_buildtool.sh
66    reinplace s,/usr/local,${prefix},g ${worksrcpath}/sdk-objc/MacFUSE.xcodeproj/project.pbxproj
67    reinplace s,@@PREFIX@@,${prefix},g ${worksrcpath}/10.6/libfuse/fuse-2.7.3-macosx.patch
68    reinplace s,@@WORKPATH@@,${workpath},g ${worksrcpath}/macfuse_buildtool.sh
69    reinplace s,@@DESTPATH@@,${destpath},g ${worksrcpath}/macfuse_buildtool.sh
70}
71
72# macfuse_buildtool has been patched to install directly into ${destpath},
73# so destroot phase is unnecessary
74build {
75     system "cd ${worksrcpath} && ./macfuse_buildtool.sh -t smalldist"
76}
77
78destroot.violate_mtree yes
79
80destroot {
81}
82
83post-activate {
84    if {[string length [exec kextstat -lb com.google.filesystems.fusefs]] > 0} {
85        ui_msg "********************************************************"
86        ui_msg "*  fusefs is already loaded. You may need to restart.  *"
87        ui_msg "*  Alternatively, if feeling adventurous, you can run  *"
88        ui_msg "*  `sudo kextunload -b com.google.filesystems.fusefs`  *"
89        ui_msg "********************************************************"
90    }
91}
Note: See TracBrowser for help on using the repository browser.