diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-tex/detex/detex-2.8-r1.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-tex/detex/detex-2.8-r1.ebuild')
-rw-r--r-- | dev-tex/detex/detex-2.8-r1.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
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 +} |