From b1e3436ee676da49d068da88d21e5cfc549f282e Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 24 Nov 2021 20:02:09 +0000 Subject: dev-tex/html2latex: use src_configure, use RDEPEND Signed-off-by: Sam James --- dev-tex/html2latex/html2latex-1.1-r2.ebuild | 40 ------------------------ dev-tex/html2latex/html2latex-1.1-r3.ebuild | 47 +++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 40 deletions(-) delete mode 100644 dev-tex/html2latex/html2latex-1.1-r2.ebuild create mode 100644 dev-tex/html2latex/html2latex-1.1-r3.ebuild diff --git a/dev-tex/html2latex/html2latex-1.1-r2.ebuild b/dev-tex/html2latex/html2latex-1.1-r2.ebuild deleted file mode 100644 index 1321a9313436..000000000000 --- a/dev-tex/html2latex/html2latex-1.1-r2.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit perl-module - -DESCRIPTION="Perl script to convert HTML files into formatted LaTeX" -HOMEPAGE="http://html2latex.sourceforge.net/" -SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" -LICENSE="GPL-2" - -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" - -IUSE="imagemagick libwww" - -DEPEND="dev-perl/HTML-Tree - dev-perl/XML-Simple - imagemagick? ( media-gfx/imagemagick ) - libwww? ( dev-perl/libwww-perl )" - -src_compile() { - # HTML::LaTex - cd HTML - perl-module_src_configure - perl-module_src_compile -} - -src_install() { - dobin html2latex - doman html2latex.1 - dodoc README TODO - - # HTML::LaTex - cd HTML - perl-module_src_install - # rm unwanted README.win - rm "${ED}"/usr/share/doc/${PF}/README.win.txt || die -} diff --git a/dev-tex/html2latex/html2latex-1.1-r3.ebuild b/dev-tex/html2latex/html2latex-1.1-r3.ebuild new file mode 100644 index 000000000000..dd5a18cfc929 --- /dev/null +++ b/dev-tex/html2latex/html2latex-1.1-r3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit perl-module + +DESCRIPTION="Perl script to convert HTML files into formatted LaTeX" +HOMEPAGE="http://html2latex.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +IUSE="imagemagick libwww" + +DEPEND="dev-perl/HTML-Tree + dev-perl/XML-Simple + imagemagick? ( media-gfx/imagemagick ) + libwww? ( dev-perl/libwww-perl )" +RDEPEND="${DEPEND}" + +src_configure() { + # HTML::LaTex + cd HTML || die + perl-module_src_configure +} + +src_compile() { + # HTML::LaTex + cd HTML || die + perl-module_src_compile +} + +src_install() { + dobin html2latex + doman html2latex.1 + dodoc README TODO + + # HTML::LaTex + cd HTML || die + perl-module_src_install + + # rm unwanted README.win + rm "${ED}"/usr/share/doc/${PF}/README.win.txt || die +} -- cgit v1.2.3-65-gdbad