pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/libsecret Make introspection optional



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d95eed983d2d
branches:  trunk
changeset: 355425:d95eed983d2d
user:      martin <martin%pkgsrc.org@localhost>
date:      Thu Dec 01 12:51:12 2016 +0000

description:
Make introspection optional

diffstat:

 security/libsecret/Makefile   |   4 ++--
 security/libsecret/PLIST      |   6 +++---
 security/libsecret/options.mk |  15 +++++++++++++++
 3 files changed, 20 insertions(+), 5 deletions(-)

diffs (60 lines):

diff -r b1e26156d9fa -r d95eed983d2d security/libsecret/Makefile
--- a/security/libsecret/Makefile       Thu Dec 01 12:33:55 2016 +0000
+++ b/security/libsecret/Makefile       Thu Dec 01 12:51:12 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2014/08/13 13:19:14 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2016/12/01 12:51:12 martin Exp $
 
 DISTNAME=      libsecret-0.18
 CATEGORIES=    security gnome
@@ -23,6 +23,6 @@
 
 BUILDLINK_API_DEPENDS.glib2+=  glib2>=2.38.0
 .include "../../devel/glib2/buildlink3.mk"
-.include "../../devel/gobject-introspection/buildlink3.mk"
 .include "../../security/libgcrypt/buildlink3.mk"
+.include "options.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r b1e26156d9fa -r d95eed983d2d security/libsecret/PLIST
--- a/security/libsecret/PLIST  Thu Dec 01 12:33:55 2016 +0000
+++ b/security/libsecret/PLIST  Thu Dec 01 12:51:12 2016 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2014/03/12 10:17:57 wiz Exp $
+@comment $NetBSD: PLIST,v 1.5 2016/12/01 12:51:12 martin Exp $
 bin/secret-tool
 include/libsecret-1/libsecret/secret-attributes.h
 include/libsecret-1/libsecret/secret-collection.h
@@ -13,12 +13,12 @@
 include/libsecret-1/libsecret/secret-types.h
 include/libsecret-1/libsecret/secret-value.h
 include/libsecret-1/libsecret/secret.h
-lib/girepository-1.0/Secret-1.typelib
+${PLIST.introspection}lib/girepository-1.0/Secret-1.typelib
 lib/libsecret-1.la
 lib/pkgconfig/libsecret-1.pc
 lib/pkgconfig/libsecret-unstable.pc
 man/man1/secret-tool.1
-share/gir-1.0/Secret-1.gir
+${PLIST.introspection}share/gir-1.0/Secret-1.gir
 share/gtk-doc/html/libsecret-1/SecretCollection.html
 share/gtk-doc/html/libsecret-1/SecretItem.html
 share/gtk-doc/html/libsecret-1/SecretPrompt.html
diff -r b1e26156d9fa -r d95eed983d2d security/libsecret/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libsecret/options.mk     Thu Dec 01 12:51:12 2016 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: options.mk,v 1.1 2016/12/01 12:51:12 martin Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.libsecret
+PKG_SUPPORTED_OPTIONS= introspection
+PKG_SUGGESTED_OPTIONS= introspection
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=   introspection
+.if !empty(PKG_OPTIONS:Mintrospection)
+.include "../../devel/gobject-introspection/buildlink3.mk"
+PLIST.introspection=yes
+.else
+CONFIGURE_ARGS+=--disable-introspection
+.endif



Home | Main Index | Thread Index | Old Index