23245337 Move libnotify to Userland and update to 0.7.6
authorNiveditha Rau <Niveditha.Rau@Oracle.COM>
Tue, 31 May 2016 16:05:58 -0700
changeset 6115 55570225d8f2
parent 6114 b4ecb55aa3ca
child 6116 50b34e598bb1
23245337 Move libnotify to Userland and update to 0.7.6 PSARC/2016/336 Libnotify-4
components/gnome/libnotify/Makefile
components/gnome/libnotify/libnotify.p5m
components/gnome/libnotify/patches/01-doc-build.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnome/libnotify/Makefile	Tue May 31 16:05:58 2016 -0700
@@ -0,0 +1,62 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+BUILD_BITS = 64_and_32
+COMPILER=gcc
+include ../../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		libnotify
+COMPONENT_VERSION=	0.7.6
+COMPONENT_ARCHIVE_HASH=	\
+	sha256:0ef61ca400d30e28217979bfa0e73a7406b19c32dd76150654ec5b2bdf47d837
+COMPONENT_BUGDB=        gnome/libraries
+
+TPNO=			24758
+
+# Tests do not work on Solaris yet
+TEST_TARGET= $(SKIP_TEST)
+
+include $(WS_MAKE_RULES)/gnome-component.mk
+
+CONFIGURE_OPTIONS += --includedir=/usr/include/$(COMPONENT_NAME)-4/
+CONFIGURE_OPTIONS.32 += --libdir=/usr/lib/$(COMPONENT_NAME)-4/
+CONFIGURE_OPTIONS.64 += --libdir=/usr/lib/$(MACH64)/$(COMPONENT_NAME)-4/
+
+CONFIGURE_OPTIONS += --disable-static
+# Required for other components.
+CONFIGURE_OPTIONS += --program-suffix=-4
+CONFIGURE_OPTIONS += --enable-introspection
+CONFIGURE_OPTIONS += --disable-docbook-docs
+CONFIGURE_OPTIONS += --enable-shared
+CONFIGURE_OPTIONS += --with-pic
+
+# Required due to patches.
+COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
+
+REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
+REQUIRED_PACKAGES += developer/documentation-tool/xmlto
+REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
+REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
+REQUIRED_PACKAGES += library/glib2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnome/libnotify/libnotify.p5m	Tue May 31 16:05:58 2016 -0700
@@ -0,0 +1,61 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+<transform file path=usr.*/man/.+ -> \
+    default mangler.man.stability "pass-through volatile">
+set name=pkg.fmri \
+    value=pkg:/library/desktop/libnotify@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="Desktop notifications library"
+set name=pkg.description \
+    value="libnotify is a library that sends desktop notifications to a notification daemon, as defined in the Desktop Notifications spec. These notifications can be used to inform the user about an event or display some form of information without getting in the user's way."
+set name=com.oracle.info.description value=libnotify-4
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value="org.opensolaris.category.2008:Desktop (GNOME)/Libraries"
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2016/336
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=usr/bin/notify-send-4
+file path=usr/include/libnotify-4/libnotify/notification.h
+file path=usr/include/libnotify-4/libnotify/notify-enum-types.h
+file path=usr/include/libnotify-4/libnotify/notify-features.h
+file path=usr/include/libnotify-4/libnotify/notify.h
+file usr/lib/$(MACH64)/libnotify-4/girepository-1.0/Notify-0.7.typelib \
+    path=usr/lib/$(MACH64)/girepository-1.0/Notify-0.7.typelib
+link path=usr/lib/$(MACH64)/libnotify-4/libnotify.so target=libnotify.so.4.0.0
+link path=usr/lib/$(MACH64)/libnotify-4/libnotify.so.4 target=libnotify.so.4.0.0
+file path=usr/lib/$(MACH64)/libnotify-4/libnotify.so.4.0.0
+file usr/lib/$(MACH64)/libnotify-4/pkgconfig/libnotify.pc \
+    path=usr/lib/$(MACH64)/pkgconfig/libnotify-4/libnotify.pc
+file usr/lib/libnotify-4/girepository-1.0/Notify-0.7.typelib \
+    path=usr/lib/girepository-1.0/Notify-0.7.typelib
+link path=usr/lib/libnotify-4/libnotify.so target=libnotify.so.4.0.0
+link path=usr/lib/libnotify-4/libnotify.so.4 target=libnotify.so.4.0.0
+file path=usr/lib/libnotify-4/libnotify.so.4.0.0
+file usr/lib/libnotify-4/pkgconfig/libnotify.pc \
+    path=usr/lib/pkgconfig/libnotify-4/libnotify.pc
+file path=usr/share/gir-1.0/Notify-0.7.gir
+license COPYING license=LGPLv2.1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnome/libnotify/patches/01-doc-build.patch	Tue May 31 16:05:58 2016 -0700
@@ -0,0 +1,13 @@
+Fix builds outside of source tree for documentation.  Potentially applicable to be sent upstream
+
+--- libnotify-0.7.6/docs/Makefile.am	2011-08-16 04:52:04.000000000 -0700
++++ libnotify-0.7.6/docs/Makefile.am	2015-06-25 22:00:14.211074742 -0700
+@@ -12,7 +12,7 @@
+ htmldoc_DATA = notification-spec.html
+ 
+ notification-spec.html: $(SPEC_XML_FILES)
+-	$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks -m $(top_srcdir)/docs/config.xsl notification-spec.xml
++	$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks -m $(top_srcdir)/docs/config.xsl $(top_srcdir)/docs/notification-spec.xml
+ 
+ endif # DOCBOOK_DOCS_ENABLED
+