diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-10-04 19:57:22 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-10-04 19:57:22 +0800 |
commit | 67f6d8fb1161a619b4fa80778f6b087d0f734eda (patch) | |
tree | 80b8a09e314faae290909d27fd862035f715f2e7 /devel/gobject-introspection | |
parent | bb899712469dc3611c09d1f8b4cdd0f6105ae6af (diff) | |
download | marcuscom-ports-67f6d8fb1161a619b4fa80778f6b087d0f734eda.tar marcuscom-ports-67f6d8fb1161a619b4fa80778f6b087d0f734eda.tar.gz marcuscom-ports-67f6d8fb1161a619b4fa80778f6b087d0f734eda.tar.bz2 marcuscom-ports-67f6d8fb1161a619b4fa80778f6b087d0f734eda.tar.lz marcuscom-ports-67f6d8fb1161a619b4fa80778f6b087d0f734eda.tar.xz marcuscom-ports-67f6d8fb1161a619b4fa80778f6b087d0f734eda.tar.zst marcuscom-ports-67f6d8fb1161a619b4fa80778f6b087d0f734eda.zip |
Fix generation of GIR files for some ports.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16333 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/gobject-introspection')
-rw-r--r-- | devel/gobject-introspection/Makefile | 13 | ||||
-rw-r--r-- | devel/gobject-introspection/files/patch-giscanner_sourcescanner.py | 11 |
2 files changed, 17 insertions, 7 deletions
diff --git a/devel/gobject-introspection/Makefile b/devel/gobject-introspection/Makefile index 92e238823..3c44b9ee1 100644 --- a/devel/gobject-introspection/Makefile +++ b/devel/gobject-introspection/Makefile @@ -3,11 +3,12 @@ # Whom: Alexander Logvinov <avl@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/devel/gobject-introspection/Makefile,v 1.41 2011/09/15 17:30:17 kwm Exp $ +# $MCom: ports/devel/gobject-introspection/Makefile,v 1.42 2011/09/21 12:12:23 kwm Exp $ # PORTNAME= gobject-introspection PORTVERSION= 1.30.0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= GNOME DIST_SUBDIR= gnome3 @@ -28,8 +29,8 @@ USE_GETTEXT= yes USE_AUTOTOOLS= libtool USE_LDCONFIG= yes MAKE_JOBS_UNSAFE=yes -CPPFLAGS= -I${LOCALBASE}/include -CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS= --disable-tests # Force it to put the .cache in ${WRKSRC} instead of ~/.cache. ports/143260 @@ -37,10 +38,8 @@ MAKE_ENV= HOME=${WRKDIR} MAN1= g-ir-compiler.1 g-ir-generate.1 g-ir-scanner.1 -.include <bsd.port.pre.mk> - post-patch: - @${REINPLACE_CMD} -e 's|'cc'|'${CC:Q}'|g' \ + @${REINPLACE_CMD} -e 's|%%CC%%|${CC:Q}|g' \ ${WRKSRC}/giscanner/sourcescanner.py -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/devel/gobject-introspection/files/patch-giscanner_sourcescanner.py b/devel/gobject-introspection/files/patch-giscanner_sourcescanner.py new file mode 100644 index 000000000..8c80102b5 --- /dev/null +++ b/devel/gobject-introspection/files/patch-giscanner_sourcescanner.py @@ -0,0 +1,11 @@ +--- giscanner/sourcescanner.py.orig 2011-09-03 20:42:14.000000000 +0200 ++++ giscanner/sourcescanner.py 2011-10-04 13:48:48.000000000 +0200 +@@ -274,7 +274,7 @@ + + defines = ['__GI_SCANNER__'] + undefs = [] +- cpp_args = [os.environ.get('CC', 'cc'), '-E', '-C', '-I.', '-'] ++ cpp_args = ['%%CC%%', '-E', '-C', '-I.', '-'] + + cpp_args += self._cpp_options + proc = subprocess.Popen(cpp_args, |