diff --git a/dev-tex/detex/detex-2.8-r1.ebuild b/dev-tex/detex/detex-2.8-r1.ebuild index 7a639f85f72..b2bffa45599 100644 --- a/dev-tex/detex/detex-2.8-r1.ebuild +++ b/dev-tex/detex/detex-2.8-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=0 @@ -6,8 +6,8 @@ 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" +HOMEPAGE="https://www.cs.purdue.edu/homes/trinkle/detex/" +SRC_URI="https://www.cs.purdue.edu/homes/trinkle/detex/${P}.tar" LICENSE="BSD" SLOT="0" diff --git a/dev-tex/detex/detex-2.8-r2.ebuild b/dev-tex/detex/detex-2.8-r2.ebuild new file mode 100644 index 00000000000..1313b390288 --- /dev/null +++ b/dev-tex/detex/detex-2.8-r2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="A filter program that removes the LaTeX (or TeX) control sequences" +HOMEPAGE="https://www.cs.purdue.edu/homes/trinkle/detex/" +SRC_URI="https://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" + +DEPEND="sys-devel/flex" + +PATCHES=( "${FILESDIR}/${P}-ldflags.patch" ) + +src_prepare() { + tc-export CC + default + 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_install() { + dobin detex + dodoc README + doman detex.1l +}