RTeX is a Ruby library (and web framework plugin) used to generate

PDF documents on-the-fly using the LaTeX typesetting system.

OK jeremy@ jasper@
This commit is contained in:
claudio 2010-12-23 13:58:04 +00:00
parent bf96a014f3
commit cb1bafae9f
6 changed files with 107 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/12/23 13:58:04 claudio Exp $
COMMENT = ruby library to the LaTeX typesetting system
DISTNAME = rtex-2.1.1
CATEGORIES = textproc
# MIT
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = lang/ruby
CONFIGURE_STYLE = ruby gem
RUN_DEPENDS = print/texlive/base
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (rtex-2.1.1.gem) = VbxT1hfzxkSUteHiUUkeag==
RMD160 (rtex-2.1.1.gem) = VYe+xrJzorVAZZ+uvQlJwySfT6g=
SHA1 (rtex-2.1.1.gem) = Jv6XwTd+ag01ezbo0BHQcfJKe1c=
SHA256 (rtex-2.1.1.gem) = E02gbPci3JoXPGw+5/FmjZficNoY9kpFiYyEunFcOsY=
SIZE (rtex-2.1.1.gem) = 20992

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lib_rtex_framework_rails_rb,v 1.1.1.1 2010/12/23 13:58:04 claudio Exp $
--- lib/rtex/framework/rails.rb.orig Thu Jan 1 01:00:00 1970
+++ lib/rtex/framework/rails.rb Mon Oct 25 17:05:20 2010
@@ -47,7 +47,7 @@ module RTeX
serve_file.close
end
end
-
+ return result
end
end

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-lib_rtex_tempdir_rb,v 1.1.1.1 2010/12/23 13:58:04 claudio Exp $
--- lib/rtex/tempdir.rb.orig Thu Jan 1 01:00:00 1970
+++ lib/rtex/tempdir.rb Sun Dec 19 20:05:25 2010
@@ -40,13 +40,15 @@ module RTeX
# a poor-man's UUID; timestamp, thread & object hashes
# Note: I don't want to add any dependencies (so no UUID library)
def uuid
- if (result = `uuidgen`.strip rescue nil).empty?
- "#{Time.now.to_i}-#{Thread.current.hash}-#{hash}"
- else
- result
+ begin
+ result = `uuidgen`.strip
+ raise if result == ""
+ rescue
+ result = "#{Time.now.to_i}-#{Thread.current.hash}-#{hash}"
end
+ return result
end
end
-end
\ No newline at end of file
+end

View File

@ -0,0 +1,5 @@
RTeX is a Ruby library (and web framework plugin) used to generate
PDF documents on-the-fly using the LaTeX typesetting system.
RTeX is a general-purpose Ruby library that happens to also act as Rails
plugin.

View File

@ -0,0 +1,40 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/23 13:58:04 claudio Exp $
${GEM_BIN}/rtex${GEM_BIN_SUFFIX}
${GEM_LIB}/cache/${DISTNAME}.gem
${GEM_LIB}/gems/${DISTNAME}/
${GEM_LIB}/gems/${DISTNAME}/CHANGELOG
${GEM_LIB}/gems/${DISTNAME}/Manifest
${GEM_LIB}/gems/${DISTNAME}/README.rdoc
${GEM_LIB}/gems/${DISTNAME}/README_RAILS.rdoc
${GEM_LIB}/gems/${DISTNAME}/Rakefile
${GEM_LIB}/gems/${DISTNAME}/bin/
${GEM_LIB}/gems/${DISTNAME}/bin/rtex
${GEM_LIB}/gems/${DISTNAME}/init.rb
${GEM_LIB}/gems/${DISTNAME}/lib/
${GEM_LIB}/gems/${DISTNAME}/lib/rtex/
${GEM_LIB}/gems/${DISTNAME}/lib/rtex.rb
${GEM_LIB}/gems/${DISTNAME}/lib/rtex/document.rb
${GEM_LIB}/gems/${DISTNAME}/lib/rtex/escaping.rb
${GEM_LIB}/gems/${DISTNAME}/lib/rtex/framework/
${GEM_LIB}/gems/${DISTNAME}/lib/rtex/framework/merb.rb
${GEM_LIB}/gems/${DISTNAME}/lib/rtex/framework/rails.rb
${GEM_LIB}/gems/${DISTNAME}/lib/rtex/tempdir.rb
${GEM_LIB}/gems/${DISTNAME}/lib/rtex/version.rb
${GEM_LIB}/gems/${DISTNAME}/rails/
${GEM_LIB}/gems/${DISTNAME}/rails/init.rb
${GEM_LIB}/gems/${DISTNAME}/rtex.gemspec
${GEM_LIB}/gems/${DISTNAME}/test/
${GEM_LIB}/gems/${DISTNAME}/test/document_test.rb
${GEM_LIB}/gems/${DISTNAME}/test/filter_test.rb
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/first.tex
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/first.tex.erb
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/fragment.tex.erb
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/text.textile
${GEM_LIB}/gems/${DISTNAME}/test/tempdir_test.rb
${GEM_LIB}/gems/${DISTNAME}/test/test_helper.rb
${GEM_LIB}/gems/${DISTNAME}/vendor/
${GEM_LIB}/gems/${DISTNAME}/vendor/instiki/
${GEM_LIB}/gems/${DISTNAME}/vendor/instiki/LICENSE
${GEM_LIB}/gems/${DISTNAME}/vendor/instiki/redcloth_for_tex.rb
${GEM_LIB}/specifications/${DISTNAME}.gemspec