Date: Sunday, April 10, 2016 @ 11:47:32
  Author: arojas
Revision: 264469

archrelease: copy trunk to testing-any

Added:
  latex2html/repos/testing-any/
  latex2html/repos/testing-any/PKGBUILD
    (from rev 264468, latex2html/trunk/PKGBUILD)
  latex2html/repos/testing-any/install-destdir.patch
    (from rev 264468, latex2html/trunk/install-destdir.patch)
  latex2html/repos/testing-any/latex2html.install
    (from rev 264468, latex2html/trunk/latex2html.install)

-----------------------+
 PKGBUILD              |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 install-destdir.patch |   20 ++++++++++++++++++++
 latex2html.install    |   15 +++++++++++++++
 3 files changed, 81 insertions(+)

Copied: latex2html/repos/testing-any/PKGBUILD (from rev 264468, 
latex2html/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD                                (rev 0)
+++ testing-any/PKGBUILD        2016-04-10 09:47:32 UTC (rev 264469)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Jochem Kossen <j.kos...@home.nl>
+# Contributor: Jason Chu <jason.archlinux.org>
+
+pkgname=latex2html
+pkgver=2015
+pkgrel=1
+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')
+install=$pkgname.install
+license=('GPL2')
+source=(http://mirrors.ctan.org/support/${pkgname}/$pkgname-$pkgver.tar.gz
+ install-destdir.patch)
+sha1sums=('13c893850dd1136f2e276068131f0a264c1cae1a'
+          '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-wrapper \
+           --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/testing-any/install-destdir.patch (from rev 264468, 
latex2html/trunk/install-destdir.patch)
===================================================================
--- testing-any/install-destdir.patch                           (rev 0)
+++ testing-any/install-destdir.patch   2016-04-10 09:47:32 UTC (rev 264469)
@@ -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 {

Copied: latex2html/repos/testing-any/latex2html.install (from rev 264468, 
latex2html/trunk/latex2html.install)
===================================================================
--- testing-any/latex2html.install                              (rev 0)
+++ testing-any/latex2html.install      2016-04-10 09:47:32 UTC (rev 264469)
@@ -0,0 +1,15 @@
+post_install() {
+       echo    ">>> texlive: updating the filename database..."
+       texconfig-sys rehash
+}
+
+post_upgrade() {
+       echo    ">>> texlive: updating the filename database..."
+       texconfig-sys rehash
+}
+
+post_remove() {
+       echo    ">>> texlive: updating the filename database..."
+       texconfig-sys rehash
+}
+

Reply via email to