summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2007-11-24 11:08:56 +0000
committerAlexis Ballier <aballier@gentoo.org>2007-11-24 11:08:56 +0000
commitebb4e22d76e698571ec7d463b17dbf55ddb85605 (patch)
tree7b50bedd527bb6c16cbb607d82604ec72ed9cd90 /dev-tex
parentStable on ppc64; bug #142538 and bug #199673 (diff)
downloadgentoo-2-ebb4e22d76e698571ec7d463b17dbf55ddb85605.tar.gz
gentoo-2-ebb4e22d76e698571ec7d463b17dbf55ddb85605.tar.bz2
gentoo-2-ebb4e22d76e698571ec7d463b17dbf55ddb85605.zip
version bump, thanks to Scott Prahl <prahl@bme.ogi.edu> for notifying me; also minimise dependencies with texlive
(Portage version: 2.1.4_rc2)
Diffstat (limited to 'dev-tex')
-rw-r--r--dev-tex/latex2rtf/ChangeLog9
-rw-r--r--dev-tex/latex2rtf/files/digest-latex2rtf-1.9.193
-rw-r--r--dev-tex/latex2rtf/files/latex2rtf-1.9.19-makefile.patch31
-rw-r--r--dev-tex/latex2rtf/latex2rtf-1.9.19.ebuild57
4 files changed, 99 insertions, 1 deletions
diff --git a/dev-tex/latex2rtf/ChangeLog b/dev-tex/latex2rtf/ChangeLog
index 18fe83cea034..8632f78787ad 100644
--- a/dev-tex/latex2rtf/ChangeLog
+++ b/dev-tex/latex2rtf/ChangeLog
@@ -1,6 +1,13 @@
# 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.17 2007/10/31 12:28:56 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2rtf/ChangeLog,v 1.18 2007/11/24 11:08:55 aballier Exp $
+
+*latex2rtf-1.9.19 (24 Nov 2007)
+
+ 24 Nov 2007; Alexis Ballier <aballier@gentoo.org>
+ +files/latex2rtf-1.9.19-makefile.patch, +latex2rtf-1.9.19.ebuild:
+ version bump, thanks to Scott Prahl <prahl@bme.ogi.edu> for notifying me;
+ also minimise dependencies with texlive
31 Oct 2007; Alexis Ballier <aballier@gentoo.org> latex2rtf-1.9.16.ebuild:
variable quoting
diff --git a/dev-tex/latex2rtf/files/digest-latex2rtf-1.9.19 b/dev-tex/latex2rtf/files/digest-latex2rtf-1.9.19
new file mode 100644
index 000000000000..a4b3ff0f5bce
--- /dev/null
+++ b/dev-tex/latex2rtf/files/digest-latex2rtf-1.9.19
@@ -0,0 +1,3 @@
+MD5 8a3b920d59f6b38736aa256c26374472 latex2rtf-1.9.19.tar.gz 1151240
+RMD160 00f5275153766ef3d81f4e5ef604d40de356ea14 latex2rtf-1.9.19.tar.gz 1151240
+SHA256 bcdcd08b0211a05d3de03e9c8bdc80ddc5b6f16e53bab9ba86842368b37fa470 latex2rtf-1.9.19.tar.gz 1151240
diff --git a/dev-tex/latex2rtf/files/latex2rtf-1.9.19-makefile.patch b/dev-tex/latex2rtf/files/latex2rtf-1.9.19-makefile.patch
new file mode 100644
index 000000000000..49c075ffcd02
--- /dev/null
+++ b/dev-tex/latex2rtf/files/latex2rtf-1.9.19-makefile.patch
@@ -0,0 +1,31 @@
+Index: latex2rtf-1.9.19/Makefile
+===================================================================
+--- latex2rtf-1.9.19.orig/Makefile
++++ latex2rtf-1.9.19/Makefile
+@@ -5,7 +5,7 @@ MKDIR=mkdir -p
+ TAR=gnutar
+ RM=rm
+
+-CFLAGS:=-DUNIX
++CFLAGS:=$(CFLAGS) -DUNIX
+ #CFLAGS:=-DMSDOS #Windows/DOS
+ #CFLAGS:=-DMAC_CLASSIC #MacOS 8/9
+ #CFLAGS:=-DOS2 #OS/2
+@@ -39,7 +39,7 @@ CFG_INSTALL=$(PREFIX)/share/latex2rtf/cf
+
+ CFLAGS:=$(CFLAGS) -g -Wall -fsigned-char
+
+-LIBS=
++LIBS= -lm
+ #LIBS=-lMallocDebug -force_flat_namespace
+
+ VERSION:="`scripts/version`"
+@@ -141,7 +141,7 @@ OBJS=fonts.o direct.o encodings.o comman
+ all : checkdir latex2rtf
+
+ latex2rtf: $(OBJS) $(HDRS)
+- $(CC) $(CFLAGS) $(LINK_FLAGS) $(OBJS) $(LIBS) -o $(BINARY_NAME)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $(BINARY_NAME)
+
+ cfg.o: Makefile cfg.c
+ $(CC) $(CFLAGS) -DCFGDIR=\"$(CFG_INSTALL)\" -c cfg.c -o cfg.o
diff --git a/dev-tex/latex2rtf/latex2rtf-1.9.19.ebuild b/dev-tex/latex2rtf/latex2rtf-1.9.19.ebuild
new file mode 100644
index 000000000000..7aa7a26ecda4
--- /dev/null
+++ b/dev-tex/latex2rtf/latex2rtf-1.9.19.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2rtf/latex2rtf-1.9.19.ebuild,v 1.1 2007/11/24 11:08:55 aballier 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="~amd64 ~ppc ~sparc ~x86"
+SLOT="0"
+IUSE="doc test"
+
+DEPEND="virtual/latex-base
+ media-gfx/imagemagick
+ doc? ( || (
+ dev-texlive/texlive-texinfo
+ app-text/tetex
+ app-text/cstetex
+ app-text/ptex
+ )
+ )
+ test? ( || (
+ ( dev-texlive/texlive-langgerman dev-texlive/texlive-fontsrecommended )
+ app-text/tetex
+ app-text/cstetex
+ app-text/ptex
+ )
+ dev-tex/latex2html
+ )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-makefile.patch"
+}
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ emake PREFIX="/usr" CC=$(tc-getCC) || die "emake failed"
+ if use doc; then
+ cd "${S}/doc"
+ emake clean || die "cleaning docs failed"
+ emake || die "generating docs failed"
+ fi
+}
+
+src_install() {
+ dodoc README ChangeLog doc/credits
+ emake PREFIX="${D}/usr" MAN_INSTALL="${D}/usr/share/man/man1" SUPPORT_INSTALL="${D}/usr/share/doc/${PF}" install || die "make install failed"
+ # if doc is not used, only the text version is intalled.
+ if use doc; then
+ emake INFO_INSTALL="${D}/usr/share/info" install-info || die "installing info documentation failed"
+ fi
+}