From b1c56b2b2e2c0551380e74411b27b88b91a38f3e Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Thu, 30 Dec 2021 21:37:37 +0100 Subject: dev-tcltk/tkzinc: fix build of doc Closes: https://bugs.gentoo.org/828121 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alfredo Tupone --- dev-tcltk/tkzinc/files/tkzinc-3.3.4-latex.patch | 9 ++-- dev-tcltk/tkzinc/tkzinc-3.3.6-r1.ebuild | 60 +++++++++++++++++++++++++ dev-tcltk/tkzinc/tkzinc-3.3.6.ebuild | 60 ------------------------- 3 files changed, 63 insertions(+), 66 deletions(-) create mode 100644 dev-tcltk/tkzinc/tkzinc-3.3.6-r1.ebuild delete mode 100644 dev-tcltk/tkzinc/tkzinc-3.3.6.ebuild diff --git a/dev-tcltk/tkzinc/files/tkzinc-3.3.4-latex.patch b/dev-tcltk/tkzinc/files/tkzinc-3.3.4-latex.patch index 6b697a7bfd78..f89ab9ac8e0e 100644 --- a/dev-tcltk/tkzinc/files/tkzinc-3.3.4-latex.patch +++ b/dev-tcltk/tkzinc/files/tkzinc-3.3.4-latex.patch @@ -1,12 +1,9 @@ - doc/refman.tex | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/doc/refman.tex b/doc/refman.tex -index b384e97..be88fde 100644 --- a/doc/refman.tex +++ b/doc/refman.tex -@@ -1,3 +1,4 @@ +@@ -1,4 +1,6 @@ +\RequirePackage{ifpdf} \documentclass[11pt,twoside,a4paper]{book} ++\usepackage [latin1]{inputenc} %---------------------------------------------------------------------- + % $Revision: 1.94 $ diff --git a/dev-tcltk/tkzinc/tkzinc-3.3.6-r1.ebuild b/dev-tcltk/tkzinc/tkzinc-3.3.6-r1.ebuild new file mode 100644 index 000000000000..a94dde7d11fe --- /dev/null +++ b/dev-tcltk/tkzinc/tkzinc-3.3.6-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="A Tk widget library" +HOMEPAGE="http://www.tkzinc.org" +SRC_URI="http://www.tkzinc.org/Packages/Tkzinc-${PV}plus.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug doc threads" + +DEPEND=" + dev-lang/tk:= + media-libs/glew:= + virtual/opengl + doc? ( virtual/latex-base )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/Tkzinc-${PV//.}+" + +PATCHES=( + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${PN}-3.3.4-latex.patch + ) + +HTML_DOCS='doc/*png doc/*html doc/*css' + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --enable-shared \ + --enable-gl=damage \ + $(use_enable debug symbols) \ + $(use_enable threads) +} + +src_compile() { + default + if use doc; then + VARTEXFONTS="${T}"/fonts emake pdf + fi +} + +src_install() { + default + use doc && dodoc doc/refman.pdf +} + +src_test() { + emake test +} diff --git a/dev-tcltk/tkzinc/tkzinc-3.3.6.ebuild b/dev-tcltk/tkzinc/tkzinc-3.3.6.ebuild deleted file mode 100644 index 7f39c89740af..000000000000 --- a/dev-tcltk/tkzinc/tkzinc-3.3.6.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools - -DESCRIPTION="A Tk widget library" -HOMEPAGE="http://www.tkzinc.org" -SRC_URI="http://www.tkzinc.org/Packages/Tkzinc-${PV}plus.tar.gz" - -LICENSE="LGPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="debug doc threads" - -DEPEND=" - dev-lang/tk:= - media-libs/glew:= - virtual/opengl - doc? ( virtual/latex-base )" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/Tkzinc-${PV//.}+" - -PATCHES=( - "${FILESDIR}"/${PV}-ldflags.patch - "${FILESDIR}"/${PN}-3.3.4-latex.patch - ) - -HTML_DOCS='doc/*png doc/*html doc/*css' - -src_prepare() { - default - eautoreconf -} - -src_configure() { - econf \ - --enable-shared \ - --enable-gl=damage \ - $(use_enable debug symbols) \ - $(use_enable threads) -} - -src_compile() { - default - if use doc; then - VARTEXFONTS="${T}"/fonts emake pdf - fi -} - -src_install() { - default - use doc && dodoc doc/refman.pdf -} - -src_test() { - emake test -} -- cgit v1.2.3-65-gdbad