summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2012-07-25 14:14:24 +0000
committerChristoph Junghans <ottxor@gentoo.org>2012-07-25 14:14:24 +0000
commit55af54ff02b875cc3cecae683767e682f3f5d6bb (patch)
tree73822d1a324a8dd3e6f5d11b7bc442d003beacff /dev-tex
parentadded prefix support (bug #427840) (diff)
downloadgentoo-2-55af54ff02b875cc3cecae683767e682f3f5d6bb.tar.gz
gentoo-2-55af54ff02b875cc3cecae683767e682f3f5d6bb.tar.bz2
gentoo-2-55af54ff02b875cc3cecae683767e682f3f5d6bb.zip
added prefix support (bug #427976)
(Portage version: 2.2.0_alpha120/cvs/Linux i686)
Diffstat (limited to 'dev-tex')
-rw-r--r--dev-tex/latex2html/ChangeLog7
-rw-r--r--dev-tex/latex2html/latex2html-2008-r1.ebuild30
2 files changed, 21 insertions, 16 deletions
diff --git a/dev-tex/latex2html/ChangeLog b/dev-tex/latex2html/ChangeLog
index 4645c0a62b78..2503e46c9184 100644
--- a/dev-tex/latex2html/ChangeLog
+++ b/dev-tex/latex2html/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-tex/latex2html
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v 1.53 2011/02/25 13:56:46 dilfridge Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v 1.54 2012/07/25 14:14:24 ottxor Exp $
+
+ 25 Jul 2012; Christoph Junghans <ottxor@gentoo.org> latex2html-2008-r1.ebuild:
+ added prefix support (bug #427976)
*latex2html-2008-r1 (25 Feb 2011)
diff --git a/dev-tex/latex2html/latex2html-2008-r1.ebuild b/dev-tex/latex2html/latex2html-2008-r1.ebuild
index 3098d8265833..cd50966370d6 100644
--- a/dev-tex/latex2html/latex2html-2008-r1.ebuild
+++ b/dev-tex/latex2html/latex2html-2008-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/latex2html-2008-r1.ebuild,v 1.1 2011/02/25 13:56:46 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/latex2html-2008-r1.ebuild,v 1.2 2012/07/25 14:14:24 ottxor Exp $
EAPI=4
@@ -13,7 +13,7 @@ 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"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="gif png"
DEPEND="app-text/ghostscript-gpl
@@ -33,6 +33,8 @@ 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() {
@@ -40,15 +42,15 @@ src_configure() {
use gif || use png || myconf="${myconf} --disable-images"
- econf --libdir=/usr/$(get_libdir)/latex2html \
- --shlibdir=/usr/$(get_libdir)/latex2html \
+ 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=/usr/share/texmf-site/tex/latex/html \
+ --with-texpath="${EPREFIX}"/usr/share/texmf-site/tex/latex/html \
--without-mktexlsr \
$(use_enable gif) \
$(use_enable png) \
@@ -66,18 +68,18 @@ src_install() {
# 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" "${D}/usr/$(get_libdir)/latex2html/pstoimg.pl"
- sed -i -e "s:${S}::g" "${D}/usr/$(get_libdir)/latex2html/latex2html.pl" || die
- sed -i -e "s:${T}:/tmp:g" "${D}/usr/$(get_libdir)/latex2html/cfgcache.pm" || die
- sed -i -e "s:${T}:/tmp:g" "${D}/usr/$(get_libdir)/latex2html/l2hconf.pm" || die
+ { 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 ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
- "${ROOT}"usr/bin/mktexlsr
+ einfo "Running ${EROOT}usr/bin/mktexlsr to rebuild ls-R database...."
+ "${EROOT}"usr/bin/mktexlsr
}
pkg_postrm() {
- einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
- "${ROOT}"usr/bin/mktexlsr
+ einfo "Running ${EROOT}usr/bin/mktexlsr to rebuild ls-R database...."
+ "${EROOT}"usr/bin/mktexlsr
}