2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-28 03:06:02 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fop < Formula
|
2009-09-28 03:06:02 +00:00
|
|
|
homepage "http://xmlgraphics.apache.org/fop/index.html"
|
2012-11-15 09:15:53 +00:00
|
|
|
url "http://www.apache.org/dyn/closer.cgi?path=/xmlgraphics/fop/binaries/fop-1.0-bin.tar.gz"
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '2e81bc0b6d26cba8af7d008cffe6a46955a82a4f'
|
2009-09-28 03:06:02 +00:00
|
|
|
|
2011-09-27 10:10:13 +00:00
|
|
|
# Run in headless mode to avoid having it appear on the Dock and stealing UI focus.
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2009-09-28 03:06:02 +00:00
|
|
|
def install
|
2010-07-06 14:52:37 +00:00
|
|
|
libexec.install Dir["*"]
|
2012-08-07 18:20:52 +00:00
|
|
|
bin.write_exec_script libexec/'fop'
|
2009-09-28 03:06:02 +00:00
|
|
|
end
|
|
|
|
end
|
2011-09-27 10:10:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/fop b/fop
|
|
|
|
index 3f2ac6f..c9167bb 100755
|
|
|
|
--- a/fop
|
|
|
|
+++ b/fop
|
|
|
|
@@ -19,6 +19,7 @@
|
|
|
|
|
|
|
|
rpm_mode=true
|
|
|
|
fop_exec_args=
|
|
|
|
+java_exec_args="-Djava.awt.headless=true"
|
|
|
|
no_config=false
|
|
|
|
fop_exec_debug=false
|
|
|
|
show_help=false
|
|
|
|
@@ -247,7 +248,7 @@ fi
|
|
|
|
|
|
|
|
# Execute FOP using eval/exec to preserve spaces in paths,
|
|
|
|
# java options, and FOP args
|
|
|
|
-fop_exec_command="exec \"$JAVACMD\" $LOGCHOICE $LOGLEVEL -classpath \"$LOCALCLASSPATH\" $FOP_OPTS org.apache.fop.cli.Main $fop_exec_args"
|
|
|
|
+fop_exec_command="exec \"$JAVACMD\" $java_exec_args $LOGCHOICE $LOGLEVEL -classpath \"$LOCALCLASSPATH\" $FOP_OPTS org.apache.fop.cli.Main $fop_exec_args"
|
|
|
|
if $fop_exec_debug ; then
|
|
|
|
echo $fop_exec_command
|
|
|
|
fi
|
|
|
|
|