summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2008-02-03 02:45:23 +0000
committerreed <reed@pkgsrc.org>2008-02-03 02:45:23 +0000
commitdc758b9817ccde5e8dc63eb6d24d2c3c5da4edfa (patch)
treeb1cf4050228c1242eaeb58d46bc20e12379294f5 /print
parentb81f88dc828f301140f696f218ac6fdadfb7e785 (diff)
downloadpkgsrc-dc758b9817ccde5e8dc63eb6d24d2c3c5da4edfa.tar.gz
Import new package: rtf2latex2e
rtf2latex already exists in pkgsrc but didn't work for me and this is different (but maybe derived from same?) and installs different files. This is rtf2latex2e by Ujwal Sathyam and Scott Prahl. It uses the RTF reader by Paul DuBois and converts RTF files into the LaTeX2e format. Its main features are: 1. detects text style: bold, italic, color, big, small,... 2. reads embedded figures: PICT, WMF, PNG, JPEG, converts to EPS 3. reads tables: simple to semi-complex 4. equations: converts embedded MathType < 3.0 equations 5. symbols: converts most greek and math symbols 6. reads footnotes (not in tables yet) 7. support for use of the fontenc package 8. translates hyperlinks using the hyperref package
Diffstat (limited to 'print')
-rw-r--r--print/rtf2latex2e/DESCR12
-rw-r--r--print/rtf2latex2e/Makefile34
-rw-r--r--print/rtf2latex2e/PLIST29
-rw-r--r--print/rtf2latex2e/distinfo6
-rw-r--r--print/rtf2latex2e/patches/patch-aa13
5 files changed, 94 insertions, 0 deletions
diff --git a/print/rtf2latex2e/DESCR b/print/rtf2latex2e/DESCR
new file mode 100644
index 00000000000..14c7f24afde
--- /dev/null
+++ b/print/rtf2latex2e/DESCR
@@ -0,0 +1,12 @@
+This is rtf2latex2e by Ujwal Sathyam and Scott Prahl. It uses the
+RTF reader by Paul DuBois and converts RTF files into the LaTeX2e
+format. Its main features are:
+
+1. detects text style: bold, italic, color, big, small,...
+2. reads embedded figures: PICT, WMF, PNG, JPEG, converts to EPS
+3. reads tables: simple to semi-complex
+4. equations: converts embedded MathType < 3.0 equations
+5. symbols: converts most greek and math symbols
+6. reads footnotes (not in tables yet)
+7. support for use of the fontenc package
+8. translates hyperlinks using the hyperref package
diff --git a/print/rtf2latex2e/Makefile b/print/rtf2latex2e/Makefile
new file mode 100644
index 00000000000..8bbe16a7f04
--- /dev/null
+++ b/print/rtf2latex2e/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/02/03 02:45:23 reed Exp $
+#
+
+# fix install so it uses ${prefix}
+
+DISTNAME= rtf2latex2eUnix1
+PKGNAME= rtf2latex2e-1.0fc2
+CATEGORIES= print textproc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rtf2latex2e/}
+
+MAINTAINER= reed@reedmedia.net
+HOMEPAGE= http://rtf2latex2e.sourceforge.net/
+COMMENT= RTF to LaTeX2e converter
+
+# ImageMagick is an optional component
+
+WRKSRC= ${WRKDIR}/rtf2latex2eUnix-1.0fc1/
+BUILD_DIRS= Unix
+CONFIGURE_DIRS= Unix
+GNU_CONFIGURE= yes
+MAKE_ENV+= INSTALL_DIR=${PREFIX}/share/rtf2latex2e
+
+INSTALLATION_DIRS+= bin share/doc/rtf2latex2e share/rtf2latex2e
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/rtf2latex2e.bin ${PREFIX}/bin/rtf2latex2e
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/rtf2latex2e/
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/rtf2latex2e/
+ ${INSTALL_DATA} ${WRKSRC}/doc/rtf2LaTeX2eDoc.html ${PREFIX}/share/doc/rtf2latex2e/
+ cd ${WRKSRC} && ${PAX} -rw pref ${PREFIX}/share/rtf2latex2e
+
+# install other docs and examples too?
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/rtf2latex2e/PLIST b/print/rtf2latex2e/PLIST
new file mode 100644
index 00000000000..b7645f9f716
--- /dev/null
+++ b/print/rtf2latex2e/PLIST
@@ -0,0 +1,29 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/02/03 02:45:23 reed Exp $
+bin/rtf2latex2e
+share/doc/rtf2latex2e/INSTALL
+share/doc/rtf2latex2e/README
+share/doc/rtf2latex2e/rtf2LaTeX2eDoc.html
+share/rtf2latex2e/pref/TeX-map.applemac
+share/rtf2latex2e/pref/applemac.map
+share/rtf2latex2e/pref/ansi-sym
+share/rtf2latex2e/pref/TeX-map.cp1250
+share/rtf2latex2e/pref/cp1250.map
+share/rtf2latex2e/pref/cp1252.map
+share/rtf2latex2e/pref/cp1254.map
+share/rtf2latex2e/pref/cp437.map
+share/rtf2latex2e/pref/cp850.map
+share/rtf2latex2e/pref/mac-sym
+share/rtf2latex2e/pref/pc-sym
+share/rtf2latex2e/pref/pca-sym
+share/rtf2latex2e/pref/r2l-head
+share/rtf2latex2e/pref/r2l-map
+share/rtf2latex2e/pref/r2l-pref
+share/rtf2latex2e/pref/rtf-ctrl
+share/rtf2latex2e/pref/TeX-map
+share/rtf2latex2e/pref/TeX-map.cp1252
+share/rtf2latex2e/pref/TeX-map.default
+share/rtf2latex2e/pref/TeX-map.german
+share/rtf2latex2e/pref/TeX-map.latin1
+@dirrm share/rtf2latex2e/pref
+@dirrm share/rtf2latex2e
+@dirrm share/doc/rtf2latex2e
diff --git a/print/rtf2latex2e/distinfo b/print/rtf2latex2e/distinfo
new file mode 100644
index 00000000000..37cae17d86a
--- /dev/null
+++ b/print/rtf2latex2e/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/02/03 02:45:23 reed Exp $
+
+SHA1 (rtf2latex2eUnix1.tar.gz) = e077351b0ee0713aaa7a02121449f568e4cdace5
+RMD160 (rtf2latex2eUnix1.tar.gz) = 4b7174f0c680874b0ac6dd712827d8c659b9dc66
+Size (rtf2latex2eUnix1.tar.gz) = 540992 bytes
+SHA1 (patch-aa) = a9cba2a36e0b0eb65779cbdc810e2e6f04306dd8
diff --git a/print/rtf2latex2e/patches/patch-aa b/print/rtf2latex2e/patches/patch-aa
new file mode 100644
index 00000000000..81c34cfb83f
--- /dev/null
+++ b/print/rtf2latex2e/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/02/03 02:45:23 reed Exp $
+
+--- Unix/Makefile.in.orig 2000-05-20 17:03:11.000000000 -0500
++++ Unix/Makefile.in 2008-02-02 20:12:35.000000000 -0600
+@@ -6,7 +6,7 @@
+ # IMPORTANT!!!!!
+ # if you edit the install directory (INSTALL_DIR),
+ # make sure it ends with rtf2latex2e!!!!
+-INSTALL_DIR = /usr/local/rtf2latex2e
++INSTALL_DIR ?= /usr/local/rtf2latex2e
+ #----------------------------------------------------------------
+
+