[79873] trunk/dports/print/psutils
jeremyhu at macports.org
jeremyhu at macports.org
Tue Jun 28 16:49:15 PDT 2011
Revision: 79873
http://trac.macports.org/changeset/79873
Author: jeremyhu at macports.org
Date: 2011-06-28 16:49:15 -0700 (Tue, 28 Jun 2011)
Log Message:
-----------
psutils: clang build fix and nomaintainer (maintainer 550s)
Modified Paths:
--------------
trunk/dports/print/psutils/Portfile
Added Paths:
-----------
trunk/dports/print/psutils/files/
trunk/dports/print/psutils/files/clang.patch
Modified: trunk/dports/print/psutils/Portfile
===================================================================
--- trunk/dports/print/psutils/Portfile 2011-06-28 23:42:53 UTC (rev 79872)
+++ trunk/dports/print/psutils/Portfile 2011-06-28 23:49:15 UTC (rev 79873)
@@ -6,7 +6,7 @@
version p17
revision 1
categories print
-maintainers jp-www at dcs.gla.ac.uk
+maintainers nomaintainer
description Useful utilities for manipulating PostScript documents
long_description PSUtils is a collection of useful utilities for \
manipulating PostScript documents. Programs included \
@@ -22,6 +22,8 @@
worksrcdir ${name}
+patchfiles clang.patch
+
pre-configure {
file rename ${worksrcpath}/Makefile.unix ${worksrcpath}/Makefile
reinplace "s|/usr/local/bin/perl|perl|" "${worksrcpath}/Makefile"
Added: trunk/dports/print/psutils/files/clang.patch
===================================================================
--- trunk/dports/print/psutils/files/clang.patch (rev 0)
+++ trunk/dports/print/psutils/files/clang.patch 2011-06-28 23:49:15 UTC (rev 79873)
@@ -0,0 +1,128 @@
+diff -Naurp epsffit.c epsffit.c
+--- epsffit.c 1997-03-11 14:52:52.000000000 -0800
++++ epsffit.c 2011-06-28 14:37:30.000000000 -0700
+@@ -39,7 +39,7 @@ static void usage(void)
+ exit(1);
+ }
+
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+ int bbfound = 0; /* %%BoundingBox: found */
+ int urx, ury, llx, lly;
+@@ -185,5 +185,5 @@ void main(int argc, char **argv)
+ } else
+ message(FATAL, "no %%%%BoundingBox:\n");
+
+- exit(0);
++ return 0;
+ }
+diff -Naurp psbook.c psbook.c
+--- psbook.c 1997-03-11 14:53:01.000000000 -0800
++++ psbook.c 2011-06-28 14:37:30.000000000 -0700
+@@ -32,7 +32,7 @@ static void usage(void)
+ }
+
+
+-void main(int argc, char *argv[])
++int main(int argc, char *argv[])
+ {
+ int signature = 0;
+ int currentpg, maxpage;
+@@ -107,5 +107,5 @@ void main(int argc, char *argv[])
+ }
+ writetrailer();
+
+- exit(0);
++ return 0;
+ }
+diff -Naurp pserror.c pserror.c
+--- pserror.c 1997-03-11 14:53:01.000000000 -0800
++++ pserror.c 2011-06-28 14:38:36.000000000 -0700
+@@ -24,7 +24,7 @@ extern char *program ; /* Defined by mai
+ void message(int flags, char *format, ...)
+ {
+ va_list args ;
+- static column = 0 ; /* current screen column for message wrap */
++ static int column = 0 ; /* current screen column for message wrap */
+ char msgbuf[MAX_MESSAGE] ; /* buffer in which to put the message */
+ char *bufptr = msgbuf ; /* message buffer pointer */
+
+diff -Naurp psnup.c psnup.c
+--- psnup.c 1997-03-11 14:53:02.000000000 -0800
++++ psnup.c 2011-06-28 14:37:30.000000000 -0700
+@@ -66,7 +66,7 @@ static int nextdiv(int n, int m)
+ return (0);
+ }
+
+-void main(int argc, char *argv[])
++int main(int argc, char *argv[])
+ {
+ int horiz, vert, rotate, column, flip, leftright, topbottom;
+ int nup = 1;
+@@ -331,6 +331,6 @@ void main(int argc, char *argv[])
+ pstops(nup, 1, 0, specs, draw); /* do page rearrangement */
+ }
+
+- exit(0);
++ return 0;
+ }
+
+diff -Naurp psresize.c psresize.c
+--- psresize.c 1997-03-11 14:53:03.000000000 -0800
++++ psresize.c 2011-06-28 14:37:30.000000000 -0700
+@@ -46,7 +46,7 @@ static void argerror(void)
+ #define MIN(x,y) ((x) > (y) ? (y) : (x))
+ #define MAX(x,y) ((x) > (y) ? (x) : (y))
+
+-void main(int argc, char *argv[])
++int main(int argc, char *argv[])
+ {
+ double scale, rscale; /* page scale */
+ double waste, rwaste; /* amount wasted */
+@@ -175,6 +175,6 @@ void main(int argc, char *argv[])
+
+ pstops(1, 1, 0, specs, 0.0); /* do page rearrangement */
+
+- exit(0);
++ return 0;
+ }
+
+diff -Naurp psselect.c psselect.c
+--- psselect.c 1997-03-11 14:53:03.000000000 -0800
++++ psselect.c 2011-06-28 14:37:30.000000000 -0700
+@@ -91,7 +91,7 @@ static PageRange *addrange(char *str, Pa
+ }
+
+
+-void main(int argc, char *argv[])
++int main(int argc, char *argv[])
+ {
+ int currentpg, maxpage = 0;
+ int even = 0, odd = 0, reverse = 0;
+@@ -235,5 +235,5 @@ void main(int argc, char *argv[])
+ }
+ writetrailer();
+
+- exit(0);
++ return 0;
+ }
+diff -Naurp pstops.c pstops.c
+--- pstops.c 1997-03-11 14:53:04.000000000 -0800
++++ pstops.c 2011-06-28 14:37:30.000000000 -0700
+@@ -112,7 +112,7 @@ static PageSpec *parsespecs(char *str)
+ return (head);
+ }
+
+-void main(int argc, char *argv[])
++int main(int argc, char *argv[])
+ {
+ PageSpec *specs = NULL;
+ int nobinding = 0;
+@@ -194,5 +194,5 @@ void main(int argc, char *argv[])
+
+ pstops(modulo, pagesperspec, nobinding, specs, draw);
+
+- exit(0);
++ return 0;
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110628/4454fc32/attachment-0001.html>
More information about the macports-changes
mailing list