summaryrefslogtreecommitdiff
path: root/dev-tex/catdvi
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-tex/catdvi
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-tex/catdvi')
-rw-r--r--dev-tex/catdvi/Manifest4
-rw-r--r--dev-tex/catdvi/catdvi-0.14-r1.ebuild38
-rw-r--r--dev-tex/catdvi/files/catdvi-0.14-kpathsea.patch60
-rw-r--r--dev-tex/catdvi/metadata.xml14
4 files changed, 116 insertions, 0 deletions
diff --git a/dev-tex/catdvi/Manifest b/dev-tex/catdvi/Manifest
new file mode 100644
index 000000000000..d2d4aeedc61e
--- /dev/null
+++ b/dev-tex/catdvi/Manifest
@@ -0,0 +1,4 @@
+AUX catdvi-0.14-kpathsea.patch 1592 BLAKE2B abc40f246f81dfb376e3753ebf8a3fd1a80ca2d9b96243f46c1e5a66b86790279101f15486bdca1e41a3dc27dde5dc0a39f99ac4a0657b2ed25545d974ff886c SHA512 8da09a34e41c3ce4fbcf3db0f01b66790714daff2280f1e878c0fa8c432b15285d6b6d888ec81bb399cbdad1f903688c567a97fd20be5a53716ab54f43bb4e3c
+DIST catdvi-0.14.tar.gz 160661 BLAKE2B 850be6284f286d6d7ef0b8d91316fd832e17cc1b18bee561c5d6fa9f9abe1e840ebdcfad208bf6c648cff5bbc57a1a5aad2b20a203777695f9c1c54672c7b608 SHA512 82ea6130ec702b49ed2d2f08b968ca4d5bee6b16c7973500ceae2d412b209f38a6e63a9e80dd8d2866f190340a7758aa23ee31bed76beb35065016fea109982d
+EBUILD catdvi-0.14-r1.ebuild 864 BLAKE2B cab487fbb6da512adf721783ab428bf547540c7193faaae6c5f74ee2f686f5b76852db5619e2803aabe8d270636b940c6bd269b179844417160eea5ca00e2a08 SHA512 3ff018fbeb8de97dc5cc521a105d64fd7508e650f61369c1aca26c3dfc3ab7b035dee2163b5aabff22782f395e6e3d44f609678a267d44f2161808460e78dd40
+MISC metadata.xml 400 BLAKE2B e5b5476d8f32761d3cd280b2cd59c593af13982bf3d56e84dd0ee3b145a4b35880e165cc900a21b589885ea807841320fa945fab7dd1cde4cd5380aa779975a5 SHA512 145510fdced5783c731d1c1d2dee14f8f6186693dea1b83b7173ff2095f6c45214eb7cedc281c97af92f9db8f5ca1b41b2728a7cf082d828fd714d19755c9a54
diff --git a/dev-tex/catdvi/catdvi-0.14-r1.ebuild b/dev-tex/catdvi/catdvi-0.14-r1.ebuild
new file mode 100644
index 000000000000..7783adcdb420
--- /dev/null
+++ b/dev-tex/catdvi/catdvi-0.14-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils autotools toolchain-funcs flag-o-matic
+
+DESCRIPTION="DVI to plain text translator"
+HOMEPAGE="http://catdvi.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="virtual/tex-base
+ dev-libs/kpathsea"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-kpathsea.patch"
+ eautoconf
+ has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
+}
+
+src_compile() {
+ # Do not use plain emake here, because make tests
+ # may cache fonts and generate sandbox violations.
+ emake catdvi CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin catdvi
+ doman catdvi.1
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
diff --git a/dev-tex/catdvi/files/catdvi-0.14-kpathsea.patch b/dev-tex/catdvi/files/catdvi-0.14-kpathsea.patch
new file mode 100644
index 000000000000..799cd1512018
--- /dev/null
+++ b/dev-tex/catdvi/files/catdvi-0.14-kpathsea.patch
@@ -0,0 +1,60 @@
+http://bugs.gentoo.org/342817
+
+--- catdvi-0.14-orig/config.mk.in
++++ catdvi-0.14/config.mk.in
+@@ -23,6 +23,7 @@
+
+ CFG_HAS_GETOPT_LONG = @CFG_HAS_GETOPT_LONG@
+ CFG_HAS_KPATHSEA = @CFG_HAS_KPATHSEA@
++CFG_HAS_KPATHSEA_VERSION_H = @CFG_HAS_KPATHSEA_VERSION_H@
+ CFG_KPATHSEA_HAS_GETOPT_LONG = @CFG_KPATHSEA_HAS_GETOPT_LONG@
+ CFG_SHOW_PSE2UNIC_WARNINGS = @CFG_SHOW_PSETOUNIC_WARNINGS@
+
+--- catdvi-0.14-orig/configure.in
++++ catdvi-0.14/configure.in
+@@ -48,6 +48,9 @@
+ AC_MSG_ERROR([*** kpathsea library (required) not found; try to use the --with-kpathsea-prefix option ***])
+ fi
+
++AC_CHECK_HEADERS([kpathsea/version.h], CFG_HAS_KPATHSEA_VERSION_H=yes, CFG_HAS_KPATHSEA_VERSION_H=no)
++AC_SUBST(CFG_HAS_KPATHSEA_VERSION_H)
++
+ dnl It seem libkpathsea provides a getopt_long() implementation
+ dnl if and only if the C library does not.
+ dnl
+--- catdvi-0.14-orig/GNUmakefile
++++ catdvi-0.14/GNUmakefile
+@@ -36,6 +36,10 @@
+ endif
+ endif
+
++ifeq ($(CFG_HAS_KPATHSEA_VERSION_H),yes)
++CPPFLAGS += -DCFG_HAS_KPATHSEA_VERSION_H
++endif
++
+ ifeq ($(CFG_HAS_KPATHSEA),yes)
+ FINDTFM = kpathsea.o
+ LDLIBS = -lkpathsea
+--- catdvi-0.14-orig/kpathsea.c
++++ catdvi-0.14/kpathsea.c
+@@ -21,6 +21,12 @@
+ #include "findtfm.h"
+ #include "version.h"
+
++#ifdef CFG_HAS_KPATHSEA_VERSION_H
++#include <kpathsea/version.h>
++#else
++extern char * kpathsea_version_string;
++#endif
++
+ void setup_findtfm(char const * progname)
+ {
+ kpse_set_program_name(progname, PACKAGE);
+@@ -36,7 +42,6 @@
+
+ void version_findtfm(void)
+ {
+- extern char * kpathsea_version_string;
+ puts(kpathsea_version_string);
+ }
+
diff --git a/dev-tex/catdvi/metadata.xml b/dev-tex/catdvi/metadata.xml
new file mode 100644
index 000000000000..08715096c303
--- /dev/null
+++ b/dev-tex/catdvi/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ulm@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>tex@gentoo.org</email>
+ <name>Gentoo TeX Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">catdvi</remote-id>
+ </upstream>
+</pkgmetadata>