[weasel-commit] Source: dvipdfm=0.13.2d-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Tue, 01 Jun 2010 08:35:44 -0400

================================
dvipdfm:source=0.13.2d-1
cvc rdiff dvipdfm -1 /weasel.rpath.org@wgl:3-devel/0.13.2d-1
================================
0.13.2d-1 Filip Brcic (brcha@xxxxxxxxxxxx) Tue Jun  1 08:34:58 2010
    dvipdfm 0.13.2d

dvipdfm.recipe: new
--- /dev/null
+++ dvipdfm.recipe
@@ -0,0 +52 @@
+#
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Dvipdfm(AutoPackageRecipe):
+    name = 'dvipdfm'
+    version = '0.13.2d'
+
+    buildRequires = [
+        'texlive-latexrecommended:runtime', 'libpng:devel',
+        'texlive-core:devel', 'zlib:devel',
+        ]
+
+    shortDesc  = 'DVI to PDF translator'
+    url        = 'http://gaspra.kettering.edu/dvipdfm/'
+    licenses   = [ 'GPL-2' ]
+    categories = [ 'Applications/Text' ]
+
+    def unpack(r):
+        r.addArchive('http://gaspra.kettering.edu/dvipdfm/')
+        r.addPatch('dvipdfm-0.13.2d-libpng14.patch')
+
+    def makeinstall(r):
+        r.MakePathsInstall()
+
+        # Install .map and .enc files to correct locations
+        for i in [ 'cmr.map', 'psbase14.map', 'lw35urw.map',
+                   'lw35urwa.map', 't1fonts.map',
+                   ]:
+            r.Move('%(datadir)s/texmf/dvipdfm/config/' + i,
+                   '%(datadir)s/texmf/fonts/map/dvipdfm/base/')
+        r.Move('%(datadir)s/texmf/dvipdfm/base',
+               '%(datadir)s/texmf/fonts/enc/dvipdfm/base')
+
+        r.Doc('AUTHORS', 'ChangeLog', 'Credits', 'NEWS', 'OBTAINING',
+              'README*', 'TODO')
+        r.Doc('doc/*', dir='doc')
+        r.Doc('latex-support/*', dir='latex-support')
+
+        r.Install('latex-support/dvipdfm.def',
+                  '%(datadir)s/texmf/tex/latex/dvipdfm/')
+
+        r.Requires('texlive-latexrecommended:runtime', '%(bindir)s/')
+
+        postScript = """#!/bin/sh
+
+[ -x %(bindir)s/texmf-update ] && %(bindir)s/texmf-update
+""" % r.macros
+        r.ScriptPostInstall(contents=postScript)
+        r.ScriptPostUpdate(contents=postScript)
+        r.ScriptPostErase(contents=postScript)

dvipdfm-0.13.2d.tar.gz: new
dvipdfm-0.13.2d-libpng14.patch: new
--- /dev/null
+++ dvipdfm-0.13.2d-libpng14.patch
@@ -0,0 +22 @@
+--- pngimage.c
++++ pngimage.c
+@@ -41,7 +41,7 @@
+   rewind (png_file);
+   if (fread (sigbytes, 1, sizeof(sigbytes), png_file) !=
+       sizeof(sigbytes) ||
+-      (!png_check_sig (sigbytes, sizeof(sigbytes))))
++      (png_sig_cmp (sigbytes, 0, sizeof(sigbytes))))
+     return 0;
+   else
+     return 1;
+--- thumbnail.c
++++ thumbnail.c
+@@ -78,7 +78,7 @@
+   }
+   if (fread (sigbytes, 1, sizeof(sigbytes), thumb_file) !=
+       sizeof(sigbytes) ||
+-      (!png_check_sig (sigbytes, sizeof(sigbytes)))) {
++      (png_sig_cmp (sigbytes, 0, sizeof(sigbytes)))) {
+     fprintf (stderr, "\nThumbnail not a png file! Skipping\n");
+     return NULL;
+   }


Committed by: brcha

Other related posts: