summaryrefslogtreecommitdiff
path: root/dev-tex/detex
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tex/detex')
-rw-r--r--dev-tex/detex/Manifest4
-rw-r--r--dev-tex/detex/detex-2.8-r1.ebuild42
-rw-r--r--dev-tex/detex/files/detex-2.8-ldflags.patch17
-rw-r--r--dev-tex/detex/metadata.xml8
4 files changed, 71 insertions, 0 deletions
diff --git a/dev-tex/detex/Manifest b/dev-tex/detex/Manifest
new file mode 100644
index 000000000000..4802fd556e9c
--- /dev/null
+++ b/dev-tex/detex/Manifest
@@ -0,0 +1,4 @@
+AUX detex-2.8-ldflags.patch 394 BLAKE2B 8d6f525ad1c6c0c59d6097f66c9cdb5a22bfed56feeaf31e23b913e06afb97942c9c93f2c31fc0da4230ecefa44be7bdbf076e872e6342e0d32fc05749928823 SHA512 04e7ffc459cb6733666ae15a8d5bbdb1dc4405afbcde4a86d88b5b61a4714226a1c2e42a8194b12dc563dab51e4736ebd6ae986010f5c311ae9a22855ff614e2
+DIST detex-2.8.tar 318976 BLAKE2B 1b56b3f4636f900f7b788e49fe750cbf6bca97c104292b2be8912de074a9a5a1eeec9f8c5cad3dab17eceddca36fcc035a30f1dcd4b160004996b283591954e3 SHA512 5afd54aebc3a018e9b72a5e5f37d05858b0b90c1165ec725b08995f5338479153a04ff938a2f54543108c66ac2f66d2c06159d331c9cde304ebce32b527c737f
+EBUILD detex-2.8-r1.ebuild 1093 BLAKE2B 5ea48d11cc2b5329360865d11083fd9a783cd4c69c47fe741a687f1b10d661e47db01e6a2bb744cfccc058de1f4a7378bc3e2fcf69666ce5da5dc3cb10951c4e SHA512 c450ef97733e84b8564f54f74e5f1bf8bf180718083dc8c201cb51dc7fb4f72957728024f6382a67b776ef013202ae69ad53115115a1d0597cfbec0452719265
+MISC metadata.xml 245 BLAKE2B ee3a163cfe0a4bc59c0dfb46f9ddb580e2d259b4d0e33cb4e684eb9e6d4b901bf97c6edd891f3b75a613a782f1b89318d0ee3ec9bee4e34c4441d9e8f4267678 SHA512 1653777623e2c15e1ce13229e396723b2cc9c214983e0f8592de98c01a31badc6c38c6735ed44f937d145883b43fb6f049af3eddb9ff96b18c96ccf8f67dd690
diff --git a/dev-tex/detex/detex-2.8-r1.ebuild b/dev-tex/detex/detex-2.8-r1.ebuild
new file mode 100644
index 000000000000..7a639f85f72a
--- /dev/null
+++ b/dev-tex/detex/detex-2.8-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=0
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A filter program that removes the LaTeX (or TeX) control sequences"
+HOMEPAGE="http://www.cs.purdue.edu/homes/trinkle/detex/"
+SRC_URI="http://www.cs.purdue.edu/homes/trinkle/detex/${P}.tar"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="sys-devel/flex"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-ldflags.patch"
+ sed -i \
+ -e "s:CFLAGS = -O \${DEFS}:CFLAGS = ${CFLAGS} \${DEFS}:" \
+ -e 's:LEX = lex:#LEX = lex:' \
+ -e 's:#LEX = flex:LEX = flex:' \
+ -e 's:#DEFS += ${DEFS} -DNO_MALLOC_DECL:DEFS += -DNO_MALLOC_DECL:' \
+ -e 's:LEXLIB = -ll:LEXLIB = -lfl:' \
+ Makefile || die "sed failed"
+}
+
+src_compile() {
+ tc-export CC
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin detex || die
+ dodoc README
+ doman detex.1l
+}
diff --git a/dev-tex/detex/files/detex-2.8-ldflags.patch b/dev-tex/detex/files/detex-2.8-ldflags.patch
new file mode 100644
index 000000000000..e70c000b0c5b
--- /dev/null
+++ b/dev-tex/detex/files/detex-2.8-ldflags.patch
@@ -0,0 +1,17 @@
+dont ignore ldflags
+bug #209731
+
+
+Index: detex-2.8/Makefile
+===================================================================
+--- detex-2.8.orig/Makefile
++++ detex-2.8/Makefile
+@@ -104,7 +104,7 @@ D_OBJ = detex.o
+ all: ${PROGS}
+
+ detex: ${D_OBJ}
+- ${CC} ${CFLAGS} -o $@ ${D_OBJ} ${LEXLIB}
++ ${CC} $(LDFLAGS) ${CFLAGS} -o $@ ${D_OBJ} ${LEXLIB}
+
+ detex.c:
+ sed -f states.sed detex.l > xxx.l
diff --git a/dev-tex/detex/metadata.xml b/dev-tex/detex/metadata.xml
new file mode 100644
index 000000000000..13170c3184d8
--- /dev/null
+++ b/dev-tex/detex/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>tex@gentoo.org</email>
+ <name>Gentoo TeX Project</name>
+</maintainer>
+</pkgmetadata>