summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Buisse <nattfodd@gentoo.org>2006-05-23 07:40:01 +0000
committerAlexandre Buisse <nattfodd@gentoo.org>2006-05-23 07:40:01 +0000
commiteca579178c158a94ceb7b73b7a8fbd157954b6df (patch)
tree29eacfc596b8b2c179a51c928f4575adc6820ac9 /dev-tex/latex2html
parentNew package. Fixes bug 122118. (diff)
downloadgentoo-2-eca579178c158a94ceb7b73b7a8fbd157954b6df.tar.gz
gentoo-2-eca579178c158a94ceb7b73b7a8fbd157954b6df.tar.bz2
gentoo-2-eca579178c158a94ceb7b73b7a8fbd157954b6df.zip
Fix bug #80468 about perl executable name.
(Portage version: 2.1_pre10-r2)
Diffstat (limited to 'dev-tex/latex2html')
-rw-r--r--dev-tex/latex2html/ChangeLog9
-rw-r--r--dev-tex/latex2html/files/digest-latex2html-2002.2.1_pre200410252
-rw-r--r--dev-tex/latex2html/files/digest-latex2html-2002.2.1_pre20041025-r13
-rw-r--r--dev-tex/latex2html/files/latex2html-perl_name.patch11
-rw-r--r--dev-tex/latex2html/latex2html-2002.2.1_pre20041025-r1.ebuild101
5 files changed, 125 insertions, 1 deletions
diff --git a/dev-tex/latex2html/ChangeLog b/dev-tex/latex2html/ChangeLog
index aa9dfd2d94a4..eb6abdc3d44b 100644
--- a/dev-tex/latex2html/ChangeLog
+++ b/dev-tex/latex2html/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-tex/latex2html
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v 1.27 2006/05/12 18:53:03 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v 1.28 2006/05/23 07:40:01 nattfodd Exp $
+
+*latex2html-2002.2.1_pre20041025-r1 (23 May 2006)
+
+ 23 May 2006; Alexandre Buisse <nattfodd@gentoo.org>
+ +files/latex2html-perl_name.patch,
+ +latex2html-2002.2.1_pre20041025-r1.ebuild:
+ Fix the perl executable name so it can survive perl bumps. Fixes bug #80468.
12 May 2006; Tobias Scherbaum <dertobi123@gentoo.org>
latex2html-2002.2.1_pre20041025.ebuild:
diff --git a/dev-tex/latex2html/files/digest-latex2html-2002.2.1_pre20041025 b/dev-tex/latex2html/files/digest-latex2html-2002.2.1_pre20041025
index f7fd488ef358..1e5d7aa72c30 100644
--- a/dev-tex/latex2html/files/digest-latex2html-2002.2.1_pre20041025
+++ b/dev-tex/latex2html/files/digest-latex2html-2002.2.1_pre20041025
@@ -1 +1,3 @@
MD5 a79cda0648c8721ab6df5020cd11e220 latex2html-2002-2-1+20041025.tar.gz 1124233
+RMD160 3ee05b1016fe9aad0db45bbbda6bc76e58dc3c25 latex2html-2002-2-1+20041025.tar.gz 1124233
+SHA256 5bb9204992d03562345a4c0371fd0f9e65e0ac0b133a91ddb4a6bdb011d2ecae latex2html-2002-2-1+20041025.tar.gz 1124233
diff --git a/dev-tex/latex2html/files/digest-latex2html-2002.2.1_pre20041025-r1 b/dev-tex/latex2html/files/digest-latex2html-2002.2.1_pre20041025-r1
new file mode 100644
index 000000000000..1e5d7aa72c30
--- /dev/null
+++ b/dev-tex/latex2html/files/digest-latex2html-2002.2.1_pre20041025-r1
@@ -0,0 +1,3 @@
+MD5 a79cda0648c8721ab6df5020cd11e220 latex2html-2002-2-1+20041025.tar.gz 1124233
+RMD160 3ee05b1016fe9aad0db45bbbda6bc76e58dc3c25 latex2html-2002-2-1+20041025.tar.gz 1124233
+SHA256 5bb9204992d03562345a4c0371fd0f9e65e0ac0b133a91ddb4a6bdb011d2ecae latex2html-2002-2-1+20041025.tar.gz 1124233
diff --git a/dev-tex/latex2html/files/latex2html-perl_name.patch b/dev-tex/latex2html/files/latex2html-perl_name.patch
new file mode 100644
index 000000000000..cc56f91437fa
--- /dev/null
+++ b/dev-tex/latex2html/files/latex2html-perl_name.patch
@@ -0,0 +1,11 @@
+--- latex2html-2002-2-1/config/config.pl 2002-11-29 12:49:01.000000000 +0100
++++ latex2html-2002-2-1/config/config.pl.new 2006-05-23 11:29:10.000000000 +0200
+@@ -617,7 +617,7 @@
+
+ # only perl gets an absolute pathname
+ my $abs_path_names = 1;
+-$newcfg{'PERL'} = &find_prog($^X); # take the perl internal executable name
++$newcfg{'PERL'} = &find_prog("perl"); # take the perl internal executable name
+ &checking('perl version');
+ &result($]);
+
diff --git a/dev-tex/latex2html/latex2html-2002.2.1_pre20041025-r1.ebuild b/dev-tex/latex2html/latex2html-2002.2.1_pre20041025-r1.ebuild
new file mode 100644
index 000000000000..e12baa659f96
--- /dev/null
+++ b/dev-tex/latex2html/latex2html-2002.2.1_pre20041025-r1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/latex2html-2002.2.1_pre20041025-r1.ebuild,v 1.1 2006/05/23 07:40:01 nattfodd Exp $
+
+inherit eutils
+
+BASE_PV="${PV/_*/}" # 2002.2.1_pre20041025 -> 2002.2.1
+SNAP_PV="${PV/*_pre/}" # 2002.2.1_pre20041025 -> 20041025
+
+MY_P="${PN}-${BASE_PV//./-}" # latex2html-2002-2-1
+JA_P="l2h-${BASE_PV//./-}+jp2.0" # l2h-2002-2-1+jp2.0
+
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="LATEX2HTML is a convertor written in Perl that converts LATEX documents to HTML."
+# Downloaded from:
+# http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/latex2html-2002-2-1.tar.gz
+SRC_URI="mirror://gentoo/${MY_P}+${SNAP_PV}.tar.gz"
+# linguas_ja? ( http://takeno.iee.niit.ac.jp/~shige/TeX/latex2html/data/${JA_P}.patch.gz )"
+HOMEPAGE="http://www.latex2html.org/"
+# "http://takeno.iee.niit.ac.jp/~shige/TeX/latex2html/ltx2html.html"
+
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
+IUSE="gif png"
+
+DEPEND="virtual/ghostscript
+ virtual/tetex
+ media-libs/netpbm
+ dev-lang/perl
+ gif? ( media-libs/giflib )
+ png? ( media-libs/libpng )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-convert-length.patch
+ epatch ${FILESDIR}/${PN}-perl_name.patch
+}
+
+src_compile() {
+ sed -ie 's%@PERL@%/usr/bin/perl%g' wrapper/unix.pin || die
+
+ local myconf
+
+ use gif || use png || myconf="${myconf} --disable-images"
+
+ econf --libdir=/usr/lib/latex2html \
+ --shlibdir=/usr/lib/latex2html \
+ --enable-pk \
+ --enable-eps \
+ --enable-reverse \
+ --enable-pipes \
+ --enable-paths \
+ --enable-wrapper \
+ $(use_enable gif) \
+ $(use_enable png) \
+ ${myconf} || die "econf failed"
+ make || die
+ make check || die
+}
+
+src_install() {
+ dodir /usr/bin /usr/lib/latex2html /usr/share/latex2html
+ dodir /usr/share/texmf/tex/latex/html
+ cp cfgcache.pm cfgcache.pm.bak
+
+ # mktexlsr is run later to avoid a sandbox violation
+ sed \
+ -e "/BINDIR\|LIBDIR\|SHLIBDIR\|TEXPATH/s#q'/#q'"${D}"#" \
+ -e "/MKTEXLSR/s:q'.*':q'':" \
+ cfgcache.pm.bak > cfgcache.pm
+
+ make install || die
+ insinto /usr/lib/latex2html
+ newins cfgcache.pm.bak cfgcache.pm
+
+ dodoc BUGS Changes FAQ LICENSE 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"
+ einfo ${T}
+ dosed "s:${T}:/tmp:g" /usr/lib/latex2html/pstoimg.pl
+ dosed "s:${S}::g" /usr/lib/latex2html/latex2html.pl
+ dosed "s:${T}:/tmp:g" /usr/lib/latex2html/cfgcache.pm
+ dosed "s:${T}:/tmp:g" /usr/lib/latex2html/l2hconf.pm
+}
+
+pkg_postinst() {
+ einfo "Running mktexlsr to rebuild ls-R database...."
+ mktexlsr
+}
+
+pkg_postrm() {
+ einfo "Running mktexlsr to rebuild ls-R database...."
+ mktexlsr
+}