[22308] trunk/dports/fuse
source_changes at macosforge.org
source_changes at macosforge.org
Sun Feb 25 18:56:04 PST 2007
Revision: 22308
http://trac.macosforge.org/projects/macports/changeset/22308
Author: eridius at macports.org
Date: 2007-02-25 18:56:04 -0800 (Sun, 25 Feb 2007)
Log Message:
-----------
Upgrade to MacFUSE 0.2.2
Add a complicated extra checksum step to libfuse to detect patchfile updates despite name not changing
Modified Paths:
--------------
trunk/dports/fuse/fusefs/Portfile
trunk/dports/fuse/libfuse/Portfile
Modified: trunk/dports/fuse/fusefs/Portfile
===================================================================
--- trunk/dports/fuse/fusefs/Portfile 2007-02-26 01:56:34 UTC (rev 22307)
+++ trunk/dports/fuse/fusefs/Portfile 2007-02-26 02:56:04 UTC (rev 22308)
@@ -4,7 +4,7 @@
PortGroup xcode 1.0
name fusefs
-version 0.2.1
+version 0.2.2
categories fuse devel
platforms darwin
maintainers eridius at macports.org
@@ -20,8 +20,8 @@
master_sites http://svn.macosforge.org/repository/macports/distfiles/eridius/
distname fusefs-${version}
worksrcdir fusefs
-checksums md5 5fb7f71918d0f7b859c33aedc49245b7 \
- sha1 06a6158113e228afecedb4f2f58bc9ec97525da3
+checksums md5 036e55e7203be82974c55f56504b30a1 \
+ sha1 07b782e71e6b30e3181171feb7618052587af592
use_bzip2 yes
Modified: trunk/dports/fuse/libfuse/Portfile
===================================================================
--- trunk/dports/fuse/libfuse/Portfile 2007-02-26 01:56:34 UTC (rev 22307)
+++ trunk/dports/fuse/libfuse/Portfile 2007-02-26 02:56:04 UTC (rev 22308)
@@ -4,7 +4,7 @@
name libfuse
version 2.6.3
-revision 1
+revision 2
categories fuse devel
platforms darwin
maintainers eridius at macports.org
@@ -22,10 +22,10 @@
platform darwin {
depends_run port:fusefs
- patch_sites http://macfuse.googlecode.com/svn/tags/macfuse-0.2.1/libfuse/
+ patch_sites http://macfuse.googlecode.com/svn/tags/macfuse-0.2.2/libfuse/
patchfiles fuse-2.6.3-macosx.patch
- checksums-append fuse-2.6.3-macosx.patch md5 56dcf57e1a0c0f36e8a5b20becba5f73 \
- sha1 133db78fd18fc0df6b3a93bea658047aa3d402e8
+ checksums-append fuse-2.6.3-macosx.patch md5 845d0f7bd9411d50eb41295425570f00 \
+ sha1 b3e366a238930c3bfb6f1b3a4119c289c54e9146
configure.post_args-append CFLAGS="-D__FreeBSD__=10 -D_POSIX_C_SOURCE=200112L"
@@ -39,4 +39,39 @@
if {![variant_isset 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070225/6c3a8cca/attachment.html
More information about the macports-changes
mailing list