summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authormartin <martin@pkgsrc.org>2017-06-25 12:05:59 +0000
committermartin <martin@pkgsrc.org>2017-06-25 12:05:59 +0000
commit27eed5838610ad81d4c8657ae7702c69ab04a078 (patch)
treece0092c2184637b2d679c88f0a708690aec562fc /x11
parentb31569a1f22ad9fc9f44f066764d398123fd3e9c (diff)
downloadpkgsrc-27eed5838610ad81d4c8657ae7702c69ab04a078.tar.gz
Support the introspection pkg option.
Diffstat (limited to 'x11')
-rw-r--r--x11/gtksourceview3/Makefile14
-rw-r--r--x11/gtksourceview3/PLIST6
2 files changed, 16 insertions, 4 deletions
diff --git a/x11/gtksourceview3/Makefile b/x11/gtksourceview3/Makefile
index 43ba966c683..0afc7aa23ef 100644
--- a/x11/gtksourceview3/Makefile
+++ b/x11/gtksourceview3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2017/02/12 06:24:54 ryoon Exp $
+# $NetBSD: Makefile,v 1.33 2017/06/25 12:05:59 martin Exp $
DISTNAME= gtksourceview-3.22.0
PKGNAME= ${DISTNAME:S/gtksourceview/gtksourceview3/}
@@ -22,12 +22,24 @@ CONFIGURE_ARGS+= --disable-vala
PKGCONFIG_OVERRIDE+= gtksourceview-3.0.pc.in
+PKG_OPTIONS_VAR= PKG_OPTIONS.gtksourceview3
+PKG_SUPPORTED_OPTIONS= introspection
+PKG_SUGGESTED_OPTIONS= introspection
+PLIST_VARS+= introspection
+
+.include "../../mk/bsd.options.mk"
+
BUILD_DEPENDS+= itstool-[0-9]*:../../textproc/itstool
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.48
.include "../../devel/glib2/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mintrospection)
+PLIST.introspection= yes
BUILDLINK_API_DEPENDS.gobject-introspection+= gobject-introspection>=1.42.0
.include "../../devel/gobject-introspection/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --enable-introspection=no
+.endif
.include "../../textproc/libxml2/buildlink3.mk"
BUILDLINK_API_DEPENDS.gtk3+= gtk3+>=3.20
.include "../../x11/gtk3/buildlink3.mk"
diff --git a/x11/gtksourceview3/PLIST b/x11/gtksourceview3/PLIST
index 14fe48b775f..0df3c73141e 100644
--- a/x11/gtksourceview3/PLIST
+++ b/x11/gtksourceview3/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2016/11/25 17:52:04 prlw1 Exp $
+@comment $NetBSD: PLIST,v 1.10 2017/06/25 12:05:59 martin Exp $
include/gtksourceview-3.0/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
include/gtksourceview-3.0/gtksourceview/gtksource.h
include/gtksourceview-3.0/gtksourceview/gtksourceautocleanups.h
@@ -40,10 +40,10 @@ include/gtksourceview-3.0/gtksourceview/gtksourceversion.h
include/gtksourceview-3.0/gtksourceview/gtksourceview-enumtypes.h
include/gtksourceview-3.0/gtksourceview/gtksourceview-typebuiltins.h
include/gtksourceview-3.0/gtksourceview/gtksourceview.h
-lib/girepository-1.0/GtkSource-3.0.typelib
+${PLIST.introspection}lib/girepository-1.0/GtkSource-3.0.typelib
lib/libgtksourceview-3.0.la
lib/pkgconfig/gtksourceview-3.0.pc
-share/gir-1.0/GtkSource-3.0.gir
+${PLIST.introspection}share/gir-1.0/GtkSource-3.0.gir
share/gtk-doc/html/gtksourceview-3.0/GtkSourceBuffer.html
share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletion.html
share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionContext.html