[31528] trunk/dports/fuse/libfuse/Portfile
takanori at macports.org
takanori at macports.org
Tue Nov 27 02:19:51 PST 2007
Revision: 31528
http://trac.macosforge.org/projects/macports/changeset/31528
Author: takanori at macports.org
Date: 2007-11-27 02:19:50 -0800 (Tue, 27 Nov 2007)
Log Message:
-----------
libfuse: MacFUSE 1.1
Modified Paths:
--------------
trunk/dports/fuse/libfuse/Portfile
Modified: trunk/dports/fuse/libfuse/Portfile
===================================================================
--- trunk/dports/fuse/libfuse/Portfile 2007-11-27 10:19:11 UTC (rev 31527)
+++ trunk/dports/fuse/libfuse/Portfile 2007-11-27 10:19:50 UTC (rev 31528)
@@ -3,8 +3,9 @@
PortSystem 1.0
name libfuse
-version 2.6.5
-revision 1
+version 2.7.1
+revision 2
+set macfuse_version 1.1
categories fuse devel
platforms darwin
maintainers eridius at macports.org
@@ -13,67 +14,46 @@
homepage http://fuse.sourceforge.net/
-distname fuse-${version}
-master_sites sourceforge:fuse
-checksums ${distfiles} md5 66bd30503df55a87b9868835ca5a45bc \
- sha1 bbb6baa147ff9057b66a64f10e5027434468c0aa
+master_sites macports:fusefs
+distname macfuse-${macfuse_version}
+dist_subdir fusefs
+checksums md5 42487d7684b1f9a8eb2f8a61b10f7913 \
+ sha1 6347e5b6b0f810a3e5b0fbc82cbccfdf3f4c6311
-livecheck.distname fuse-2.X
+platform darwin 8 {}
-depends_lib port:pkgconfig
-
-platform darwin {
- depends_run port:fusefs
- patch_sites http://macfuse.googlecode.com/svn/tags/macfuse-0.4.0/libfuse/
- patchfiles fuse-2.6.5-macosx.patch
- checksums-append fuse-2.6.5-macosx.patch md5 96c27b9d8c5d719ff7db99064c21ec87 \
- sha1 edbf8769809eea32f9f83e7fa7e8b791e6cbe106
-
- configure.post_args-append CFLAGS="-D__FreeBSD__=10 -D_POSIX_C_SOURCE=200112L"
-
- # override patch.pre_args since it defaults to -p0
- patch.pre_args -p1
+if {[variant_isset darwin_8]} {
+ set product_version 10.4
+} else {
+ set product_version 10.5
}
+worksrcdir ${distname}/core/${product_version}/${name}/fuse-${version}
+
+#livecheck.distname fuse-2.X
+
+use_bzip2 yes
+
+depends_lib port:pkgconfig
+depends_run port:fusefs
+
pre-fetch {
# LibFUSE currently only works on OS X
# so error out if attempting to install elsewhere
- if {![variant_isset darwin]} {
+ if {${os.platform} != "darwin"} {
return -code error "LibFUSE is only supported for Mac OS X"
}
-
- if {[variant_isset darwin]} {
- patch_checksum
- }
}
-proc patch_checksum {} {
- global checksums_array UI_PREFIX
- # assume we only have one patchfile, because at the moment that's true
- set patchfile [option patchfiles]
- # do our own checksumming of an existing $patchfile because URL changes between revisions
- # if the checksum fails, delete the patchfile
- # a lot of this code is copied from checksum_main
- # Eventually this technique should be replaced with a patchfile dist subdir
- if {[file exists [option distpath]/$patchfile]} {
- ui_info "$UI_PREFIX $patchfile exists, checksumming to detect URL change"
- if {[parse_checksums [option checksums]] == "yes"} {
- ui_info "$UI_PREFIX [format [msgcat::mc "Checksumming %s"] $patchfile]"
- set fullpath [file join [option distpath] $patchfile]
- if {[info exists checksums_array($patchfile)]} {
- set checksums $checksums_array($patchfile)
-
- foreach {type sum} $checksums {
- set calculated_sum [calc_$type $fullpath]
- if {![string equal $sum $calculated_sum]} {
- ui_debug "Checksum mismatch for $patchfile"
- delete $fullpath
- break
- }
- }
- }
- } else {
- return -code error "Unable to parse checksum string"
- }
- }
-}
\ No newline at end of file
+post-extract {
+ system "cd ${workpath}/${distname}/core/${product_version}/${name} && gzip -dc fuse-current.tar.gz | tar --no-same-owner -xf -"
+ system "cd ${worksrcpath} && patch -p1 < ../fuse-current-macosx.patch"
+}
+
+patch {
+ reinplace "s|--prefix=/usr/local|--prefix=${prefix}|" ${worksrcpath}/darwin_configure.sh
+}
+
+configure {
+ system "cd ${worksrcpath} && /bin/sh ./darwin_configure.sh ${workpath}/${distname}/core/${product_version}/fusefs"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071127/4a47b72c/attachment.html
More information about the macports-changes
mailing list