diff options
Diffstat (limited to 'dev-tex/dvi2tty')
-rw-r--r-- | dev-tex/dvi2tty/ChangeLog | 8 | ||||
-rw-r--r-- | dev-tex/dvi2tty/dvi2tty-5.3.1.ebuild | 12 | ||||
-rw-r--r-- | dev-tex/dvi2tty/files/dvi2tty-cflags.patch | 30 |
3 files changed, 44 insertions, 6 deletions
diff --git a/dev-tex/dvi2tty/ChangeLog b/dev-tex/dvi2tty/ChangeLog index 263211dd43b1..d4abd4c578b8 100644 --- a/dev-tex/dvi2tty/ChangeLog +++ b/dev-tex/dvi2tty/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-tex/dvi2tty -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/dvi2tty/ChangeLog,v 1.8 2007/03/13 00:15:26 nattfodd Exp $ +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/dvi2tty/ChangeLog,v 1.9 2008/08/22 14:11:01 aballier Exp $ + + 22 Aug 2008; Alexis Ballier <aballier@gentoo.org> + +files/dvi2tty-cflags.patch, dvi2tty-5.3.1.ebuild: + respect cflags and ldflags, fix quoting, tc-export CC, install the README 12 Mar 2007; Alexandre Buisse <nattfodd@gentoo.org> metadata.xml: Replaced text-markup by tex as maintaining herd (text-markup split). diff --git a/dev-tex/dvi2tty/dvi2tty-5.3.1.ebuild b/dev-tex/dvi2tty/dvi2tty-5.3.1.ebuild index 1a275e3aea02..cbfd1a7bbcff 100644 --- a/dev-tex/dvi2tty/dvi2tty-5.3.1.ebuild +++ b/dev-tex/dvi2tty/dvi2tty-5.3.1.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/dvi2tty/dvi2tty-5.3.1.ebuild,v 1.5 2004/12/28 20:59:04 absinthe Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-tex/dvi2tty/dvi2tty-5.3.1.ebuild,v 1.6 2008/08/22 14:11:01 aballier Exp $ + +inherit eutils toolchain-funcs -inherit eutils DESCRIPTION="Preview dvi-files on text-only devices" HOMEPAGE="http://www.ctan.org/tex-archive/dviware/" SRC_URI="ftp://ftp.mesa.nl/pub/dvi2tty/${P}.tar.gz" @@ -14,14 +15,17 @@ DEPEND="" src_unpack() { unpack ${A} - epatch ${FILESDIR}/dvi2tty-gcc.patch + epatch "${FILESDIR}/${PN}-gcc.patch" + epatch "${FILESDIR}/${PN}-cflags.patch" } src_compile() { + tc-export CC emake || die } src_install() { dobin dvi2tty disdvi doman dvi2tty.1 disdvi.1 + dodoc README } diff --git a/dev-tex/dvi2tty/files/dvi2tty-cflags.patch b/dev-tex/dvi2tty/files/dvi2tty-cflags.patch new file mode 100644 index 000000000000..36d9afb7f1ea --- /dev/null +++ b/dev-tex/dvi2tty/files/dvi2tty-cflags.patch @@ -0,0 +1,30 @@ +Index: dvi2tty-5.3.1/Makefile +=================================================================== +--- dvi2tty-5.3.1.orig/Makefile ++++ dvi2tty-5.3.1/Makefile +@@ -6,11 +6,11 @@ + # This Makefile does not work for MSDOS. Make your + # own one, or compile by hand. + # +-CC = gcc ++CC ?= gcc + +-CFLAGS = -Wall -O2 ++CFLAGS ?= -Wall -O2 + # CFLAGS = -Wall -O2 -fomit-frame-pointer +-LDFLAGS = -s ++#LDFLAGS = -s + + prefix = /usr/local + mandir = $(prefix)/man/man1 +@@ -20,10 +20,8 @@ bindir = $(prefix)/bin + all: dvi2tty disdvi + + dvi2tty:dvi2tty.o dvistuff.o +- $(CC) $(LFLAGS) -o dvi2tty dvi2tty.o dvistuff.o + + disdvi:disdvi.o +- $(CC) $(LFLAGS) -o disdvi disdvi.o + + dvi2tty.o: dvi2tty.c dvi2tty.h + |