diff options
author | Sam James <sam@gentoo.org> | 2021-07-03 02:52:26 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-07-03 04:07:29 +0100 |
commit | fea8f09137649f007ea78fa031c187382e1633ef (patch) | |
tree | 2975d8dd1a47f1c653b99d5d2f88584cbdfa0c14 /dev-tex | |
parent | dev-libs/libfmt: 8.0.1 version bunp (diff) | |
download | gentoo-fea8f09137649f007ea78fa031c187382e1633ef.tar.gz gentoo-fea8f09137649f007ea78fa031c187382e1633ef.tar.bz2 gentoo-fea8f09137649f007ea78fa031c187382e1633ef.zip |
dev-tex/latex2html: add 2021.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-tex')
-rw-r--r-- | dev-tex/latex2html/Manifest | 1 | ||||
-rw-r--r-- | dev-tex/latex2html/files/latex2html-2021.2-respect-DESTDIR.patch | 24 | ||||
-rw-r--r-- | dev-tex/latex2html/latex2html-2021.2.ebuild | 81 |
3 files changed, 106 insertions, 0 deletions
diff --git a/dev-tex/latex2html/Manifest b/dev-tex/latex2html/Manifest index 99f8970b9335..8a5311dffa9d 100644 --- a/dev-tex/latex2html/Manifest +++ b/dev-tex/latex2html/Manifest @@ -1,3 +1,4 @@ DIST latex2html-2015.tar.gz 1217699 BLAKE2B e9daea005b7674ebb6a8c5902b77b609a633515b4127a2b3fe4d1b15bc2428c02ccc024df62545d5fe63e7034ad4b1532905fee97057d49730ec27f12913c55e SHA512 dd031944250efd28691edeba5e83b4c5c0deec3a2e7c2ab2a9bd285a911f6ab21a02cd0ef697bebc2c7c7c0ebd285493c1d6b01b0db9355fc7f3316a2af65e2c DIST latex2html-2017.2.tar.gz 1131438 BLAKE2B 0a13cca95e1f7d8a9fd7d6b077726e083a6d33fbc712b883be46d57fbdea91d1d02a2a2f1990c5827cf2a4b9db18033f41f326af0a69770988bf4ff5e53a010a SHA512 0e1ab1b2005dc71988b1500884d7a13bfbdce73a62ef7f6cc6e83e29d776c98eb09cff3f8d0c162493586094c9ca6f07d47e98d2137f223f27044d03e9bb3473 +DIST latex2html-2021.2.tar.gz 1139791 BLAKE2B 4fa9b45a33dbfb5c9e3bb45ebab19edb5d7a1d9c882ab30e75afbda7ad902cf519403b685f1f30b69b3d6ec976aa72b3065851b6d24b00c2e626e496ea8afd79 SHA512 b8d742b427e833f732457194cc60c043f750d202c46fb0d1d4e46df8e6d4dabacb5b474084aec46aa4eed68ee0249f3c0b053b5446401d09034e7f59148ad18a DIST latex2html-2021.tar.gz 1130224 BLAKE2B c3775b2546a866834c0ed94362a428f2cfe48e8fe7337261993fe1f473350ddb778c50cc4393fe33c9f3829e5dc6f5c0ef43ae6a4c21481746023ef5939308da SHA512 f1f087a58911410b3ca9f4b60149b66d17608a9a56d0e8f74f08e6d6595e3e9c4f5378a7ab5cfc7488cd182a0dc3d4c151283b57636a70271c7f734e69ed0608 diff --git a/dev-tex/latex2html/files/latex2html-2021.2-respect-DESTDIR.patch b/dev-tex/latex2html/files/latex2html-2021.2-respect-DESTDIR.patch new file mode 100644 index 000000000000..8ddd83d594df --- /dev/null +++ b/dev-tex/latex2html/files/latex2html-2021.2-respect-DESTDIR.patch @@ -0,0 +1,24 @@ +From 263eb47193ff9b0bd987b7f72eb7b331b96f9f96 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sat, 3 Jul 2021 02:50:53 +0100 +Subject: [PATCH] Respect DESTDIR + +--- + config/install.pl | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/config/install.pl b/config/install.pl +index d732176..678eaa6 100755 +--- a/config/install.pl ++++ b/config/install.pl +@@ -376,6 +376,7 @@ if($cfg{TEXPATH}) { + print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n"; + my $dir = 'texinputs'; + my $dest = $cfg{TEXPATH}; ++ $dest = $ENV{'DESTDIR'}.$dest if($ENV{'DESTDIR'}); + unless(opendir(DIR,$dir)) { + print STDERR qq{Error: Could not read directory "$dir": $!\n}; + } else { +-- +2.32.0 + diff --git a/dev-tex/latex2html/latex2html-2021.2.ebuild b/dev-tex/latex2html/latex2html-2021.2.ebuild new file mode 100644 index 000000000000..61f530befb7c --- /dev/null +++ b/dev-tex/latex2html/latex2html-2021.2.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 ~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 + 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 +} |