diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-tex/chktex/chktex-1.7.2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-tex/chktex/chktex-1.7.2.ebuild')
-rw-r--r-- | dev-tex/chktex/chktex-1.7.2.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-tex/chktex/chktex-1.7.2.ebuild b/dev-tex/chktex/chktex-1.7.2.ebuild new file mode 100644 index 000000000000..b03055f2ac61 --- /dev/null +++ b/dev-tex/chktex/chktex-1.7.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils + +DESCRIPTION="Checks latex source for common mistakes" +HOMEPAGE="http://www.nongnu.org/chktex/" +SRC_URI="http://download.savannah.gnu.org/releases/chktex/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="debug doc +pcre test" +# Tests fail without pcre. Enable pcre by default and make tests depend on it. +REQUIRED_USE="test? ( pcre )" + +RDEPEND="virtual/latex-base + dev-lang/perl + pcre? ( dev-libs/libpcre )" +DEPEND="${RDEPEND} + sys-apps/groff + doc? ( dev-tex/latex2html )" + +PATCHES=( "${FILESDIR}/${PN}-1.7.1-asneeded.patch" ) +DOCS=( NEWS ) + +src_configure() { + local myeconfargs=( + $(use_enable debug debug-info) + $(use_enable pcre) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + use doc && autotools-utils_src_compile html +} + +src_install() { + if use doc ; then + HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX/") + DOCS+=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX.tex") + fi + autotools-utils_src_install + doman *.1 +} |