diff options
Diffstat (limited to 'dev-tex/latex2rtf')
-rw-r--r-- | dev-tex/latex2rtf/ChangeLog | 7 | ||||
-rw-r--r-- | dev-tex/latex2rtf/files/digest-latex2rtf-1.9.15-r2 | 3 | ||||
-rw-r--r-- | dev-tex/latex2rtf/files/latex2rtf-1.9.15-definitions.c.diff | 51 | ||||
-rw-r--r-- | dev-tex/latex2rtf/files/latex2rtf-1.9.15-direntry.patch | 30 | ||||
-rw-r--r-- | dev-tex/latex2rtf/latex2rtf-1.9.15-r2.ebuild | 42 |
5 files changed, 6 insertions, 127 deletions
diff --git a/dev-tex/latex2rtf/ChangeLog b/dev-tex/latex2rtf/ChangeLog index d0fbec111147..df3db42e4a9e 100644 --- a/dev-tex/latex2rtf/ChangeLog +++ b/dev-tex/latex2rtf/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-tex/latex2rtf # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2rtf/ChangeLog,v 1.15 2007/10/31 12:22:37 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2rtf/ChangeLog,v 1.16 2007/10/31 12:26:30 aballier Exp $ + + 31 Oct 2007; Alexis Ballier <aballier@gentoo.org> + -files/latex2rtf-1.9.15-definitions.c.diff, + -files/latex2rtf-1.9.15-direntry.patch, -latex2rtf-1.9.15-r2.ebuild: + remove old *latex2rtf-1.9.18 (31 Oct 2007) diff --git a/dev-tex/latex2rtf/files/digest-latex2rtf-1.9.15-r2 b/dev-tex/latex2rtf/files/digest-latex2rtf-1.9.15-r2 deleted file mode 100644 index f5381bf48097..000000000000 --- a/dev-tex/latex2rtf/files/digest-latex2rtf-1.9.15-r2 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 5aa723f290aa745ee3a37c3814901956 latex2rtf-1.9.15.tar.gz 605467 -RMD160 09c295d4a62e2b30c274953cb6820057f5a30cdc latex2rtf-1.9.15.tar.gz 605467 -SHA256 1812b40b2616464e0bd7410ad24a9c810b4825e7f998710fd037dd6ee8a3a25b latex2rtf-1.9.15.tar.gz 605467 diff --git a/dev-tex/latex2rtf/files/latex2rtf-1.9.15-definitions.c.diff b/dev-tex/latex2rtf/files/latex2rtf-1.9.15-definitions.c.diff deleted file mode 100644 index 68f706aaa2f6..000000000000 --- a/dev-tex/latex2rtf/files/latex2rtf-1.9.15-definitions.c.diff +++ /dev/null @@ -1,51 +0,0 @@ ---- latex2rtf-1.9.15.orig/definitions.c -+++ latex2rtf-1.9.15/definitions.c -@@ -110,7 +110,8 @@ - **************************************************************************/ - { - int i=0,param; -- char * args[9], *dmacro, *macro_piece, *next_piece, *expanded, buffer[1024], *cs; -+ char * args[9], *dmacro, *macro_piece, *next_piece, *expanded, *buffer = NULL, *cs; -+ int max_len = 0; - - if (params<=0) - return strdup(macro); -@@ -118,18 +119,28 @@ - if (opt_param) { - args[i++] = getBracketParam(); - if (!args[0]) args[0] = strdup(opt_param); -+ max_len += strlen(args[i-1]); - } - - for (; i<params; i++) { - args[i] = getBraceParam(); -+ max_len += strlen(args[i]); - diagnostics(3, "argument #%d <%s>", i+1, args[i]); - } -+ - -- *buffer='\0'; -- expanded = buffer; - dmacro = strdup(macro); - macro_piece = dmacro; -+ max_len += strlen(macro_piece); -+ -+ diagnostics(3, "max_len in expandmacro = %d\n", max_len); -+ if(max_len > 0) { -+ buffer = (char*)malloc(sizeof(char) * max_len); -+ memset(buffer,'\0',max_len); -+ } - -+ expanded = buffer; -+ - /* convert "\csname" to "\" */ - while ((cs=strstr(dmacro, "\\csname")) != NULL) strcpy(cs+1,cs+7); - -@@ -176,6 +187,7 @@ - if (args[i]) free(args[i]); - - if (dmacro) free(dmacro); -+ if (buffer) free(buffer); - - diagnostics(3, "expandmacro expanded=<%s>", buffer); - return strdup(buffer); diff --git a/dev-tex/latex2rtf/files/latex2rtf-1.9.15-direntry.patch b/dev-tex/latex2rtf/files/latex2rtf-1.9.15-direntry.patch deleted file mode 100644 index 527da97e50cf..000000000000 --- a/dev-tex/latex2rtf/files/latex2rtf-1.9.15-direntry.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -ru latex2rtf-1.9.15-vanilla/doc/latex2rtf.info latex2rtf-1.9.15/doc/latex2rtf.info ---- latex2rtf-1.9.15-vanilla/doc/latex2rtf.info 2003-10-29 21:38:25.000000000 -0800 -+++ latex2rtf-1.9.15/doc/latex2rtf.info 2004-04-19 15:33:00.985457480 -0700 -@@ -1,6 +1,11 @@ - This is latex2rtf.info, produced by makeinfo version 4.2 from - latex2rtf.texi. - -+INFO-DIR-SECTION TeX -+START-INFO-DIR-ENTRY -+* LaTeX2RTF: (latex2rtf). Convert a LaTeX file to RTF -+END-INFO-DIR-ENTRY -+ -
This file documents LaTeX2RTF , a converter that - translates LaTeX to RTF.
Copyright 1998-2002 Georg Lehner,
- updates Copyright 1999-2003 by Wilfried Hennings and Scott Prahl,
-diff -ru latex2rtf-1.9.15-vanilla/doc/latex2rtf.texi latex2rtf-1.9.15/doc/latex2rtf.texi ---- latex2rtf-1.9.15-vanilla/doc/latex2rtf.texi 2003-10-29 21:36:23.000000000 -0800 -+++ latex2rtf-1.9.15/doc/latex2rtf.texi 2004-04-19 15:33:13.635534376 -0700 -@@ -35,6 +35,11 @@ - @end iftex
- @end macro
-
-+@dircategory TeX
-+@direntry
-+* LaTeX2RTF: (latex2rtf). Convert a LaTeX file to RTF
-+@end direntry
-+
- @ifinfo
- This file documents @ltor{}, a converter that translates @latex{} to RTF.
-
diff --git a/dev-tex/latex2rtf/latex2rtf-1.9.15-r2.ebuild b/dev-tex/latex2rtf/latex2rtf-1.9.15-r2.ebuild deleted file mode 100644 index 09e3f36dde9a..000000000000 --- a/dev-tex/latex2rtf/latex2rtf-1.9.15-r2.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2rtf/latex2rtf-1.9.15-r2.ebuild,v 1.2 2004/11/06 08:11:08 usata Exp $ - -inherit eutils toolchain-funcs - -DESCRIPTION="LaTeX to RTF converter" -HOMEPAGE="http://latex2rtf.sourceforge.net/" -SRC_URI="mirror://sourceforge/latex2rtf/${P}.tar.gz" - -LICENSE="GPL-2" -KEYWORDS="~x86 ~ppc ~sparc ~amd64" -SLOT="0" -IUSE="doc" - -DEPEND="virtual/libc - virtual/tetex - media-gfx/imagemagick" - -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/${P}-definitions.c.diff - epatch ${FILESDIR}/${PN}-Makefile-gentoo.diff - epatch ${FILESDIR}/${P}-direntry.patch -} - -src_compile() { - emake CC=$(tc-getCC) || die -} - -src_install() { - make PREFIX=${D}/usr CC=$(tc-getCC) install || die - dodoc README doc/latex2rtf.txt - # if doc is not used, only the text version is intalled. - if use doc; then - dohtml doc/latex2rtf.html - dodoc doc/latex2rtf.pdf doc/latex2rtf.txt - sed -i "s/\r/\n/g" doc/latex2rtf.info - doinfo doc/latex2rtf.info - fi -} |