pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/gtksourceview3 Support the introspection pkg option.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b12745270200
branches:  trunk
changeset: 364468:b12745270200
user:      martin <martin%pkgsrc.org@localhost>
date:      Sun Jun 25 12:05:59 2017 +0000

description:
Support the introspection pkg option.

diffstat:

 x11/gtksourceview3/Makefile |  14 +++++++++++++-
 x11/gtksourceview3/PLIST    |   6 +++---
 2 files changed, 16 insertions(+), 4 deletions(-)

diffs (56 lines):

diff -r b8fdf80cf2b6 -r b12745270200 x11/gtksourceview3/Makefile
--- a/x11/gtksourceview3/Makefile       Sun Jun 25 08:27:22 2017 +0000
+++ b/x11/gtksourceview3/Makefile       Sun Jun 25 12:05:59 2017 +0000
@@ -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 @@
 
 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 -r b8fdf80cf2b6 -r b12745270200 x11/gtksourceview3/PLIST
--- a/x11/gtksourceview3/PLIST  Sun Jun 25 08:27:22 2017 +0000
+++ b/x11/gtksourceview3/PLIST  Sun Jun 25 12:05:59 2017 +0000
@@ -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/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



Home | Main Index | Thread Index | Old Index