pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/db2latex Use ifpdf.sty instead of defining one.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/700522510a2e
branches:  trunk
changeset: 396604:700522510a2e
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Jul 28 16:27:11 2009 +0000

description:
Use ifpdf.sty instead of defining one.

The local definition of ifpdf caused a conflict with TeX Live.

diffstat:

 textproc/db2latex/Makefile         |   4 +-
 textproc/db2latex/distinfo         |   3 +-
 textproc/db2latex/patches/patch-ac |  42 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 3 deletions(-)

diffs (73 lines):

diff -r 8288808edad9 -r 700522510a2e textproc/db2latex/Makefile
--- a/textproc/db2latex/Makefile        Tue Jul 28 12:56:33 2009 +0000
+++ b/textproc/db2latex/Makefile        Tue Jul 28 16:27:11 2009 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2009/07/13 11:32:25 minskim Exp $
+# $NetBSD: Makefile,v 1.17 2009/07/28 16:27:11 minskim Exp $
 
 DISTNAME=      db2latex-xsl-0.8pre1
 PKGNAME=       ${DISTNAME:S/xsl-//}
-PKGREVISION=   5
+PKGREVISION=   6
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=db2latex/}
 
diff -r 8288808edad9 -r 700522510a2e textproc/db2latex/distinfo
--- a/textproc/db2latex/distinfo        Tue Jul 28 12:56:33 2009 +0000
+++ b/textproc/db2latex/distinfo        Tue Jul 28 16:27:11 2009 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2007/06/12 19:13:38 minskim Exp $
+$NetBSD: distinfo,v 1.6 2009/07/28 16:27:12 minskim Exp $
 
 SHA1 (db2latex-xsl-0.8pre1.tar.gz) = a82efeac8881edaacb323777b01befbaa4d067b8
 RMD160 (db2latex-xsl-0.8pre1.tar.gz) = 7f610cb176576ae5507b4bf2c53c4e2380ec021b
 Size (db2latex-xsl-0.8pre1.tar.gz) = 696369 bytes
 SHA1 (patch-aa) = 4dbfcc93d92dd527345f9e5e353d1edb26d1f1bd
 SHA1 (patch-ab) = 3bed7d971fdf5fd887695820be89fb3ab80e47ad
+SHA1 (patch-ac) = f4727cb41e82a51d83c31e89f9a801925e7159da
diff -r 8288808edad9 -r 700522510a2e textproc/db2latex/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/db2latex/patches/patch-ac        Tue Jul 28 16:27:11 2009 +0000
@@ -0,0 +1,42 @@
+$NetBSD: patch-ac,v 1.1 2009/07/28 16:27:12 minskim Exp $
+
+--- xsl/preamble.mod.xsl.orig  2004-01-31 04:26:12.000000000 -0800
++++ xsl/preamble.mod.xsl
+@@ -875,17 +875,7 @@
+       <doc:param name="latex.pdf.preamble" xmlns="">
+               <doc:description>
+                       <screen>
+-                              \usepackage{ifthen}
+-                              % --------------------------------------------
+-                              % Check for PDFLaTeX/LaTeX 
+-                              % --------------------------------------------
+-                              \newif\ifpdf
+-                              \ifx\pdfoutput\undefined
+-                              \pdffalse % we are not running PDFLaTeX
+-                              \else
+-                              \pdfoutput=1 % we are running PDFLaTeX
+-                              \pdftrue
+-                              \fi
++                              \usepackage{ifpdf}
+                               % --------------------------------------------
+                               % Load graphicx package with pdf if needed 
+                               % --------------------------------------------
+@@ -899,17 +889,7 @@
+               </doc:description>
+       </doc:param>
+       <xsl:param name="latex.pdf.preamble">
+-              <xsl:text>\usepackage{ifthen}&#10;</xsl:text>
+-              <xsl:text>% --------------------------------------------&#10;</xsl:text>
+-              <xsl:text>% Check for PDFLaTeX/LaTeX &#10;</xsl:text>
+-              <xsl:text>% --------------------------------------------&#10;</xsl:text>
+-              <xsl:text>\newif\ifpdf&#10;</xsl:text>
+-              <xsl:text>\ifx\pdfoutput\undefined&#10;</xsl:text>
+-              <xsl:text>\pdffalse % we are not running PDFLaTeX&#10;</xsl:text>
+-              <xsl:text>\else&#10;</xsl:text>
+-              <xsl:text>\pdfoutput=1 % we are running PDFLaTeX&#10;</xsl:text>
+-              <xsl:text>\pdftrue&#10;</xsl:text>
+-              <xsl:text>\fi&#10;</xsl:text>
++              <xsl:text>\usepackage{ifpdf}&#10;</xsl:text>
+               <xsl:text>% --------------------------------------------&#10;</xsl:text>
+               <xsl:text>% Load graphicx package with pdf if needed &#10;</xsl:text>
+               <xsl:text>% --------------------------------------------&#10;</xsl:text>



Home | Main Index | Thread Index | Old Index