freebsd-ports/devel/gobject-introspection/files/patch-giscanner_sourcescanner.py
Koop Mast a5f590e51d The FreeBSD GNOME team presents a Glib and Gtk+ 3 update.
This update updates Glib20 to 2.36 and Gtk+ 3.8

* The gio-fam-backend port that used gamin for the GFileMonitor API is gone.
  It is replaced by a GIO kqueue implementation developed as part of a NetBSD
  GSoC 2011 project by Dimitry Matveev.
* Fix a bug in the glib20 Makefile so it includes -lintl in the glib-2.0
  pkgconfig file [1]. This broke static linking and newer binutils.
* Add introspection USE_GNOME component which sets GI_SCANNER_DISABLE_CACHE to
  prevent creation of /  root/.cache dir. Defaults to build & run depend,
  but :build and :run switches available.
* New x11-toolkits/pangox-compat port and companion USE_GNOME component for
  pangox support which was removed from the pango port. Add it to ports still
  using pangox API.

Exp-run by:	bapt@
PR:		ports/178958 [1]
Submitted by:	emaste@ [1]
2013-07-31 11:57:45 +00:00

16 lines
641 B
Python

--- giscanner/sourcescanner.py.orig 2013-03-06 23:53:19.000000000 +0100
+++ giscanner/sourcescanner.py 2013-06-28 22:01:04.000000000 +0200
@@ -281,8 +281,11 @@
# some help from gcc from MinGW/Cygwin or so.
# Note that the generated dumper program is
# still built and linked by Visual C++.
- if 'cl' in cpp_exec:
- cpp_args = 'gcc'.split()
+ if 'clang' not in cpp_exec:
+ if 'cl' in cpp_exec:
+ cpp_args = 'gcc'.split()
+ else:
+ cpp_args = cpp_exec
else:
cpp_args = cpp_exec
cpp_args += ['-E', '-C', '-I.', '-']