libspectre: update to 0.2.8
This commit is contained in:
parent
cc93d9e693
commit
3b0d238d5b
2 changed files with 4 additions and 44 deletions
|
@ -1,40 +0,0 @@
|
|||
Newer ghostscript has new enumeration names for the error codes.
|
||||
|
||||
--- libspectre/spectre-gs.c 2010-04-18 18:01:05.000000000 +0200
|
||||
+++ libspectre/spectre-gs.c 2015-10-15 04:26:50.142190302 +0200
|
||||
@@ -43,12 +43,12 @@
|
||||
|
||||
if (code <= -100) {
|
||||
switch (code) {
|
||||
- case e_Fatal:
|
||||
+ case gs_error_Fatal:
|
||||
fprintf (stderr, "fatal internal error %d", code);
|
||||
return TRUE;
|
||||
break;
|
||||
|
||||
- case e_ExecStackUnderflow:
|
||||
+ case gs_error_execstackoverflow:
|
||||
fprintf (stderr, "stack overflow %d", code);
|
||||
return TRUE;
|
||||
break;
|
||||
@@ -109,9 +109,9 @@
|
||||
set = _spectre_strdup_printf ("%d %d translate\n", -x, -y);
|
||||
error = gsapi_run_string_continue (ghostscript_instance, set, strlen (set),
|
||||
0, &exit_code);
|
||||
- error = error == e_NeedInput ? 0 : error;
|
||||
+ error = error == gs_error_NeedInput ? 0 : error;
|
||||
free (set);
|
||||
- if (error != e_NeedInput && critic_error_code (error)) {
|
||||
+ if (error != gs_error_NeedInput && critic_error_code (error)) {
|
||||
fclose (fd);
|
||||
return FALSE;
|
||||
}
|
||||
@@ -126,7 +126,7 @@
|
||||
read = fread (buf, sizeof (char), to_read, fd);
|
||||
error = gsapi_run_string_continue (ghostscript_instance,
|
||||
buf, read, 0, &exit_code);
|
||||
- error = error == e_NeedInput ? 0 : error;
|
||||
+ error = error == gs_error_NeedInput ? 0 : error;
|
||||
left -= read;
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'libspectre'
|
||||
pkgname=libspectre
|
||||
version=0.2.7
|
||||
revision=4
|
||||
version=0.2.8
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static"
|
||||
makedepends="ghostscript-devel"
|
||||
|
@ -10,7 +10,7 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|||
license="GPL-2"
|
||||
homepage="http://libspectre.freedesktop.org/wiki/"
|
||||
distfiles="http://libspectre.freedesktop.org/releases/${pkgname}-${version}.tar.gz"
|
||||
checksum=e81b822a106beed14cf0fec70f1b890c690c2ffa150fa2eee41dc26518a6c3ec
|
||||
checksum=65256af389823bbc4ee4d25bfd1cc19023ffc29ae9f9677f2d200fa6e98bc7a8
|
||||
|
||||
libspectre-devel_package() {
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
|
@ -18,6 +18,6 @@ libspectre-devel_package() {
|
|||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/lib/*.so
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue