Hello,

I've created a port for LaTeX2rtf. Could somebody test and if necessary
give some feedback?

I've tested the port on amd64, i386 and sparc64.

Thanks,

Alexander

Index: print/latex2rtf//Makefile
===================================================================
RCS file: print/latex2rtf//Makefile
diff -N print/latex2rtf//Makefile
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ print/latex2rtf//Makefile   23 Dec 2008 17:11:23 -0000
@@ -0,0 +1,36 @@
+COMMENT=       translator from LaTeX to RTF
+DISTNAME=      latex2rtf-1.9.19
+CATEGORIES=    print
+
+MAINTAINER=    aschrij...@openbsd.org
+
+# GPL V2
+PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE_FTP =   Yes
+PERMIT_DISTFILES_CDROM =Yes
+PERMIT_DISTFILES_FTP = Yes
+
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=latex2rtf/} \
+               ${MASTER_SITE_TEX_CTAN:=support/latex2rtf/}
+
+MAKE_FLAGS=     \
+        BIN_INTSALL=${PREFIX}/bin/ \
+        MAN_INSTALL=${PREFIX}/man/man1/ \
+       SUPPORT_INSTALL=${PREFIX}/share/doc/latex2rtf/ \
+       CFG_INSTALL=${PREFIX}/share/examples/latex2rtf/cfg/ \
+       INFO_INSTALL=${PREFIX}/info/
+
+FAKE_FLAGS=     \
+        BIN_INSTALL=${WRKINST}${PREFIX}/bin/ \
+        MAN_INSTALL=${WRKINST}${PREFIX}/man/man1/ \
+       SUPPORT_INSTALL=${WRKINST}${PREFIX}/share/doc/latex2rtf/ \
+       CFG_INSTALL=${WRKINST}${PREFIX}/share/examples/latex2rtf/cfg/ \
+       INFO_INSTALL=${WRKINST}${PREFIX}/info/
+
+NO_REGRESS=     Yes
+
+pre-patch:
+       cp ${WRKSRC}/doc/latex2rtf.texi ${WRKSRC}/doc/latex2rtf.texi.bak
+       tr -d '\r\b\0' < ${WRKSRC}/doc/latex2rtf.texi.bak > 
${WRKSRC}/doc/latex2rtf.texi
+
+.include <bsd.port.mk>
Index: print/latex2rtf//distinfo
===================================================================
RCS file: print/latex2rtf//distinfo
diff -N print/latex2rtf//distinfo
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ print/latex2rtf//distinfo   23 Dec 2008 17:11:23 -0000
@@ -0,0 +1,5 @@
+MD5 (latex2rtf-1.9.19.tar.gz) = ijuSDVn2s4c2qiVsJjdEcg==
+RMD160 (latex2rtf-1.9.19.tar.gz) = APUnUVN2bvPYH05e9gTUDeNW6hQ=
+SHA1 (latex2rtf-1.9.19.tar.gz) = 5ql7GNYFMmaRoAlHBGeOWp1C+7c=
+SHA256 (latex2rtf-1.9.19.tar.gz) = vNzQiwIRoF094D6ci9yA3cW28W5Turm6hoQjaLN/pHA=
+SIZE (latex2rtf-1.9.19.tar.gz) = 1151240
Index: print/latex2rtf//patches/patch-Makefile
===================================================================
RCS file: print/latex2rtf//patches/patch-Makefile
diff -N print/latex2rtf//patches/patch-Makefile
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ print/latex2rtf//patches/patch-Makefile     23 Dec 2008 17:11:23 -0000
@@ -0,0 +1,67 @@
+$OpenBSD$
+--- Makefile.orig      Sun Nov 18 07:10:57 2007
++++ Makefile   Fri Dec 19 21:15:54 2008
+@@ -29,11 +29,11 @@ PREFIX=$(PREFIX_DRIVE)/usr/local
+ BINARY_NAME=latex2rtf$(EXE_SUFFIX)
+ 
+ # Location of binary, man, info, and support files - adapt as needed
+-BIN_INSTALL=$(PREFIX)/bin
+-MAN_INSTALL=$(PREFIX)/man/man1
+-INFO_INSTALL=$(PREFIX)/info
+-SUPPORT_INSTALL=$(PREFIX)/share/latex2rtf
+-CFG_INSTALL=$(PREFIX)/share/latex2rtf/cfg
++BIN_INSTALL?=$(PREFIX)/bin
++MAN_INSTALL?=$(PREFIX)/man/man1
++INFO_INSTALL?=$(PREFIX)/info
++SUPPORT_INSTALL?=$(PREFIX)/share/latex2rtf
++CFG_INSTALL?=$(PREFIX)/share/latex2rtf/cfg
+ 
+ # Nothing to change below this line
+ 
+@@ -203,31 +203,21 @@ doc: doc/latex2rtf.texi doc/Makefile
+ 
+ install: latex2rtf doc/latex2rtf.1 $(CFGS) scripts/latex2png
+       cd doc && $(MAKE)
+-      $(MKDIR) $(BIN_INSTALL)
+-      $(MKDIR) $(MAN_INSTALL)
+-      $(MKDIR) $(CFG_INSTALL)
+-      cp $(BINARY_NAME)     $(BIN_INSTALL)
+-      cp scripts/latex2png  $(BIN_INSTALL)
+-      cp doc/latex2rtf.1    $(MAN_INSTALL)
+-      cp doc/latex2png.1    $(MAN_INSTALL)
+-      cp $(CFGS)            $(CFG_INSTALL)
+-      cp doc/latex2rtf.html $(SUPPORT_INSTALL)
+-      cp doc/latex2rtf.pdf  $(SUPPORT_INSTALL)
+-      cp doc/latex2rtf.txt  $(SUPPORT_INSTALL)
+-      @echo 
"******************************************************************"
+-      @echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\""
+-      @echo "*** in directory \"$(BIN_INSTALL)\""
+-      @echo "***"
+-      @echo "*** \"make install-info\" will install TeXInfo files "
+-      @echo "***"
+-      @echo "*** latex2rtf was compiled to search for its configuration files 
in"
+-      @echo "***           \"$(CFG_INSTALL)\" "
+-      @echo "***"
+-      @echo "*** If the configuration files are moved then either"
+-      @echo "***   1) set the environment variable RTFPATH to this new 
location, or"
+-      @echo "***   2) use the command line option -P /path/to/cfg, or"
+-      @echo "***   3) edit the Makefile and recompile"
+-      @echo 
"******************************************************************"
++      $(BSD_INSTALL_PROGRAM_DIR) $(BIN_INSTALL)
++      $(BSD_INSTALL_MAN_DIR) $(MAN_INSTALL)
++      $(BSD_INSTALL_DATA_DIR) $(BIN_INSTALL)
++      $(BSD_INSTALL_PROGRAM) $(BINARY_NAME) $(BIN_INSTALL)
++      $(BSD_INSTALL_SCRIPT) scripts/latex2png $(BIN_INSTALL)
++      $(BSD_INSTALL_MAN) doc/latex2rtf.1 $(MAN_INSTALL)
++      $(BSD_INSTALL_MAN) doc/latex2png.1 $(MAN_INSTALL)
++      $(BSD_INSTALL_DATA_DIR) $(CFG_INSTALL)
++      $(BSD_INSTALL_DATA) $(CFGS) $(CFG_INSTALL)
++      $(BSD_INSTALL_DATA_DIR) $(SUPPORT_INSTALL)
++      $(BSD_INSTALL_DATA) doc/latex2rtf.html $(SUPPORT_INSTALL)
++      $(BSD_INSTALL_DATA) doc/latex2rtf.pdf $(SUPPORT_INSTALL)
++      $(BSD_INSTALL_DATA) doc/latex2rtf.txt $(SUPPORT_INSTALL)
++      $(BSD_INSTALL_DATA_DIR) $(INFO_INSTALL)
++      $(BSD_INSTALL_DATA) doc/latex2rtf.info $(INFO_INSTALL)
+ 
+ install-info: doc/latex2rtf.info
+       $(MKDIR) $(INFO_INSTALL)
Index: print/latex2rtf//patches/patch-doc_Makefile
===================================================================
RCS file: print/latex2rtf//patches/patch-doc_Makefile
diff -N print/latex2rtf//patches/patch-doc_Makefile
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ print/latex2rtf//patches/patch-doc_Makefile 23 Dec 2008 17:11:23 -0000
@@ -0,0 +1,10 @@
+--- doc/Makefileorig   Tue Dec 23 17:03:06 2008
++++ doc/Makefile       Tue Dec 23 17:03:13 2008
+@@ -1,6 +1,6 @@
+ # $Id: Makefile,v 1.9 2002/11/29 16:36:42 prahl Exp $
+ 
+-all:  latex2rtf.html latex2rtf.info latex2rtf.pdf latex2rtf.txt \
++all:  latex2rtf.html latex2rtf.info latex2rtf.txt \
+               latex2pn.txt latex2rt.txt almostclean
+ 
+ latex2rtf.html:       latex2rtf.texi
Index: print/latex2rtf//patches/patch-doc_latex2rtf.texi
===================================================================
RCS file: print/latex2rtf//patches/patch-doc_latex2rtf.texi
diff -N print/latex2rtf//patches/patch-doc_latex2rtf.texi
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ print/latex2rtf//patches/patch-doc_latex2rtf.texi   23 Dec 2008 17:11:23 
-0000
@@ -0,0 +1,17 @@
+--- doc/latex2rtf.texiorig     Tue Dec 23 15:32:00 2008
++++ doc/latex2rtf.texi Tue Dec 23 15:32:06 2008
+@@ -1,3 +1,4 @@
++
+ \def\LaTeX{L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em\TeX}
+ \def\LaTeXe{\LaTeX\kern.15em 2$_\varepsilon$}
+ \def\BibTeX{B\kern-.05em{\sc i\kern-.025em b}\kern-.08em\TeX}
+@@ -8,6 +9,9 @@
+ @setfilename latex2rtf.info
+ @settitle LaTeX2rtf
+ @setchapternewpage odd
+...@direntry
++* LaTeX2rtf: (latex2rtf).               translator from LaTeX to RTF.
+...@end direntry
+ @c %**end of header
+ 
+ @ignore Permission is granted to process this file through TeX and print
Index: print/latex2rtf//pkg/DESCR
===================================================================
RCS file: print/latex2rtf//pkg/DESCR
diff -N print/latex2rtf//pkg/DESCR
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ print/latex2rtf//pkg/DESCR  23 Dec 2008 17:11:23 -0000
@@ -0,0 +1,10 @@
+latex2rtf is a translator program that translates LaTeX text into the
+RTF format used by several textprocessors, including Microsoft Word and
+Word for Windows.  It was written by Fernando Dorner and Andreas Granzer
+in a one-semester course in our department.  It was later updated in
+another one-semester course by Friedrich Polzer and Gerhard Trisko.
+Ralf Schlatterbeck <r...@zoo.priv.at> maintained and extended it until
+1998.  It is currently being maintained by Georg Lehner, Scott Pralh,
+and Wilfried Hennings
+
+WWW: http://latex2rtf.sourceforge.net/
Index: print/latex2rtf//pkg/PLIST
===================================================================
RCS file: print/latex2rtf//pkg/PLIST
diff -N print/latex2rtf//pkg/PLIST
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ print/latex2rtf//pkg/PLIST  23 Dec 2008 17:11:23 -0000
@@ -0,0 +1,57 @@
+...@comment $OpenBSD$
+bin/latex2png
+...@bin bin/latex2rtf
+...@info info/latex2rtf.info
+...@man man/man1/latex2png.1
+...@man man/man1/latex2rtf.1
+share/doc/latex2rtf/
+share/doc/latex2rtf/latex2rtf.html
+share/doc/latex2rtf/latex2rtf.pdf
+share/doc/latex2rtf/latex2rtf.txt
+share/examples/latex2rtf/
+share/examples/latex2rtf/cfg/
+share/examples/latex2rtf/cfg/afrikaans.cfg
+share/examples/latex2rtf/cfg/bahasa.cfg
+share/examples/latex2rtf/cfg/basque.cfg
+share/examples/latex2rtf/cfg/brazil.cfg
+share/examples/latex2rtf/cfg/breton.cfg
+share/examples/latex2rtf/cfg/catalan.cfg
+share/examples/latex2rtf/cfg/croatian.cfg
+share/examples/latex2rtf/cfg/czech.cfg
+share/examples/latex2rtf/cfg/danish.cfg
+share/examples/latex2rtf/cfg/direct.cfg
+share/examples/latex2rtf/cfg/dutch.cfg
+share/examples/latex2rtf/cfg/english.cfg
+share/examples/latex2rtf/cfg/esperanto.cfg
+share/examples/latex2rtf/cfg/estonian.cfg
+share/examples/latex2rtf/cfg/finnish.cfg
+share/examples/latex2rtf/cfg/fonts.cfg
+share/examples/latex2rtf/cfg/french.cfg
+share/examples/latex2rtf/cfg/galician.cfg
+share/examples/latex2rtf/cfg/german.cfg
+share/examples/latex2rtf/cfg/icelandic.cfg
+share/examples/latex2rtf/cfg/ignore.cfg
+share/examples/latex2rtf/cfg/inc_test.tex
+share/examples/latex2rtf/cfg/irish.cfg
+share/examples/latex2rtf/cfg/italian.cfg
+share/examples/latex2rtf/cfg/latin.cfg
+share/examples/latex2rtf/cfg/lsorbian.cfg
+share/examples/latex2rtf/cfg/magyar.cfg
+share/examples/latex2rtf/cfg/norsk.cfg
+share/examples/latex2rtf/cfg/nynorsk.cfg
+share/examples/latex2rtf/cfg/polish.cfg
+share/examples/latex2rtf/cfg/portuges.cfg
+share/examples/latex2rtf/cfg/romanian.cfg
+share/examples/latex2rtf/cfg/russian.cfg
+share/examples/latex2rtf/cfg/samin.cfg
+share/examples/latex2rtf/cfg/scottish.cfg
+share/examples/latex2rtf/cfg/serbian.cfg
+share/examples/latex2rtf/cfg/slovak.cfg
+share/examples/latex2rtf/cfg/slovene.cfg
+share/examples/latex2rtf/cfg/spanish.cfg
+share/examples/latex2rtf/cfg/style.cfg
+share/examples/latex2rtf/cfg/swedish.cfg
+share/examples/latex2rtf/cfg/turkish.cfg
+share/examples/latex2rtf/cfg/ukrainian.cfg
+share/examples/latex2rtf/cfg/usorbian.cfg
+share/examples/latex2rtf/cfg/welsh.cfg
Index: print/latex2rtf//pkg/SECURITY
===================================================================
RCS file: print/latex2rtf//pkg/SECURITY
diff -N print/latex2rtf//pkg/SECURITY
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ print/latex2rtf//pkg/SECURITY       23 Dec 2008 17:11:23 -0000
@@ -0,0 +1,3 @@
+Lots of strcpy/strcat's are used which seem to be okay.
+
+The code is difficult to read.

Reply via email to