Date: Sunday, December 21, 2014 @ 01:38:00
  Author: remy
Revision: 227843

upgpkg: asymptote 2.32-1

With temporary fix for ghostscript 9.15

Added:
  asymptote/trunk/fix-ghostscript-9.15.diff
Modified:
  asymptote/trunk/PKGBUILD

---------------------------+
 PKGBUILD                  |   16 ++++++++++++----
 fix-ghostscript-9.15.diff |   31 +++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2014-12-21 00:32:32 UTC (rev 227842)
+++ PKGBUILD    2014-12-21 00:38:00 UTC (rev 227843)
@@ -4,8 +4,8 @@
 # Contributor: bender02 at gmx dot com
 
 pkgname=asymptote
-pkgver=2.24
-pkgrel=2
+pkgver=2.32
+pkgrel=1
 pkgdesc="A vector graphics language (like metapost)"
 arch=('i686' 'x86_64')
 url="http://asymptote.sourceforge.net/";
@@ -18,10 +18,18 @@
 optdepends=('python2:           for the xasy GUI'
             'python2-pillow:    for the xasy GUI'
             'tix:               for the xasy GUI')
-source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.src.tgz)
+source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.src.tgz";
+        "fix-ghostscript-9.15.diff")
 install=texlive.install
-sha1sums=('26dd0f4a36af0bc1d007d89ec7280ca55e9ed368')
+sha1sums=('18a4c22a89014ce18caf958a152b971ea39a77f0'
+          '7060daca4180659a9a13844110f15b89c3c24bf6')
 
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  patch -Np0 -i "${srcdir}/fix-ghostscript-9.15.diff"
+}
+
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
 

Added: fix-ghostscript-9.15.diff
===================================================================
--- fix-ghostscript-9.15.diff                           (rev 0)
+++ fix-ghostscript-9.15.diff   2014-12-21 00:38:00 UTC (rev 227843)
@@ -0,0 +1,31 @@
+Index: runlabel.in
+===================================================================
+--- runlabel.in        (revision 5685)
++++ runlabel.in        (working copy)
+@@ -111,7 +111,7 @@
+ #else
+   const string null="/dev/null";
+ #endif
+-  cmd.push_back("-sDEVICE=epswrite");
++  cmd.push_back("-sDEVICE=eps2write");
+   cmd.push_back("-sOutputFile="+null);
+   cmd.push_back(stripDir(psname));
+   iopipestream gs(cmd,"gs","Ghostscript");
+@@ -309,7 +309,7 @@
+       cmd.push_back("-dNOPAUSE");
+       cmd.push_back("-dBATCH");
+       if(safe) cmd.push_back("-dSAFER");
+-      cmd.push_back("-sDEVICE=epswrite");
++      cmd.push_back("-sDEVICE=eps2write");
+       cmd.push_back("-sOutputFile=-");
+       cmd.push_back(pdfname);
+       iopipestream gs(cmd,"gs","Ghostscript");
+@@ -398,7 +398,7 @@
+   cmd2.push_back("-dBATCH");
+   cmd2.push_back("-P");
+   if(safe) cmd2.push_back("-dSAFER");
+-  cmd2.push_back("-sDEVICE=epswrite");
++  cmd2.push_back("-sDEVICE=eps2write");
+   cmd2.push_back("-sOutputFile=-");
+   cmd2.push_back("-");
+   iopipestream gs(cmd2,"gs","Ghostscript");

Reply via email to