[62431] trunk/dports/graphics/inkscape

sharky at macports.org sharky at macports.org
Thu Jan 7 10:40:23 PST 2010


Revision: 62431
          http://trac.macports.org/changeset/62431
Author:   sharky at macports.org
Date:     2010-01-07 10:40:22 -0800 (Thu, 07 Jan 2010)
Log Message:
-----------
inkscape: update to version 0.47 (#22713)

Modified Paths:
--------------
    trunk/dports/graphics/inkscape/Portfile
    trunk/dports/graphics/inkscape/files/patch-configure.diff

Removed Paths:
-------------
    trunk/dports/graphics/inkscape/files/patch-src-Makefile.in.diff
    trunk/dports/graphics/inkscape/files/patch-src-extension-internal-pdfinput-pdf-parser.cpp.diff
    trunk/dports/graphics/inkscape/files/patch-src-widgets-sp-xmlview-attr-list.h.diff

Modified: trunk/dports/graphics/inkscape/Portfile
===================================================================
--- trunk/dports/graphics/inkscape/Portfile	2010-01-07 18:33:31 UTC (rev 62430)
+++ trunk/dports/graphics/inkscape/Portfile	2010-01-07 18:40:22 UTC (rev 62431)
@@ -5,8 +5,8 @@
 
 name            inkscape
 conflicts       inkscape-devel
-version         0.46
-revision        9
+version         0.47
+revision        0
 maintainers     devans
 categories      graphics gnome
 platforms       darwin
@@ -26,11 +26,12 @@
 
 use_bzip2       yes
 master_sites    sourceforge
-checksums       md5 59997096c3640b2601c2b4afba8a3d75 \
-                sha1 ca68fc9bf539d7bcfc31f36d24f884255b2154e7
+checksums       md5 7b497c8f673e40b05295a29f6e2111f4 \
+                sha1 7c75352f3882ebf4fcaebc22413bcb79bf3b7895
 
 depends_lib     port:libgnomeprintui \
                 port:boehmgc \
+                port:gsl \
                 port:gtkmm \
                 port:gnome-vfs \
                 port:libxslt \
@@ -46,10 +47,7 @@
                 port:ImageMagick \
                 port:libwpg
 
-patchfiles      patch-configure.diff \
-                patch-src-Makefile.in.diff \
-                patch-src-widgets-sp-xmlview-attr-list.h.diff \
-                patch-src-extension-internal-pdfinput-pdf-parser.cpp.diff
+patchfiles      patch-configure.diff
 
 configure.args  \
         --mandir=${prefix}/share/man \

Modified: trunk/dports/graphics/inkscape/files/patch-configure.diff
===================================================================
--- trunk/dports/graphics/inkscape/files/patch-configure.diff	2010-01-07 18:33:31 UTC (rev 62430)
+++ trunk/dports/graphics/inkscape/files/patch-configure.diff	2010-01-07 18:40:22 UTC (rev 62431)
@@ -1,35 +1,6 @@
---- configure.orig	2008-05-28 08:01:28.000000000 -0700
-+++ configure	2008-05-28 08:04:09.000000000 -0700
-@@ -802,7 +802,7 @@
- LIBWPG_LIBS
- WITH_LIBWPG_TRUE
- WITH_LIBWPG_FALSE
--MAGICKPP_CONFIG
-+IMAGEMAGICK_CFLAGS
- IMAGEMAGICK_LIBS
- USE_IMAGE_MAGICK_TRUE
- USE_IMAGE_MAGICK_FALSE
-@@ -857,6 +857,8 @@
- INKBOARD_LIBS
- LIBWPG_CFLAGS
- LIBWPG_LIBS
-+IMAGEMAGICK_CFLAGS
-+IMAGEMAGICK_LIBS
- INKSCAPE_CFLAGS
- INKSCAPE_LIBS
- CAIRO_PDF_CFLAGS
-@@ -1509,6 +1511,10 @@
-   LIBWPG_CFLAGS
-               C compiler flags for LIBWPG, overriding pkg-config
-   LIBWPG_LIBS linker flags for LIBWPG, overriding pkg-config
-+  IMAGEMAGICK_CFLAGS
-+              C compiler flags for IMAGEMAGICK, overriding pkg-config
-+  IMAGEMAGICK_LIBS
-+              linker flags for IMAGEMAGICK, overriding pkg-config
-   INKSCAPE_CFLAGS
-               C compiler flags for INKSCAPE, overriding pkg-config
-   INKSCAPE_LIBS
-@@ -12715,11 +12721,11 @@
+--- configure.orig	2009-11-16 21:46:34.000000000 +0100
++++ configure	2009-12-22 18:29:41.000000000 +0100
+@@ -9555,11 +9555,11 @@
  
  
  if test "x$with_python" = "xyes"; then
@@ -43,328 +14,3 @@
          if test "$?" -gt "0"; then
              with_python="no"
          else
-@@ -13631,259 +13637,79 @@
- fi
- 
- 
-+pkg_failed=no
-+{ echo "$as_me:$LINENO: checking for IMAGEMAGICK" >&5
-+echo $ECHO_N "checking for IMAGEMAGICK... " >&6; }
- 
--
--
--
--{ echo "$as_me:$LINENO: checking for InitializeMagick in -lMagick++" >&5
--echo $ECHO_N "checking for InitializeMagick in -lMagick++... $ECHO_C" >&6; }
--if test "${ac_cv_lib_Magickpp_InitializeMagick+set}" = set; then
--  echo $ECHO_N "(cached) $ECHO_C" >&6
--else
--  ac_check_lib_save_LIBS=$LIBS
--LIBS="-lMagick++ -llcms -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lz -lpthread -lm -lpthread $LIBS"
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h.  */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h.  */
--
--/* Override any GCC internal prototype to avoid an error.
--   Use char because int might match the return type of a GCC
--   builtin and then its argument prototype would still apply.  */
--#ifdef __cplusplus
--extern "C"
--#endif
--char InitializeMagick ();
--int
--main ()
--{
--return InitializeMagick ();
--  ;
--  return 0;
--}
--_ACEOF
--rm -f conftest.$ac_objext conftest$ac_exeext
--if { (ac_try="$ac_link"
--case "(($ac_try" in
--  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
--  *) ac_try_echo=$ac_try;;
--esac
--eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
--  (eval "$ac_link") 2>conftest.er1
-+if test -n "$IMAGEMAGICK_CFLAGS"; then
-+    pkg_cv_IMAGEMAGICK_CFLAGS="$IMAGEMAGICK_CFLAGS"
-+ elif test -n "$PKG_CONFIG"; then
-+    if test -n "$PKG_CONFIG" && \
-+    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ImageMagick++\"") >&5
-+  ($PKG_CONFIG --exists --print-errors "ImageMagick++") 2>&5
-   ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } && {
--	 test -z "$ac_cxx_werror_flag" ||
--	 test ! -s conftest.err
--       } && test -s conftest$ac_exeext &&
--       $as_test_x conftest$ac_exeext; then
--  ac_cv_lib_Magickpp_InitializeMagick=yes
-+  (exit $ac_status); }; then
-+  pkg_cv_IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "ImageMagick++" 2>/dev/null`
- else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--	ac_cv_lib_Magickpp_InitializeMagick=no
--fi
--
--rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
--      conftest$ac_exeext conftest.$ac_ext
--LIBS=$ac_check_lib_save_LIBS
-+  pkg_failed=yes
- fi
--{ echo "$as_me:$LINENO: result: $ac_cv_lib_Magickpp_InitializeMagick" >&5
--echo "${ECHO_T}$ac_cv_lib_Magickpp_InitializeMagick" >&6; }
--if test $ac_cv_lib_Magickpp_InitializeMagick = yes; then
--  if test "${ac_cv_header_Magickpp_h+set}" = set; then
--  { echo "$as_me:$LINENO: checking for Magick++.h" >&5
--echo $ECHO_N "checking for Magick++.h... $ECHO_C" >&6; }
--if test "${ac_cv_header_Magickpp_h+set}" = set; then
--  echo $ECHO_N "(cached) $ECHO_C" >&6
-+ else
-+    pkg_failed=untried
- fi
--{ echo "$as_me:$LINENO: result: $ac_cv_header_Magickpp_h" >&5
--echo "${ECHO_T}$ac_cv_header_Magickpp_h" >&6; }
--else
--  # Is the header compilable?
--{ echo "$as_me:$LINENO: checking Magick++.h usability" >&5
--echo $ECHO_N "checking Magick++.h usability... $ECHO_C" >&6; }
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h.  */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h.  */
--$ac_includes_default
--#include <Magick++.h>
--_ACEOF
--rm -f conftest.$ac_objext
--if { (ac_try="$ac_compile"
--case "(($ac_try" in
--  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
--  *) ac_try_echo=$ac_try;;
--esac
--eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
--  (eval "$ac_compile") 2>conftest.er1
-+if test -n "$IMAGEMAGICK_LIBS"; then
-+    pkg_cv_IMAGEMAGICK_LIBS="$IMAGEMAGICK_LIBS"
-+ elif test -n "$PKG_CONFIG"; then
-+    if test -n "$PKG_CONFIG" && \
-+    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ImageMagick++\"") >&5
-+  ($PKG_CONFIG --exists --print-errors "ImageMagick++") 2>&5
-   ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } && {
--	 test -z "$ac_cxx_werror_flag" ||
--	 test ! -s conftest.err
--       } && test -s conftest.$ac_objext; then
--  ac_header_compiler=yes
-+  (exit $ac_status); }; then
-+  pkg_cv_IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "ImageMagick++" 2>/dev/null`
- else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--	ac_header_compiler=no
-+  pkg_failed=yes
- fi
--
--rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
--{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
--echo "${ECHO_T}$ac_header_compiler" >&6; }
--
--# Is the header present?
--{ echo "$as_me:$LINENO: checking Magick++.h presence" >&5
--echo $ECHO_N "checking Magick++.h presence... $ECHO_C" >&6; }
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h.  */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h.  */
--#include <Magick++.h>
--_ACEOF
--if { (ac_try="$ac_cpp conftest.$ac_ext"
--case "(($ac_try" in
--  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
--  *) ac_try_echo=$ac_try;;
--esac
--eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
--  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
--  ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } >/dev/null && {
--	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
--	 test ! -s conftest.err
--       }; then
--  ac_header_preproc=yes
--else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--  ac_header_preproc=no
-+ else
-+    pkg_failed=untried
- fi
- 
--rm -f conftest.err conftest.$ac_ext
--{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
--echo "${ECHO_T}$ac_header_preproc" >&6; }
- 
--# So?  What about this header?
--case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
--  yes:no: )
--    { echo "$as_me:$LINENO: WARNING: Magick++.h: accepted by the compiler, rejected by the preprocessor!" >&5
--echo "$as_me: WARNING: Magick++.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
--    { echo "$as_me:$LINENO: WARNING: Magick++.h: proceeding with the compiler's result" >&5
--echo "$as_me: WARNING: Magick++.h: proceeding with the compiler's result" >&2;}
--    ac_header_preproc=yes
--    ;;
--  no:yes:* )
--    { echo "$as_me:$LINENO: WARNING: Magick++.h: present but cannot be compiled" >&5
--echo "$as_me: WARNING: Magick++.h: present but cannot be compiled" >&2;}
--    { echo "$as_me:$LINENO: WARNING: Magick++.h:     check for missing prerequisite headers?" >&5
--echo "$as_me: WARNING: Magick++.h:     check for missing prerequisite headers?" >&2;}
--    { echo "$as_me:$LINENO: WARNING: Magick++.h: see the Autoconf documentation" >&5
--echo "$as_me: WARNING: Magick++.h: see the Autoconf documentation" >&2;}
--    { echo "$as_me:$LINENO: WARNING: Magick++.h:     section \"Present But Cannot Be Compiled\"" >&5
--echo "$as_me: WARNING: Magick++.h:     section \"Present But Cannot Be Compiled\"" >&2;}
--    { echo "$as_me:$LINENO: WARNING: Magick++.h: proceeding with the preprocessor's result" >&5
--echo "$as_me: WARNING: Magick++.h: proceeding with the preprocessor's result" >&2;}
--    { echo "$as_me:$LINENO: WARNING: Magick++.h: in the future, the compiler will take precedence" >&5
--echo "$as_me: WARNING: Magick++.h: in the future, the compiler will take precedence" >&2;}
- 
--    ;;
--esac
--{ echo "$as_me:$LINENO: checking for Magick++.h" >&5
--echo $ECHO_N "checking for Magick++.h... $ECHO_C" >&6; }
--if test "${ac_cv_header_Magickpp_h+set}" = set; then
--  echo $ECHO_N "(cached) $ECHO_C" >&6
--else
--  ac_cv_header_Magickpp_h=$ac_header_preproc
--fi
--{ echo "$as_me:$LINENO: result: $ac_cv_header_Magickpp_h" >&5
--echo "${ECHO_T}$ac_cv_header_Magickpp_h" >&6; }
-+if test $pkg_failed = yes; then
- 
--fi
--if test $ac_cv_header_Magickpp_h = yes; then
--  magick_ok=yes
-+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
-+        _pkg_short_errors_supported=yes
- else
--  magick_ok=no
-+        _pkg_short_errors_supported=no
- fi
-+        if test $_pkg_short_errors_supported = yes; then
-+                IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ImageMagick++" 2>&1`
-+        else
-+                IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --print-errors "ImageMagick++" 2>&1`
-+        fi
-+        # Put the nasty error message in config.log where it belongs
-+        echo "$IMAGEMAGICK_PKG_ERRORS" >&5
- 
--
-+        { echo "$as_me:$LINENO: result: no" >&5
-+echo "no" >&6; }
-+                magick_ok=no
-+elif test $pkg_failed = untried; then
-+        magick_ok=no
- else
--  magick_ok=no
-+        IMAGEMAGICK_CFLAGS=$pkg_cv_IMAGEMAGICK_CFLAGS
-+        IMAGEMAGICK_LIBS=$pkg_cv_IMAGEMAGICK_LIBS
-+        { echo "$as_me:$LINENO: result: yes" >&5
-+echo "yes" >&6; }
-+        magick_ok=yes
- fi
--
--
- if test "x$magick_ok" = "xyes"; then
--	# Extract the first word of "Magick++-config", so it can be a program name with args.
--set dummy Magick++-config; ac_word=$2
--{ echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
--if test "${ac_cv_prog_MAGICKPP_CONFIG+set}" = set; then
--  echo $ECHO_N "(cached) $ECHO_C" >&6
--else
--  if test -n "$MAGICKPP_CONFIG"; then
--  ac_cv_prog_MAGICKPP_CONFIG="$MAGICKPP_CONFIG" # Let the user override the test.
--else
--as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
--for as_dir in $PATH
--do
--  IFS=$as_save_IFS
--  test -z "$as_dir" && as_dir=.
--  for ac_exec_ext in '' $ac_executable_extensions; do
--  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
--    ac_cv_prog_MAGICKPP_CONFIG="yes"
--    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
--    break 2
--  fi
--done
--done
--IFS=$as_save_IFS
--
--  test -z "$ac_cv_prog_MAGICKPP_CONFIG" && ac_cv_prog_MAGICKPP_CONFIG="no"
--fi
--fi
--MAGICKPP_CONFIG=$ac_cv_prog_MAGICKPP_CONFIG
--if test -n "$MAGICKPP_CONFIG"; then
--  { echo "$as_me:$LINENO: result: $MAGICKPP_CONFIG" >&5
--echo "${ECHO_T}$MAGICKPP_CONFIG" >&6; }
--else
--  { echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6; }
--fi
--
--
--	if test "x$MAGICKPP_CONFIG" = "xyes"; then
--		IMAGEMAGICK_LIBS=`Magick++-config --libs`
--
- 
- cat >>confdefs.h <<\_ACEOF
- #define WITH_IMAGE_MAGICK 1
- _ACEOF
- 
--	fi
- fi
--
-  if test "x$magick_ok" = "xyes"; then
-   USE_IMAGE_MAGICK_TRUE=
-   USE_IMAGE_MAGICK_FALSE='#'
-@@ -13894,6 +13720,9 @@
- 
- 
- 
-+
-+
-+
- if test $cc_vers_major -gt 3; then
-   min_sigc_version=2.0.12
- else
-@@ -19146,7 +18975,7 @@
- LIBWPG_LIBS!$LIBWPG_LIBS$ac_delim
- WITH_LIBWPG_TRUE!$WITH_LIBWPG_TRUE$ac_delim
- WITH_LIBWPG_FALSE!$WITH_LIBWPG_FALSE$ac_delim
--MAGICKPP_CONFIG!$MAGICKPP_CONFIG$ac_delim
-+IMAGEMAGICK_CFLAGS!$IMAGEMAGICK_CFLAGS$ac_delim
- IMAGEMAGICK_LIBS!$IMAGEMAGICK_LIBS$ac_delim
- USE_IMAGE_MAGICK_TRUE!$USE_IMAGE_MAGICK_TRUE$ac_delim
- USE_IMAGE_MAGICK_FALSE!$USE_IMAGE_MAGICK_FALSE$ac_delim

Deleted: trunk/dports/graphics/inkscape/files/patch-src-Makefile.in.diff
===================================================================
--- trunk/dports/graphics/inkscape/files/patch-src-Makefile.in.diff	2010-01-07 18:33:31 UTC (rev 62430)
+++ trunk/dports/graphics/inkscape/files/patch-src-Makefile.in.diff	2010-01-07 18:40:22 UTC (rev 62431)
@@ -1,18 +0,0 @@
---- src/Makefile.in.orig	2008-05-28 07:30:24.000000000 -0700
-+++ src/Makefile.in	2008-05-28 07:32:26.000000000 -0700
-@@ -1330,6 +1330,7 @@
- GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@
- GNOME_VFS_LIBS = @GNOME_VFS_LIBS@
- GREP = @GREP@
-+IMAGEMAGICK_CFLAGS = @IMAGEMAGICK_CFLAGS@
- IMAGEMAGICK_LIBS = @IMAGEMAGICK_LIBS@
- INKBOARD_CFLAGS = @INKBOARD_CFLAGS@
- INKBOARD_LIBS = @INKBOARD_LIBS@
-@@ -1480,6 +1481,7 @@
- 	$(FREETYPE_CFLAGS)	\
- 	$(GNOME_PRINT_CFLAGS)	\
- 	$(GNOME_VFS_CFLAGS)	\
-+	$(IMAGEMAGICK_CFLAGS) \
- 	$(INKBOARD_CFLAGS) \
- 	$(LIBWPG_CFLAGS) \
- 	$(XFT_CFLAGS)	\

Deleted: trunk/dports/graphics/inkscape/files/patch-src-extension-internal-pdfinput-pdf-parser.cpp.diff
===================================================================
--- trunk/dports/graphics/inkscape/files/patch-src-extension-internal-pdfinput-pdf-parser.cpp.diff	2010-01-07 18:33:31 UTC (rev 62430)
+++ trunk/dports/graphics/inkscape/files/patch-src-extension-internal-pdfinput-pdf-parser.cpp.diff	2010-01-07 18:40:22 UTC (rev 62431)
@@ -1,166 +0,0 @@
---- src/extension/internal/pdfinput/pdf-parser.cpp.orig	2008/03/29 09:49:50	18077
-+++ src/extension/internal/pdfinput/pdf-parser.cpp	2008/06/12 18:14:25	18894
-@@ -2191,6 +2191,153 @@
-   }
- }
- 
-+
-+#define POPPLER_NEW_GFXFONT
-+
-+#ifdef POPPLER_NEW_GFXFONT
-+
-+/**
-+ * This is for the change to GfxFont's getNextChar() call.
-+ * Thanks to tsdgeos for the fix.
-+ * Miklos, does this look ok?
-+ */   
-+
-+void PdfParser::doShowText(GooString *s) {
-+  GfxFont *font;
-+  int wMode;
-+  double riseX, riseY;
-+  CharCode code;
-+  Unicode *u = NULL;
-+  double x, y, dx, dy, dx2, dy2, curX, curY, tdx, tdy, lineX, lineY;
-+  double originX, originY, tOriginX, tOriginY;
-+  double oldCTM[6], newCTM[6];
-+  double *mat;
-+  Object charProc;
-+  Dict *resDict;
-+  Parser *oldParser;
-+  char *p;
-+  int len, n, uLen, nChars, nSpaces, i;
-+
-+  font = state->getFont();
-+  wMode = font->getWMode();
-+
-+  builder->beginString(state, s);
-+
-+  // handle a Type 3 char
-+  if (font->getType() == fontType3 && 0) {//out->interpretType3Chars()) {
-+    mat = state->getCTM();
-+    for (i = 0; i < 6; ++i) {
-+      oldCTM[i] = mat[i];
-+    }
-+    mat = state->getTextMat();
-+    newCTM[0] = mat[0] * oldCTM[0] + mat[1] * oldCTM[2];
-+    newCTM[1] = mat[0] * oldCTM[1] + mat[1] * oldCTM[3];
-+    newCTM[2] = mat[2] * oldCTM[0] + mat[3] * oldCTM[2];
-+    newCTM[3] = mat[2] * oldCTM[1] + mat[3] * oldCTM[3];
-+    mat = font->getFontMatrix();
-+    newCTM[0] = mat[0] * newCTM[0] + mat[1] * newCTM[2];
-+    newCTM[1] = mat[0] * newCTM[1] + mat[1] * newCTM[3];
-+    newCTM[2] = mat[2] * newCTM[0] + mat[3] * newCTM[2];
-+    newCTM[3] = mat[2] * newCTM[1] + mat[3] * newCTM[3];
-+    newCTM[0] *= state->getFontSize();
-+    newCTM[1] *= state->getFontSize();
-+    newCTM[2] *= state->getFontSize();
-+    newCTM[3] *= state->getFontSize();
-+    newCTM[0] *= state->getHorizScaling();
-+    newCTM[2] *= state->getHorizScaling();
-+    state->textTransformDelta(0, state->getRise(), &riseX, &riseY);
-+    curX = state->getCurX();
-+    curY = state->getCurY();
-+    lineX = state->getLineX();
-+    lineY = state->getLineY();
-+    oldParser = parser;
-+    p = s->getCString();
-+    len = s->getLength();
-+    while (len > 0) {
-+      n = font->getNextChar(p, len, &code,
-+			    &u, &uLen,
-+			    &dx, &dy, &originX, &originY);
-+      dx = dx * state->getFontSize() + state->getCharSpace();
-+      if (n == 1 && *p == ' ') {
-+	dx += state->getWordSpace();
-+      }
-+      dx *= state->getHorizScaling();
-+      dy *= state->getFontSize();
-+      state->textTransformDelta(dx, dy, &tdx, &tdy);
-+      state->transform(curX + riseX, curY + riseY, &x, &y);
-+      saveState();
-+      state->setCTM(newCTM[0], newCTM[1], newCTM[2], newCTM[3], x, y);
-+      //~ the CTM concat values here are wrong (but never used)
-+      //out->updateCTM(state, 1, 0, 0, 1, 0, 0);
-+      if (0){ /*!out->beginType3Char(state, curX + riseX, curY + riseY, tdx, tdy,
-+			       code, u, uLen)) {*/
-+	((Gfx8BitFont *)font)->getCharProc(code, &charProc);
-+	if ((resDict = ((Gfx8BitFont *)font)->getResources())) {
-+	  pushResources(resDict);
-+	}
-+	if (charProc.isStream()) {
-+	  //parse(&charProc, gFalse); // TODO: parse into SVG font
-+	} else {
-+	  error(getPos(), "Missing or bad Type3 CharProc entry");
-+	}
-+	//out->endType3Char(state);
-+	if (resDict) {
-+	  popResources();
-+	}
-+	charProc.free();
-+      }
-+      restoreState();
-+      // GfxState::restore() does *not* restore the current position,
-+      // so we deal with it here using (curX, curY) and (lineX, lineY)
-+      curX += tdx;
-+      curY += tdy;
-+      state->moveTo(curX, curY);
-+      state->textSetPos(lineX, lineY);
-+      p += n;
-+      len -= n;
-+    }
-+    parser = oldParser;
-+
-+  } else {
-+    state->textTransformDelta(0, state->getRise(), &riseX, &riseY);
-+    p = s->getCString();
-+    len = s->getLength();
-+    while (len > 0) {
-+      n = font->getNextChar(p, len, &code,
-+			    &u, &uLen,
-+			    &dx, &dy, &originX, &originY);
-+      
-+      if (wMode) {
-+	dx *= state->getFontSize();
-+	dy = dy * state->getFontSize() + state->getCharSpace();
-+	if (n == 1 && *p == ' ') {
-+	  dy += state->getWordSpace();
-+	}
-+      } else {
-+	dx = dx * state->getFontSize() + state->getCharSpace();
-+	if (n == 1 && *p == ' ') {
-+	  dx += state->getWordSpace();
-+	}
-+	dx *= state->getHorizScaling();
-+	dy *= state->getFontSize();
-+      }
-+      state->textTransformDelta(dx, dy, &tdx, &tdy);
-+      originX *= state->getFontSize();
-+      originY *= state->getFontSize();
-+      state->textTransformDelta(originX, originY, &tOriginX, &tOriginY);
-+      builder->addChar(state, state->getCurX() + riseX, state->getCurY() + riseY,
-+                       dx, dy, tOriginX, tOriginY, code, n, u, uLen);
-+      state->shift(tdx, tdy);
-+      p += n;
-+      len -= n;
-+    }
-+  }
-+
-+  builder->endString(state);
-+}
-+
-+#else  /* !POPPLER_NEW_GFXFONT */
-+
- void PdfParser::doShowText(GooString *s) {
-   GfxFont *font;
-   int wMode;
-@@ -2325,6 +2470,9 @@
-   builder->endString(state);
- }
- 
-+#endif /* POPPLER_NEW_GFXFONT */
-+
-+
- //------------------------------------------------------------------------
- // XObject operators
- //------------------------------------------------------------------------

Deleted: trunk/dports/graphics/inkscape/files/patch-src-widgets-sp-xmlview-attr-list.h.diff
===================================================================
--- trunk/dports/graphics/inkscape/files/patch-src-widgets-sp-xmlview-attr-list.h.diff	2010-01-07 18:33:31 UTC (rev 62430)
+++ trunk/dports/graphics/inkscape/files/patch-src-widgets-sp-xmlview-attr-list.h.diff	2010-01-07 18:40:22 UTC (rev 62431)
@@ -1,9 +0,0 @@
---- src/widgets/sp-xmlview-attr-list.h	2008-06-24 13:38:07.000000000 +0200
-+++ src/widgets/sp-xmlview-attr-list.h	2008-07-05 13:03:50.000000000 +0200
-@@ -13,6 +13,7 @@
-  */
- 
- #include <stdio.h>
-+#include <gtk/gtkctree.h>
- #include <gtk/gtkclist.h>
- #include "../xml/repr.h"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100107/c2c75d67/attachment-0001.html>


More information about the macports-changes mailing list