[arch-commits] Commit in latex2html/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Sat Nov 10 06:40:44 UTC 2018
Date: Saturday, November 10, 2018 @ 06:40:44
Author: felixonmars
Revision: 338931
archrelease: copy trunk to staging-any
Added:
latex2html/repos/staging-any/
latex2html/repos/staging-any/PKGBUILD
(from rev 338930, latex2html/trunk/PKGBUILD)
latex2html/repos/staging-any/install-destdir.patch
(from rev 338930, latex2html/trunk/install-destdir.patch)
-----------------------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
install-destdir.patch | 20 ++++++++++++++++++++
2 files changed, 63 insertions(+)
Copied: latex2html/repos/staging-any/PKGBUILD (from rev 338930, latex2html/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2018-11-10 06:40:44 UTC (rev 338931)
@@ -0,0 +1,43 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Jochem Kossen <j.kossen at home.nl>
+# Contributor: Jason Chu <jason.archlinux.org>
+
+pkgname=latex2html
+pkgver=2017.2
+pkgrel=3
+pkgdesc="a convertor written in Perl that converts LaTeX documents to HTML."
+arch=('any')
+url="http://www.ctan.org/pkg/latex2html/"
+depends=('perl' 'ghostscript' 'texlive-core' 'libpng' 'giflib' 'netpbm')
+license=('GPL2')
+source=(http://mirrors.ctan.org/support/${pkgname}/$pkgname-${pkgver//./-}.tar.gz
+ install-destdir.patch)
+sha1sums=('ed00007b1dc6d92fe4f3e4f60ebb7746408ef408'
+ '7b654c41779b8387010b69abe4e5aa51d583c278')
+
+prepare() {
+ cd $srcdir/$pkgname-$pkgver
+ patch -Np0 -i ${srcdir}/install-destdir.patch
+}
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --shlibdir=/usr/lib/$pkgname \
+ --with-texpath=/usr/share/texmf/tex/latex/html \
+ --enable-gif \
+ --enable-png
+
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=${pkgdir} install
+
+ # set correct permission on executables
+ chmod 755 $pkgdir/usr/bin/{pstoimg,texexpand,latex2html}
+
+ # avoid conflict with TeXLive
+ rm -f ${pkgdir}/usr/share/texmf/tex/latex/html/url.sty
+}
Copied: latex2html/repos/staging-any/install-destdir.patch (from rev 338930, latex2html/trunk/install-destdir.patch)
===================================================================
--- staging-any/install-destdir.patch (rev 0)
+++ staging-any/install-destdir.patch 2018-11-10 06:40:44 UTC (rev 338931)
@@ -0,0 +1,20 @@
+--- config/install.pl.old 2011-04-25 09:32:26.052179167 -0700
++++ config/install.pl 2011-04-25 09:33:28.262180892 -0700
+@@ -372,14 +372,15 @@
+
+ if($cfg{TEXPATH}) {
+ print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n";
+- unless(mkpath($cfg{TEXPATH})) {
++ my $dest = $cfg{TEXPATH};
++ $dest = $ENV{'DESTDIR'}.$dest if($ENV{'DESTDIR'});
++ unless(mkpath($dest)) {
+ #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
+ #$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
+ #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {
+ print STDERR "\nError: Cannot install LaTeX2HTML style files in $cfg{TEXPATH}\n";
+ } else {
+ my $dir = 'texinputs';
+- my $dest = $cfg{TEXPATH};
+ unless(opendir(DIR,$dir)) {
+ print STDERR qq{Error: Could not read directory "$dir": $!\n};
+ } else {
More information about the arch-commits
mailing list