23245641 Deliver gom 0.3.1 in Solaris
authorNiveditha Rau <Niveditha.Rau@Oracle.COM>
Fri, 10 Jun 2016 09:43:54 -0700
changeset 6210 f21b515be72b
parent 6209 cb4409f463d3
child 6211 f160e1987e2b
23245641 Deliver gom 0.3.1 in Solaris PSARC/2016/369 GObject Mapper
components/gnome/gom/Makefile
components/gnome/gom/gom.p5m
components/gnome/gom/patches/01-gettext.patch
components/gnome/gom/test/results-all.master
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnome/gom/Makefile	Fri Jun 10 09:43:54 2016 -0700
@@ -0,0 +1,76 @@
+#
+# 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
+# All components using gobject-introspection must be built with gcc as
+# gobject-introspection does not produce correct results when using Studio.
+COMPILER =              gcc
+include ../../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		gom
+COMPONENT_VERSION=	0.3.1
+COMPONENT_PROJECT_URL=	https://wiki.gnome.org/Projects/Gom
+COMPONENT_ARCHIVE_HASH=	\
+	sha256:7951eb46ee784cbdbee6e3f2da084ffbf776c11ca1c904404b05feafe37e38f5
+COMPONENT_BUGDB=        gnome/libraries
+
+TPNO=			25360
+
+# Needs updated glib2 and gobject-introspection, not available on S11.
+ifeq ($(BUILD_TYPE), evaluation)
+BUILD_32_and_64=
+INSTALL_32_and_64=
+PUBLISH_STAMP=
+endif
+
+include $(WS_MAKE_RULES)/gnome-component.mk
+
+# Assumes GNU xgettext in PATH.
+CONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
+
+CONFIGURE_OPTIONS += --disable-static
+# Required for other components.
+CONFIGURE_OPTIONS += --enable-introspection
+CONFIGURE_OPTIONS += --enable-shared
+CONFIGURE_OPTIONS += --with-pic
+
+# Required due to patches.
+COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
+
+COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
+COMPONENT_TEST_ARGS =   -k -i
+COMPONENT_TEST_TRANSFORMS += \
+        '-n ' \
+        '-e "/TOTAL:/p" ' \
+        '-e "/SKIP:/p" ' \
+        '-e "/PASS:/p" ' \
+        '-e "/FAIL:/p" ' \
+        '-e "/ok/p" ' \
+        '-e "/ERROR:/p" '
+
+REQUIRED_PACKAGES += database/sqlite-3
+REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
+REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
+REQUIRED_PACKAGES += library/glib2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnome/gom/gom.p5m	Fri Jun 10 09:43:54 2016 -0700
@@ -0,0 +1,72 @@
+#
+# 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/gom@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="An object mapper from GObjects to SQLite"
+set name=pkg.description \
+    value="Gom provides an object mapper from GObjects to SQLite. It helps you write applications that need to store structured data as well as make complex queries upon that data."
+set name=com.oracle.info.description value=gom
+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/369
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=usr/include/gom-1.0/gom/gom-adapter.h
+file path=usr/include/gom-1.0/gom/gom-autocleanups.h
+file path=usr/include/gom-1.0/gom/gom-command-builder.h
+file path=usr/include/gom-1.0/gom/gom-command.h
+file path=usr/include/gom-1.0/gom/gom-cursor.h
+file path=usr/include/gom-1.0/gom/gom-error.h
+file path=usr/include/gom-1.0/gom/gom-filter.h
+file path=usr/include/gom-1.0/gom/gom-repository.h
+file path=usr/include/gom-1.0/gom/gom-resource-group.h
+file path=usr/include/gom-1.0/gom/gom-resource.h
+file path=usr/include/gom-1.0/gom/gom.h
+file path=usr/lib/$(MACH64)/girepository-1.0/Gom-1.0.typelib
+link path=usr/lib/$(MACH64)/libgom-1.0.so target=libgom-1.0.so.0.1.0
+link path=usr/lib/$(MACH64)/libgom-1.0.so.0 target=libgom-1.0.so.0.1.0
+file path=usr/lib/$(MACH64)/libgom-1.0.so.0.1.0
+file path=usr/lib/$(MACH64)/pkgconfig/gom-1.0.pc
+file path=usr/lib/girepository-1.0/Gom-1.0.typelib
+link path=usr/lib/libgom-1.0.so target=libgom-1.0.so.0.1.0
+link path=usr/lib/libgom-1.0.so.0 target=libgom-1.0.so.0.1.0
+file path=usr/lib/libgom-1.0.so.0.1.0
+file path=usr/lib/pkgconfig/gom-1.0.pc
+file path=usr/share/gir-1.0/Gom-1.0.gir
+file path=usr/share/locale/bs/LC_MESSAGES/gom.mo
+file path=usr/share/locale/cs/LC_MESSAGES/gom.mo
+file path=usr/share/locale/de/LC_MESSAGES/gom.mo
+file path=usr/share/locale/el/LC_MESSAGES/gom.mo
+file path=usr/share/locale/es/LC_MESSAGES/gom.mo
+file path=usr/share/locale/hu/LC_MESSAGES/gom.mo
+file path=usr/share/locale/id/LC_MESSAGES/gom.mo
+file path=usr/share/locale/pl/LC_MESSAGES/gom.mo
+file path=usr/share/locale/pt_BR/LC_MESSAGES/gom.mo
+file path=usr/share/locale/sl/LC_MESSAGES/gom.mo
+file path=usr/share/locale/sr/LC_MESSAGES/gom.mo
+file path=usr/share/locale/sr@latin/LC_MESSAGES/gom.mo
+license COPYING license=LGPLv2.1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnome/gom/patches/01-gettext.patch	Fri Jun 10 09:43:54 2016 -0700
@@ -0,0 +1,23 @@
+The gettext library check here is bogus; it doesn't even use that
+particular gettext function.
+
+The configure check should be reworked to look for GNU-compatible gettext
+the "standard way" instead of looking for a function it doesn't even use or
+need.
+
+XXX file upstream bug; patch not appropriate for upstream
+--- gom-0.3.1/configure.ac	2015-04-29 03:05:54.000000000 -0700
++++ gom-0.3.1/configure.ac	2015-06-26 15:58:48.329991900 -0700
+@@ -121,11 +121,7 @@
+ AC_DEFINE([GETTEXT_PACKAGE], [PACKAGE_TARNAME], [Define to the gettext package name.])
+ 
+ 
+-dnl gettext library
+-AC_CHECK_LIB([gettextpo], [po_message_is_format],
+-             [GETTEXT_LIBS=-lgettextpo], [
+-              AC_MSG_ERROR(Missing gettext library)])
+-
++dnl gettext library; no special libs required for Solaris.
+ AC_SUBST([GETTEXT_LIBS])
+ 
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnome/gom/test/results-all.master	Fri Jun 10 09:43:54 2016 -0700
@@ -0,0 +1,10 @@
+PASS: test-gom-adapter
+PASS: test-gom-repository
+PASS: test-gom-find
+PASS: test-gom-find-specific
+PASS: test-gom-transform
+PASS: test-gom-stress
+PASS: test-gom-migration
+PASS: test-gom-constraints
+PASS: test-gom-insert
+PASS: test-gom-update