Revision
37963
Author
raimue@macports.org
Date
2008-06-30 19:00:14 -0700 (Mon, 30 Jun 2008)

Log Message

fuse/gmailfs:
Add new port for GmailFS

Added Paths

Diff

Added: trunk/dports/fuse/gmailfs/Portfile (0 => 37963)


--- trunk/dports/fuse/gmailfs/Portfile	                        (rev 0)
+++ trunk/dports/fuse/gmailfs/Portfile	2008-07-01 02:00:14 UTC (rev 37963)
@@ -0,0 +1,51 @@
+# $Id$
+
+PortSystem 1.0
+
+name            gmailfs
+version         0.8.0
+categories      fuse
+platforms       macosx
+maintainers     raimue \
+                openmaintainer
+
+description     GmailFS provides a mountable filesystem
+long_description \
+    Gmail Filesystem provides a mountable filesystem which uses your \
+    Gmail account as its storage medium.
+homepage        http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html
+
+master_sites    http://richard.jones.name/google-hacks/gmail-filesystem/
+checksums       md5     828417eb7355b61b0f474eabc826317f \
+                sha1    c2a7e14d42d98ed3a6adbfab6c3518f9674bdbd8 \
+                rmd160  ec96fd7b76a964f93b7e5d1a9c12926641d67196
+
+depends_run     port:macfuse \
+                port:python25 \
+                port:py25-hashlib \
+                port:py25-socket-ssl \
+                port:py25-openssl \
+                port:py25-libgmail \
+                port:fuse-bindings-python25
+
+patch {
+    reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.5|" ${worksrcpath}/gmailfs.py ${worksrcpath}/mount.gmailfs ${worksrcpath}/tests.py
+    reinplace "s|/usr/share/gmailfs/gmailfs.py|${prefix}/share/gmailfs/gmailfs.py|" ${worksrcpath}/mount.gmailfs
+}
+
+use_configure no
+
+build {}
+
+destroot.violate_mtree  yes
+
+destroot {
+    xinstall -d 755 -d ${destroot}${prefix}/share/${name}/
+    xinstall -m 755 -W ${worksrcpath} gmailfs.py tests.py ${destroot}${prefix}/share/${name}
+    xinstall -d 755 -d ${destroot}/sbin/
+    xinstall -m 755 -W ${worksrcpath} mount.gmailfs ${destroot}/sbin/mount_gmailfs
+
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/
+    xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog gmailfs.conf \
+        ${destroot}${prefix}/share/doc/${name}/
+}
Property changes on: trunk/dports/fuse/gmailfs/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native