From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/latex2html/
Date: Sun, 7 Nov 2021 23:11:40 +0000 (UTC) [thread overview]
Message-ID: <1636326684.f402bd3bee8ca39820d9908c93ad54b8197b4c5b.sam@gentoo> (raw)
commit: f402bd3bee8ca39820d9908c93ad54b8197b4c5b
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 7 23:11:24 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 7 23:11:24 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f402bd3b
dev-tex/latex2html: fix netpbm dependency
Bug: https://bugs.gentoo.org/822360
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-tex/latex2html/latex2html-2021.2-r1.ebuild | 81 ++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
diff --git a/dev-tex/latex2html/latex2html-2021.2-r1.ebuild b/dev-tex/latex2html/latex2html-2021.2-r1.ebuild
new file mode 100644
index 00000000000..878ee71d34e
--- /dev/null
+++ b/dev-tex/latex2html/latex2html-2021.2-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Convertor written in Perl that converts LaTeX documents to HTML"
+HOMEPAGE="https://www.latex2html.org/"
+SRC_URI="https://github.com/latex2html/latex2html/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="gif png"
+
+DEPEND="
+ app-text/ghostscript-gpl
+ virtual/latex-base
+ >=media-libs/netpbm-10.86.24
+ dev-lang/perl
+ gif? ( media-libs/giflib )
+ png? ( media-libs/libpng:0 )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2021.2-respect-DESTDIR.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e 's%@PERL@%'"${EPREFIX}"'/usr/bin/perl%g' wrapper/unix.pin || die
+}
+
+src_configure() {
+ local myconf
+
+ use gif || use png || myconf+=" --disable-images"
+
+ econf \
+ --libdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \
+ --shlibdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \
+ --enable-pk \
+ --enable-eps \
+ --enable-reverse \
+ --enable-pipes \
+ --enable-paths \
+ --enable-wrapper \
+ --with-texpath="${EPREFIX}"/usr/share/texmf-site/tex/latex/html \
+ --without-mktexlsr \
+ $(use_enable gif) \
+ $(use_enable png) \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ # make /usr/share/latex2html sticky
+ keepdir /usr/share/latex2html
+
+ # clean the perl scripts up to remove references to the sandbox
+ local dir="${ED}/usr/$(get_libdir)/latex2html"
+ if use png || use gif; then
+ # pstoimg isn't built unless gif or png useflags are enabled
+ sed -i -e "s:${T}:/tmp:g" "${dir}"/pstoimg.pl || die
+ fi
+
+ sed -i -e "s:${S}::g" "${dir}"/latex2html.pl || die
+ sed -i -e "s:${T}:/tmp:g" "${dir}"/cfgcache.pm || die
+ sed -i -e "s:${T}:/tmp:g" "${dir}"/l2hconf.pm || die
+
+ dodoc BUGS Changes FAQ MANIFEST README.md TODO
+}
+
+pkg_postinst() {
+ "${EROOT}"/usr/bin/mktexlsr
+}
+
+pkg_postrm() {
+ "${EROOT}"/usr/bin/mktexlsr
+}
next reply other threads:[~2021-11-07 23:11 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-07 23:11 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-04-29 7:51 [gentoo-commits] repo/gentoo:master commit in: dev-tex/latex2html/ Arthur Zamarin
2023-03-24 13:45 Arthur Zamarin
2023-03-22 5:31 Sam James
2022-04-17 18:32 Sam James
2022-01-02 9:25 Sam James
2021-12-07 7:52 Sam James
2021-12-02 9:14 Agostino Sarubbo
2021-12-02 8:24 Agostino Sarubbo
2021-12-01 13:31 Agostino Sarubbo
2021-11-20 7:12 Arthur Zamarin
2021-11-17 15:02 Arthur Zamarin
2021-11-17 7:49 Sam James
2021-11-12 1:23 Sam James
2021-11-12 1:23 Sam James
2021-11-10 7:34 Arthur Zamarin
2021-11-10 7:05 Agostino Sarubbo
2021-11-09 15:04 Jakov Smolić
2021-08-11 19:11 Sam James
2021-08-11 0:23 Sam James
2021-08-11 0:12 Sam James
2021-08-11 0:04 Sam James
2021-07-28 19:32 Marek Szuba
2021-07-03 4:18 Sam James
2021-07-03 3:08 Sam James
2021-07-03 3:08 Sam James
2021-02-16 12:34 Sam James
2021-02-14 4:05 Sam James
2021-02-07 8:59 Sam James
2021-02-07 8:58 Sam James
2021-02-07 8:57 Sam James
2021-02-07 8:56 Sam James
2021-01-09 10:36 Sam James
2021-01-06 22:35 Fabian Groffen
2021-01-02 4:26 Sam James
2021-01-02 4:26 Sam James
2020-09-06 7:49 Sergei Trofimovich
2020-08-05 14:01 Agostino Sarubbo
2020-08-02 12:44 Sergei Trofimovich
2020-08-02 12:04 Sergei Trofimovich
2020-08-02 11:48 Sergei Trofimovich
2020-06-27 20:45 Andreas K. Hüttel
2019-06-05 12:07 Andreas K. Hüttel
2019-05-20 18:51 Aaron Bauman
2017-09-24 20:40 Andreas Hüttel
2017-03-01 10:08 Michael Weber
2017-01-31 16:02 Jeroen Roovers
2017-01-31 15:51 Tobias Klausmann
2016-03-26 10:58 Andreas Hüttel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1636326684.f402bd3bee8ca39820d9908c93ad54b8197b4c5b.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox