summaryrefslogtreecommitdiff
path: root/dev-tex/dvi2tty
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tex/dvi2tty')
-rw-r--r--dev-tex/dvi2tty/Manifest4
-rw-r--r--dev-tex/dvi2tty/dvi2tty-5.3.4.ebuild29
-rw-r--r--dev-tex/dvi2tty/files/dvi2tty-5.3.4-cflags.patch29
-rw-r--r--dev-tex/dvi2tty/metadata.xml12
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-tex/dvi2tty/Manifest b/dev-tex/dvi2tty/Manifest
new file mode 100644
index 000000000000..5cd882a6063c
--- /dev/null
+++ b/dev-tex/dvi2tty/Manifest
@@ -0,0 +1,4 @@
+AUX dvi2tty-5.3.4-cflags.patch 615 BLAKE2B 7cf275db31c39267640b1579e2b0488f57c4d1e7510d5eaee2775521412e2960f07c3e7c250b204da28a8144b4a51787f89abc63000bd5ed56b047509202415e SHA512 d6aa5a3276583b4f98a5a21f1d08e4dfcd4c9fcedc3b4d82c2f6e274d8eeaf2fb9d1826b341405e080f4607adfd2020c528d79126847d783c450e39806718fc5
+DIST dvi2tty-5.3.4.tgz 59519 BLAKE2B 0de24efec80a1d6254db904c498ebf4d6e638a19e3ca85f1092725050d4020a904bb8088946e10603ec4e6a0e6a0938245210af6af86dd2f03a42ab3994fa80f SHA512 5ad91f346d882cbe8a64e746aafec51dce208a01f83a058a86669a3eecb9546804831bf0b283553c54cfd751f0b08fda80343de0ebe78c6f86360d606a839877
+EBUILD dvi2tty-5.3.4.ebuild 638 BLAKE2B ee01c8c6873ece9e5b06edbc5478e7ad337fbed657ba85d33f5d7902ca015816262912d81b28009760f9bcb58e6b0aaea48ea2a16444a18cfcd7e7e7011621da SHA512 a0f6304577a5d064850768238f026c5c972ba726cdeef693f339344ed81d50c1ed6fdcf96f5aa8e07f4c1d0f3f7f3e8a3107f2ffd642eddae4fbe9bebfe039e5
+MISC metadata.xml 351 BLAKE2B c005a720042536cdad9089ad0e8d4a96dc3c7519f469691b5e2388197211d024a90d476066efea3dc3ce6bfa367ca9f188270f910abaf9c37e283b123d967ea1 SHA512 0101264deff11ad3ac6f600aebb219fd8050ce76392655af100c280f68d1161cd5ef5827ccc395b7fdb74699eb8c30e174c79854e583ac1c0b953c868b70376d
diff --git a/dev-tex/dvi2tty/dvi2tty-5.3.4.ebuild b/dev-tex/dvi2tty/dvi2tty-5.3.4.ebuild
new file mode 100644
index 000000000000..a33fc5e26bd5
--- /dev/null
+++ b/dev-tex/dvi2tty/dvi2tty-5.3.4.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+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}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cflags.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake
+}
+
+src_install() {
+ dobin dvi2tty disdvi
+ doman dvi2tty.1 disdvi.1
+ dodoc README TODO
+}
diff --git a/dev-tex/dvi2tty/files/dvi2tty-5.3.4-cflags.patch b/dev-tex/dvi2tty/files/dvi2tty-5.3.4-cflags.patch
new file mode 100644
index 000000000000..1d46f1954531
--- /dev/null
+++ b/dev-tex/dvi2tty/files/dvi2tty-5.3.4-cflags.patch
@@ -0,0 +1,29 @@
+--- Makefile
++++ Makefile
+@@ -6,11 +6,10 @@
+ # This Makefile does not work for MSDOS. Make your
+ # own one, or compile by hand.
+ #
+-CC = gcc
++CC ?= gcc
+
+-CFLAGS = -Wall -O2
++CFLAGS += -Wall
+ # CFLAGS = -Wall -O2 -fomit-frame-pointer
+-LDFLAGS = -s
+
+ prefix = ${DESTDIR}/usr
+ mandir = $(prefix)/share/man/man1
+@@ -20,10 +19,10 @@
+ all: dvi2tty disdvi
+
+ dvi2tty:dvi2tty.o dvistuff.o
+- $(CC) $(LFLAGS) -o dvi2tty dvi2tty.o dvistuff.o
++ $(CC) $(LDFLAGS) -o dvi2tty dvi2tty.o dvistuff.o
+
+ disdvi:disdvi.o
+- $(CC) $(LFLAGS) -o disdvi disdvi.o
++ $(CC) $(LDFLAGS) -o disdvi disdvi.o
+
+ dvi2tty.o: dvi2tty.c dvi2tty.h
+
diff --git a/dev-tex/dvi2tty/metadata.xml b/dev-tex/dvi2tty/metadata.xml
new file mode 100644
index 000000000000..eba585c71c15
--- /dev/null
+++ b/dev-tex/dvi2tty/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+</maintainer>
+<maintainer type="project">
+ <email>tex@gentoo.org</email>
+ <name>Gentoo TeX Project</name>
+</maintainer>
+</pkgmetadata>