[52334] trunk/dports/archivers/9e

toby at macports.org toby at macports.org
Sun Jun 14 03:00:41 PDT 2009


Revision: 52334
          http://trac.macports.org/changeset/52334
Author:   toby at macports.org
Date:     2009-06-14 03:00:34 -0700 (Sun, 14 Jun 2009)
Log Message:
-----------
fix a 64-bit warning, clean up Portfile a bit

Modified Paths:
--------------
    trunk/dports/archivers/9e/Portfile
    trunk/dports/archivers/9e/files/patch-9e.c

Added Paths:
-----------
    trunk/dports/archivers/9e/files/patch-Makefile

Modified: trunk/dports/archivers/9e/Portfile
===================================================================
--- trunk/dports/archivers/9e/Portfile	2009-06-14 08:53:59 UTC (rev 52333)
+++ trunk/dports/archivers/9e/Portfile	2009-06-14 10:00:34 UTC (rev 52334)
@@ -21,22 +21,17 @@
 				sha1 fc966f51a167e4ed3dc371e399bbc8909f074b54 \
 				rmd160 bbcdde8d9b4989a12edd935c6156d80aaf5f8f5e
 
-patchfiles		patch-9e.c
+patchfiles		patch-9e.c patch-Makefile
 
-use_configure	no
+configure {
+    reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/Makefile
+    reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/Makefile
+    reinplace "s|__LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/Makefile
+}
 
-build.args		"CFLAGS=\"${configure.cflags}\"" \
-				"LIBS=\"${configure.ldflags}\""
-
 destroot {
 	xinstall -m 775 ${worksrcpath}/9e ${destroot}${prefix}/bin
 }
 
-variant universal {
-	build.args	"CFLAGS=\"${configure.universal_cflags}\"" \
-				"LIBS=\"${configure.universal_ldflags}\""
-}
-
 # This software has no version
 livecheck.check none
-

Modified: trunk/dports/archivers/9e/files/patch-9e.c
===================================================================
--- trunk/dports/archivers/9e/files/patch-9e.c	2009-06-14 08:53:59 UTC (rev 52333)
+++ trunk/dports/archivers/9e/files/patch-9e.c	2009-06-14 10:00:34 UTC (rev 52334)
@@ -1,5 +1,5 @@
---- 9e.c.orig	2005-04-19 08:59:41.000000000 -0400
-+++ 9e.c	2005-04-19 09:00:03.000000000 -0400
+--- 9e.c.orig	2009-06-14 02:51:47.000000000 -0700
++++ 9e.c	2009-06-14 02:52:33.000000000 -0700
 @@ -4,6 +4,7 @@
  #include <dirent.h>
  #include <errno.h>
@@ -8,3 +8,12 @@
  #include <string.h>
  #include <unistd.h>
  #include <sys/stat.h>
+@@ -144,7 +145,7 @@
+       fout = NULL;
+     } else {
+       if (Verbose)
+-	fprintf(stderr, "%s %d\n", namebuf, size);
++	fprintf(stderr, "%s %ld\n", namebuf, size);
+       if(mode & CHDIR) {
+         assert(size == 0);
+ 	/* Give ourselves read, write, and execute permission */

Added: trunk/dports/archivers/9e/files/patch-Makefile
===================================================================
--- trunk/dports/archivers/9e/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/archivers/9e/files/patch-Makefile	2009-06-14 10:00:34 UTC (rev 52334)
@@ -0,0 +1,18 @@
+--- Makefile.orig	2009-06-14 02:54:11.000000000 -0700
++++ Makefile	2009-06-14 02:56:11.000000000 -0700
+@@ -1,12 +1,12 @@
+ # Makefile for 9e
+ 
+-CC = gcc 
++CC = __CC__
+ 
+-CFLAGS = -g3 -ggdb
++CFLAGS = __CFLAGS__
+ 
+ .PHONY: all clean distclean
+ 
+-LIBS = -lefence
++LIBS = __LDFLAGS__
+ 
+ HDRS = 9a.h
+ SRCS = 9e.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090614/013c1798/attachment.html>


More information about the macports-changes mailing list