dev-tex/latex2html: remove old

Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel
2019-06-05 14:06:32 +02:00
parent 53929708a6
commit 4d472e76af
4 changed files with 0 additions and 250 deletions

View File

@@ -1,4 +1,2 @@
DIST latex2html-2008.tar.gz 1133054 BLAKE2B c4ef102d55592f8ecbaf9372ce90d952866f89223b5db80d038a1305db7e4f835c585affed515f6c920fb0c43b2a3e55d4fcb315b272764f805398b8d12a5895 SHA512 e5a9d1700fcc45e6fcb7bae79e25acd52b7a84b70a75b3c7f1e746f65adbd48219a828420f6a7c437613d5c74dfb0405c91df01ac9c1535e9850f3a3e5c47f60
DIST latex2html-2015.tar.gz 1217699 BLAKE2B e9daea005b7674ebb6a8c5902b77b609a633515b4127a2b3fe4d1b15bc2428c02ccc024df62545d5fe63e7034ad4b1532905fee97057d49730ec27f12913c55e SHA512 dd031944250efd28691edeba5e83b4c5c0deec3a2e7c2ab2a9bd285a911f6ab21a02cd0ef697bebc2c7c7c0ebd285493c1d6b01b0db9355fc7f3316a2af65e2c
DIST latex2html-2017.2.tar.gz 1131438 BLAKE2B 0a13cca95e1f7d8a9fd7d6b077726e083a6d33fbc712b883be46d57fbdea91d1d02a2a2f1990c5827cf2a4b9db18033f41f326af0a69770988bf4ff5e53a010a SHA512 0e1ab1b2005dc71988b1500884d7a13bfbdce73a62ef7f6cc6e83e29d776c98eb09cff3f8d0c162493586094c9ca6f07d47e98d2137f223f27044d03e9bb3473
DIST latex2html-match-multiline.patch.bz2 8147 BLAKE2B 32a2bbe82c5ae08c4a2fdec9f057b8d5750518dc2159e12c53d0435b17841328ee4402b8b776866ad4d72aa2cd2d918c60caad3dc56548a478bd65bb5fff0542 SHA512 01ec0dd1705f030736432a7fa8bf99c83c9e4f01c9755319d36e65e18737361d23073277692a8c44af529a1c37caabcc9e720a4be57e64300f945060e88f6641

View File

@@ -1,84 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit base eutils multilib
DESCRIPTION="convertor written in Perl that converts LATEX documents to HTML"
SRC_URI="http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/${P}.tar.gz
https://dev.gentoo.org/~dilfridge/distfiles/${PN}-match-multiline.patch.bz2"
HOMEPAGE="http://www.latex2html.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-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 )"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/${PN}"-{convert-length,perl_name,extract-major-version-2,destdir}.patch
"${DISTDIR}/${PN}"-match-multiline.patch.bz2 )
src_prepare() {
base_src_prepare
# Dont install old url.sty and other files
# Bug #240980
rm -f texinputs/url.sty texinputs/latin9.def || die "failed to remove duplicate latex files"
sed -ie 's%@PERL@%'"${EPREFIX}"'/usr/bin/perl%g' wrapper/unix.pin || die
}
src_configure() {
local myconf
use gif || use png || myconf="${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} || die "econf failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc BUGS Changes FAQ LICENSE.orig MANIFEST README* TODO
# make /usr/share/latex2html sticky
keepdir /usr/share/latex2html
# clean the perl scripts up to remove references to the sandbox
einfo "fixing sandbox references"
# pstoimg isn't built unless gif or png useflags are enabled
{ use png || use gif ; } && sed -i -e "s:${T}:/tmp:g" "${ED}/usr/$(get_libdir)/latex2html/pstoimg.pl"
sed -i -e "s:${S}::g" "${ED}/usr/$(get_libdir)/latex2html/latex2html.pl" || die
sed -i -e "s:${T}:/tmp:g" "${ED}/usr/$(get_libdir)/latex2html/cfgcache.pm" || die
sed -i -e "s:${T}:/tmp:g" "${ED}/usr/$(get_libdir)/latex2html/l2hconf.pm" || die
}
pkg_postinst() {
einfo "Running ${EROOT}usr/bin/mktexlsr to rebuild ls-R database...."
"${EROOT}"usr/bin/mktexlsr
}
pkg_postrm() {
einfo "Running ${EROOT}usr/bin/mktexlsr to rebuild ls-R database...."
"${EROOT}"usr/bin/mktexlsr
}

View File

@@ -1,83 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=0
inherit eutils multilib
DESCRIPTION="convertor written in Perl that converts LATEX documents to HTML"
SRC_URI="http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/${P}.tar.gz"
HOMEPAGE="http://www.latex2html.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
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 )"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-convert-length.patch"
epatch "${FILESDIR}/${PN}-perl_name.patch"
epatch "${FILESDIR}/${PN}-extract-major-version.patch"
epatch "${FILESDIR}/${PN}-destdir.patch"
# Dont install old url.sty and other files
# Bug #240980
rm -f texinputs/url.sty texinputs/latin9.def || die "failed to remove duplicate latex files"
}
src_compile() {
local myconf
use gif || use png || myconf="${myconf} --disable-images"
econf --libdir=/usr/$(get_libdir)/latex2html \
--shlibdir=/usr/$(get_libdir)/latex2html \
--enable-pk \
--enable-eps \
--enable-reverse \
--enable-pipes \
--enable-paths \
--enable-wrapper \
--with-texpath=/usr/share/texmf-site/tex/latex/html \
--without-mktexlsr \
$(use_enable gif) \
$(use_enable png) \
${myconf} || die "econf failed"
emake || die "make failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc BUGS Changes FAQ LICENSE.orig MANIFEST README* TODO
# make /usr/share/latex2html sticky
keepdir /usr/share/latex2html
# clean the perl scripts up to remove references to the sandbox
einfo "fixing sandbox references"
# pstoimg isn't built unless gif or png useflags are enabled
{ use png || use gif ; } && dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/pstoimg.pl
dosed "s:${S}::g" /usr/$(get_libdir)/latex2html/latex2html.pl
dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/cfgcache.pm
dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/l2hconf.pm
}
pkg_postinst() {
einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
"${ROOT}"usr/bin/mktexlsr
}
pkg_postrm() {
einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
"${ROOT}"usr/bin/mktexlsr
}

View File

@@ -1,81 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="Convertor written in Perl that converts LATEX documents to HTML"
HOMEPAGE="http://www.latex2html.org/"
SRC_URI="http://mirrors.ctan.org/support/latex2html/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-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}"-{destdir,tests}.patch
"${FILESDIR}/${P}"-dotinc.patch
"${FILESDIR}/${P}"-dotinc-2.patch
"${FILESDIR}/${P}"-brace.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="${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
}