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

Last change on this file since 50980 was 50980, checked in by and.damore@…, 11 years ago

Maintainers batch change, removed @macports.org

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
RevLine 
[21623]1# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $
2
3PortSystem 1.0
4
[36271]5name                macfuse
[38081]6version             1.7
[43046]7revision            1
[21623]8categories          fuse devel
[36860]9platforms           macosx
[50980]10maintainers         eridius
[21623]11description         A FUSE-Compliant File System Implementation Mechanism for Mac OS X
12long_description    MacFUSE implements a mechanism that makes it possible to implement \
13                    a fully functional file system in a user-space program on Mac OS X \
14                    (10.4 and above). It aims to be API-compliant with the FUSE \
15                    (File-system in USErspace) mechanism that originated on Linux. \
16                    Therefore, many existing FUSE file systems become readily usable on \
17                    Mac OS X. The core of MacFUSE is in a dynamically loadable kernel extension.
18
19homepage            http://code.google.com/p/macfuse/
[27917]20master_sites        macports
[43046]21distname            macfuse-${version}-1
[36271]22worksrcdir          macfuse-core
[43046]23checksums           md5 e2a8d2dcf116ec806d47bd050b77dd23 \
24                    sha1 5989a81a86ce74fadedf9c06119c6c279cd1cb6c
[21623]25
[38081]26patchfiles          patch-10.4-project.pbxproj \
27                    patch-10.5-project.pbxproj \
28                    patch-10.5-packaging-macfuse-core-make-pkg.sh \
29                    patch-build_macfuse.sh
[36749]30
[32055]31livecheck.distname  MacFUSE-Core-(.*).dmg
32livecheck.version   10.5-${version}.1
[23885]33
[21623]34use_bzip2           yes
35
[36271]36use_configure       no
37
[27774]38destroot.violate_mtree yes
39
[36271]40# patchfiles          patch-project.pbxproj
[21623]41
[36271]42variant universal {
43    # provide a dummy variant since the script will actually build universal
44    # and we don't want to error out if someone says +universal
45}
46
[32055]47# ensure that user is running OS X 10.4 or higher
[21623]48pre-fetch {
[36860]49    if {${os.platform} != "darwin" || [rpm-vercomp ${os.version} 8.0.0] < 0} {
[32055]50        return -code error "MacFUSE requires at least Mac OS X 10.4 to run"
[21623]51    }
52}
53
[36271]54build {
55    system "cd ${worksrcpath} && ./build_macfuse.sh | sed -ne '/^created: /h;p;$\{g;s/^created: //
56                w ../dmgname
57            \}'; exit $\{PIPESTATUS\[0\]\}"
58}
59
[21623]60destroot {
[47182]61    delete ${destpath}${prefix}
[36271]62    set dmgname [exec cat ${workpath}/dmgname]
63    # we know the build script generates a .tar.bz2 right next to the dmg
[36287]64    set tarname [string tolower [string replace $dmgname end-2 end "tar.bz2"]]
[36271]65    system "tar -xjf $tarname -C ${destpath}"
[47182]66    file rename ${destpath}/usr/local ${destpath}${prefix}
[36271]67    foreach f [list "pkgconfig/fuse.pc" "libfuse.la" "libulockmgr.la"] {
[47182]68        set path "${destpath}${prefix}/lib/${f}"
69        reinplace s,/usr/local,${prefix}, $path
[31527]70    }
[43046]71    set libfuse_version 0
72    foreach lib [list "libulockmgr.0" "libfuse.${libfuse_version}"] {
[47182]73        set libpath "${prefix}/lib/${lib}.dylib"
[36271]74        system "install_name_tool -id ${libpath} ${destpath}${libpath}"
[21623]75    }
[47182]76    system "install_name_tool -change /usr/local/lib/libfuse.${libfuse_version}.dylib ${prefix}/lib/libfuse.${libfuse_version}.dylib ${destpath}/Library/Frameworks/MacFUSE.framework/Versions/A/MacFUSE"
[36271]77    # delete the whole directory the build script creates
78    # when updating this Portfile DOUBLE CHECK THIS LINE
79    delete [file dirname $dmgname]
[21966]80}
81
82post-activate {
83    if {[string length [exec kextstat -lb com.google.filesystems.fusefs]] > 0} {
84        ui_msg "********************************************************"
85        ui_msg "*  fusefs is already loaded. You may need to restart.  *"
86        ui_msg "*  Alternatively, if feeling adventurous, you can run  *"
87        ui_msg "*  `sudo kextunload -b com.google.filesystems.fusefs`  *"
88        ui_msg "********************************************************"
89    }
[22050]90}
Note: See TracBrowser for help on using the repository browser.