[41152] trunk/dports/graphics/pstoedit
blb at macports.org
blb at macports.org
Sat Oct 25 19:18:35 PDT 2008
Revision: 41152
http://trac.macports.org/changeset/41152
Author: blb at macports.org
Date: 2008-10-25 19:18:35 -0700 (Sat, 25 Oct 2008)
Log Message:
-----------
graphics/pstoedit - add a quiet switch, ticket #12011
Modified Paths:
--------------
trunk/dports/graphics/pstoedit/Portfile
Added Paths:
-----------
trunk/dports/graphics/pstoedit/files/
trunk/dports/graphics/pstoedit/files/patch-src-pstoedit.diff
Modified: trunk/dports/graphics/pstoedit/Portfile
===================================================================
--- trunk/dports/graphics/pstoedit/Portfile 2008-10-26 02:09:54 UTC (rev 41151)
+++ trunk/dports/graphics/pstoedit/Portfile 2008-10-26 02:18:35 UTC (rev 41152)
@@ -4,6 +4,7 @@
name pstoedit
version 3.45
+revision 1
categories graphics
maintainers nomaintainer
description Translate PostScript and PDF to other vector formats
@@ -24,6 +25,8 @@
port:zlib
depends_run port:ghostscript
+patchfiles patch-src-pstoedit.diff
+
configure.cppflags-append "-Wno-long-long"
post-destroot {
Added: trunk/dports/graphics/pstoedit/files/patch-src-pstoedit.diff
===================================================================
--- trunk/dports/graphics/pstoedit/files/patch-src-pstoedit.diff (rev 0)
+++ trunk/dports/graphics/pstoedit/files/patch-src-pstoedit.diff 2008-10-26 02:18:35 UTC (rev 41152)
@@ -0,0 +1,49 @@
+--- src/pstoedit.cpp.orig 2007-07-22 05:27:38.000000000 -0600
++++ src/pstoedit.cpp 2008-10-25 20:08:32.000000000 -0600
+@@ -352,14 +352,16 @@
+ #endif
+ #endif
+
++ const unsigned int remaining = options.parseoptions(errstream,argc,argv);
++
++ if (!options.quiet) {
+ errstream << "pstoedit: version " << version << " / DLL interface " <<
+ drvbaseVersion << " (build " << __DATE__ << " - " << buildtype << " - " << compversion << ")"
+ " : Copyright (C) 1993 - 2007 Wolfgang Glunz\n";
++ }
+ // int arg = 1;
+ drvbase::SetVerbose( false ); // init
+
+-
+- const unsigned int remaining = options.parseoptions(errstream,argc,argv);
+ // handling of derived parameters
+ drvbase::SetVerbose(options.verbose);
+ closerObject.fromgui = (bool) options.fromgui;
+--- src/pstoeditoptions.h.orig 2007-07-22 05:27:48.000000000 -0600
++++ src/pstoeditoptions.h 2008-10-25 20:11:30.000000000 -0600
+@@ -156,6 +156,7 @@
+
+ Option < bool, BoolTrueExtractor > splitpages ;//= false;
+ Option < bool, BoolTrueExtractor > verbose ;//= false;
++ Option < bool, BoolTrueExtractor > quiet ;//= false;
+ Option < bool, BoolTrueExtractor > useBBfrominput; //= false;
+ Option < bool, BoolTrueExtractor > simulateSubPaths ;//= false;
+ Option < RSString, RSStringValueExtractor> unmappablecharstring ;//= 0;
+@@ -333,6 +334,9 @@
+ "Switch on verbose mode. Some additional information is shown "
+ "during processing. ",
+ false),
++ quiet (true, "-quiet",noArgument,b_t,"turns on quiet mode",
++ "Switch on quiet mode. Version information is not shown. ",
++ false),
+ useBBfrominput (true, "-usebbfrominput",noArgument,g_t,"extract BoundingBox from input file rather than determining it during processing",
+ "If specified, pstoedit uses the BoundingBox as is (hopefully) found in the input file instead of one that is calculated by its own. ",
+ false),
+@@ -573,6 +577,7 @@
+
+ ADD(splitpages);
+ ADD(verbose );
++ ADD(quiet);
+ ADD(useBBfrominput);
+ ADD(simulateSubPaths);
+ ADD(unmappablecharstring);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081025/a33dc98f/attachment.html>
More information about the macports-changes
mailing list