[36272] trunk/dports/fuse/procfs

eridius at macports.org eridius at macports.org
Fri Apr 25 04:30:57 PDT 2008


Revision: 36272
          http://trac.macosforge.org/projects/macports/changeset/36272
Author:   eridius at macports.org
Date:     2008-04-25 04:30:56 -0700 (Fri, 25 Apr 2008)

Log Message:
-----------
Update procfs to version 2.0 and the new macfuse port

Modified Paths:
--------------
    trunk/dports/fuse/procfs/Portfile

Removed Paths:
-------------
    trunk/dports/fuse/procfs/files/patch-Makefile

Modified: trunk/dports/fuse/procfs/Portfile
===================================================================
--- trunk/dports/fuse/procfs/Portfile	2008-04-25 11:30:48 UTC (rev 36271)
+++ trunk/dports/fuse/procfs/Portfile	2008-04-25 11:30:56 UTC (rev 36272)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name                procfs
-version             1.5; # taken from MACFUSE_PROCFS_VERSION in procfs.cc
+version             2.0; # taken from MACFUSE_PROCFS_VERSION in procfs.cc
 categories          fuse
 platforms           darwin
 maintainers         eridius at macports.org
@@ -13,25 +13,39 @@
 homepage            http://osxbook.com/book/bonus/chapter11/procfs/
 master_sites        macports
 distname            procfs-${version}
-worksrcdir          procfs
-checksums           md5 4ec560cb53712ae38b967b5354f01067 \
-                    sha1 0147d4cc5af1f06af3e9073dca2ef1633016a90a
+worksrcdir          procfs-${version}
+checksums           md5 f86caba1b5f028f9f232b039b2889c8f \
+                    sha1 001e394425d10b3e19b37878d110bc965f959150
 
 use_bzip2           yes
 
-patchfiles          patch-Makefile
-
 livecheck.check     regex
 livecheck.url       http://macfuse.googlecode.com/svn/trunk/filesystems/procfs/procfs.cc
 livecheck.regex     {#define MACFUSE_PROCFS_VERSION "(.*?)"}
 
-depends_lib         port:libfuse port:pcre
+depends_lib         port:pcre port:macfuse
 
-configure {
-    reinplace s|@@DESTROOT@@|${destroot}|g ${worksrcpath}/Makefile
-    reinplace s|@@PREFIX@@|${prefix}|g ${worksrcpath}/Makefile
+use_configure       no
+
+variant universal {
+    # dummy variant, the magic happens in post-patch
 }
 
-platform darwin {
-    depends_run         port:fusefs
+post-patch {
+    reinplace "
+:start
+/^install:/binstall
+s,/usr/local,${prefix},g
+n
+bstart
+:install
+n
+/^\[^\[:space:\]\]/bstart
+s,/usr/local,${destroot}${prefix},g
+n
+binstall
+" ${worksrcpath}/Makefile
+    if {![variant_isset universal]} {
+        reinplace "s,-arch i386 -arch ppc ,," ${worksrcpath}/Makefile
+    }
 }

Deleted: trunk/dports/fuse/procfs/files/patch-Makefile
===================================================================
--- trunk/dports/fuse/procfs/files/patch-Makefile	2008-04-25 11:30:48 UTC (rev 36271)
+++ trunk/dports/fuse/procfs/files/patch-Makefile	2008-04-25 11:30:56 UTC (rev 36272)
@@ -1,33 +0,0 @@
---- Makefile.old	2007-06-19 11:05:07.000000000 -0700
-+++ Makefile	2007-06-19 11:06:12.000000000 -0700
-@@ -5,17 +5,17 @@
- #
- # http://code.google.com/p/macfuse/
- 
--CPPFLAGS=-D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -O -g -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk
--LDFLAGS=-L/usr/local/lib -lfuse -framework Carbon -framework IOKit -framework ApplicationServices -framework Accelerate -framework OpenGL -lproc
-+CPPFLAGS=-D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -O2
-+LDFLAGS=-L@@PREFIX@@/lib -lfuse -framework Carbon -framework IOKit -framework ApplicationServices -framework Accelerate -framework OpenGL -lproc
- SEQUENCEGRAB_LDFLAGS=-framework AudioUnit -framework Cocoa -framework CoreAudioKit -framework Foundation -framework QuartzCore -framework QuickTime -framework QuartzCore
- 
- # Configure this depending on where you installed pcrecpp
- # http://www.pcre.org
- #
--PCRECPP_PREFIX=/usr/local
-+PCRECPP_PREFIX=@@PREFIX@@
- 
- PCRECPP_CPPFLAGS=-I$(PCRECPP_PREFIX)/include
--PCRECPP_LDFLAGS=-arch i386 -arch ppc $(PCRECPP_PREFIX)/lib/libpcrecpp.a $(PCRECPP_PREFIX)/lib/libpcre.a
-+PCRECPP_LDFLAGS=$(PCRECPP_PREFIX)/lib/libpcrecpp.a $(PCRECPP_PREFIX)/lib/libpcre.a
- 
- all: procfs
- 
-@@ -40,7 +40,7 @@
- install: procfs
- 	sudo chown root:wheel procfs
- 	sudo chmod u+s procfs
--	sudo mv procfs /usr/local/bin/procfs
-+	sudo mv procfs @@DESTROOT@@@@PREFIX@@/bin/procfs
- 
- clean:
- 	rm -f procfs procfs.o procfs_displays.o procfs_proc_info.o procfs_tpm.o

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080425/79006d90/attachment.html


More information about the macports-changes mailing list