view src/pstoedit-2-gs.patch @ 3608:7bccd055043e

pstoedit: update to pstoedit 3.62, quote ghostscript path. * src/pstoedit.mk: update to version 3.62. * src/pstoedit-2-gs.patch: quote DEFAULTGS variable.
author John Donoghue
date Mon, 09 Jun 2014 08:18:39 -0400
parents 38ee52ac978e
children ea3cab4018c5
line wrap: on
line source

diff -ur pstoedit-3.61-orig/configure.ac pstoedit-3.61/configure.ac
--- pstoedit-3.61-orig/configure.ac	2012-08-28 06:46:41 -0400
+++ pstoedit-3.61/configure.ac	2013-07-05 23:29:38 -0400
@@ -53,12 +53,12 @@
 dnl Check Ghostscript
 GS=""
 AC_PATH_PROG(GS,gs)
-if test -z "${GS}"; then
-   AC_MSG_ERROR([** Cannot find ghostscript. If it is already installed, Check PATH.])
-else
-dnl Strip off // to / that causes troubles.
-   GS=`echo $GS | sed -e 's/\/\//\//g'`	
-fi
+dnl if test -z "${GS}"; then
+dnl    AC_MSG_ERROR([** Cannot find ghostscript. If it is already installed, Check PATH.])
+dnl else
+dnl dnl Strip off // to / that causes troubles.
+dnl    GS=`echo $GS | sed -e 's/\/\//\//g'`
+dnl fi
 
 PKG_PROG_PKG_CONFIG
 
diff -ur pstoedit-3.62.orig/src/Makefile.am pstoedit-3.62/src/Makefile.am
--- pstoedit-3.62.orig/src/Makefile.am	2014-06-03 12:53:10 -0400
+++ pstoedit-3.62/src/Makefile.am	2014-06-03 12:54:14 -0400
@@ -31,7 +31,7 @@
 	${LIBMAGICK_CFLAGS}			\
 	${LIBEMF_CFLAGS}			\
 	${LIBPNG_CFLAGS}			\
-        -DDEFAULTGS=$(GS)			\
+        -DDEFAULTGS="\"$(GS)\""			\
 	-DPSTOEDITDATADIR="\"$(pkgdatadir)\""	\
 	-DPSTOEDITLIBDIR="\"$(pkglibdir)\""	\
         ${SPECIAL_CXXFLAGS}