summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2020-01-05 13:06:53 +0100
committerJohannes Huber <johu@gentoo.org>2020-01-05 13:06:53 +0100
commitc609cb8e320e87075ed73c6704be2d810b4933e4 (patch)
tree409f0cf8fa8b612efd73017ca18e22fbaab6c95d
parenttoolchain.eclass: add an upstream bug reference to ELFv2 ABI (diff)
downloadgentoo-c609cb8e320e87075ed73c6704be2d810b4933e4.tar.gz
gentoo-c609cb8e320e87075ed73c6704be2d810b4933e4.tar.bz2
gentoo-c609cb8e320e87075ed73c6704be2d810b4933e4.zip
dev-tex/bibtex2html: Version bump 1.99
Closes: https://bugs.gentoo.org/704108 Closes: https://github.com/gentoo/gentoo/pull/14239 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Johannes Huber <johu@gentoo.org> Reviewed-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r--dev-tex/bibtex2html/Manifest1
-rw-r--r--dev-tex/bibtex2html/bibtex2html-1.99.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-tex/bibtex2html/Manifest b/dev-tex/bibtex2html/Manifest
index 2f37c73af865..ce81f299e2c0 100644
--- a/dev-tex/bibtex2html/Manifest
+++ b/dev-tex/bibtex2html/Manifest
@@ -1 +1,2 @@
DIST bibtex2html-1.98.tar.gz 92719 BLAKE2B d9846c1ee03c7f003fe9acf586a0833715f8fc0a675ca4d3d2b2f070206aa81112ce5de1ce84c17fad4f3f5b5972bc6820b67428c73c56709875b2574b03cf19 SHA512 7d8480ed87bef74a1e0c970446fba4d30b103df3e78f127a051efff875032ac7f52d3d6baab0c6a2fc67ca11f3d558d7be4439311934f99067993b5891ff6ad4
+DIST bibtex2html-1.99.tar.gz 93073 BLAKE2B 9cf7f98f9f8ef6f82bd54554482ac8130e88b98e845a6b66a52f7c6bfac326136d3c04b60801f4b1e607818bc0516f9ff75e206e31c531ce7a36217534a40d4a SHA512 70f7465bd51ad3ddb40297edd7b50732088d150692f53f33b2dff276a8d223d972f0935f30fc731fdb3bc693275743420eb0d670109054c1e170fbb49015bbeb
diff --git a/dev-tex/bibtex2html/bibtex2html-1.99.ebuild b/dev-tex/bibtex2html/bibtex2html-1.99.ebuild
new file mode 100644
index 000000000000..8ebac2b7cc61
--- /dev/null
+++ b/dev-tex/bibtex2html/bibtex2html-1.99.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+IUSE="doc +ocamlopt"
+
+DESCRIPTION="A bibtex to HTML converter"
+HOMEPAGE="https://www.lri.fr/~filliatr/bibtex2html/"
+SRC_URI="https://www.lri.fr/~filliatr/ftp/bibtex2html/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+RESTRICT="test"
+
+# With use doc we need a latex compiler to generate manual.pdf
+# hevea is used for manual.html
+# manual.tex needs fullpage.sty
+DEPEND=">=dev-lang/ocaml-3.10:=[ocamlopt?]
+ doc? ( virtual/latex-base
+ dev-texlive/texlive-latexextra
+ dev-tex/hevea )"
+# We need tex-base for bibtex but also some bibtex styles, so we use latex-base
+RDEPEND="virtual/latex-base"
+
+PATCHES=( "${FILESDIR}/${PN}-1.88-destdir.patch" )
+
+src_prepare() {
+ default
+ # Avoid pre-stripped files
+ sed -i -e "s/strip/true/" Makefile.in || die
+ # For make install
+ use ocamlopt || sed -i 's/= opt /= noopt /' Makefile.in || die
+}
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ if use ocamlopt ; then
+ emake opt
+ else
+ emake byte
+ fi
+ if use doc; then
+ emake doc
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc README CHANGES
+ if use doc; then
+ dodoc -r manual.{pdf,html}
+ fi
+}