most recent changes, diff for fugu

Index: aqua/fugu/Portfile
--- aqua/fugu/Portfile (revision 27933)
+++ aqua/fugu/Portfile (revision 27934)
@@ -1,37 +1,54 @@
# $Id$
-PortSystem 1.0

+PortSystem 1.0
+PortGroup xcode 1.0
+
name fugu
+set my_name Fugu
version 1.2.0
categories aqua
-maintainers nomaintainer@macports.org
+maintainers nomaintainer
description A Mac OS X SFTP, SCP and SSH Frontend.
+
long_description Fugu is a graphical frontend to the commandline \
Secure File Transfer application (SFTP). SFTP is \
similar to FTP, but unlike FTP, the entire session \
is encrypted, meaning no passwords are sent in \
cleartext form, and is thus much less vulnerable to \
third-party interception.
+
platforms darwin
-homepage http://rsug.itd.umich.edu/software/fugu
-master_sites ${homepage}/files/
-extract.suffix .tgz
-checksums md5 977b15709364f2fc26d0152a7667d379
+homepage http://rsug.itd.umich.edu/software/fugu/
+master_sites ${homepage}files/
+extract.suffix .tgz

-use_configure no
+checksums md5 977b15709364f2fc26d0152a7667d379 \
+ sha1 f52458be93a57b8f7b1438a9bf790d7b8be71247 \
+ rmd160 6b7503b071abea4f764da9cbfc62b6d6e29ab0c2

-build.type pbx
-build.args -buildstyle Deployment -alltargets
-build.target
+xcode.destroot.settings SKIP_INSTALL=yes

-patchfiles patch-project.pbxproj
+# Dummy configure to enable universal variant.
+use_configure yes
+configure {}

-destroot {
- xinstall -d -m 0755 ${destroot}/Applications/MacPorts
- if {$xcodeversion == "2.1"} {
- cd ${worksrcpath}/build/Deployment
- } else {
- cd ${worksrcpath}/build
- }
- file copy Fugu.app ${destroot}/Applications/MacPorts/
+post-patch {
+ reinplace "s|build/|build/${xcode.configuration}/|" \
+ ${worksrcpath}/Fugu.pbproj/project.pbxproj
}
+
+post-destroot {
+ xinstall -d ${destroot}/Applications/MacPorts
+ copy ${worksrcpath}/build/UninstalledProducts/${my_name}.app \
+ ${destroot}/Applications/MacPorts
+}
+
+variant universal {
+ build.args "ARCHS=\"i386 ppc\""
+ destroot.args ${build.args}
+}
+
+livecheck.check regex
+livecheck.url ${homepage}
+livecheck.regex "${my_name} (\\d+(?:\\.\\d+)*)"
+