# HG changeset patch # User Alan Coopersmith # Date 1474512693 25200 # Node ID c48eb02e201d9b13f3248b293f4a3906f8dae9cb # Parent bdf0b42d8cef55ac27d429d06a655cafa29b2cc2 24684801 Move pyatspi to Userland and update to 2.18.0 diff -r bdf0b42d8cef -r c48eb02e201d components/gnome/pyatspi/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/gnome/pyatspi/Makefile Wed Sep 21 19:51:33 2016 -0700 @@ -0,0 +1,85 @@ +# +# 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) 2016, Oracle and/or its affiliates. All rights reserved. +# + +BUILD_BITS = 32_and_64 +include ../../../make-rules/shared-macros.mk + +COMPONENT_NAME= pyatspi +COMPONENT_VERSION= 2.18.0 +COMPONENT_PROJECT_URL= http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus +COMPONENT_ARCHIVE_HASH= \ + sha256:f86f03ad05d0502cd60fe8b98f746f74ce3bc208e9f3798f6a2130b3c5f4ab46 +COMPONENT_BUGDB= gnome/a11y-libs-core + +TPNO= 30736 + +# replicated from $(WS_MAKE_RULES)/setup.py.mk since this uses configure.mk +CONFIGURE_64 += $(PYTHON3_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.configured) +$(BUILD_DIR)/%-3.4/.configured: PYTHON_VERSION=3.4 +$(BUILD_DIR)/%-3.5/.configured: PYTHON_VERSION=3.5 +$(BUILD_DIR)/$(MACH64)-%/.configured: BITS=64 + +BUILD_64 += $(PYTHON3_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built) +$(BUILD_DIR)/%-3.4/.built: PYTHON_VERSION=3.4 +$(BUILD_DIR)/%-3.5/.built: PYTHON_VERSION=3.5 +$(BUILD_DIR)/$(MACH64)-%/.built: BITS=64 + +INSTALL_64 += $(PYTHON3_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed) +$(BUILD_DIR)/%-3.4/.installed: PYTHON_VERSION=3.4 +$(BUILD_DIR)/%-3.5/.installed: PYTHON_VERSION=3.5 +$(BUILD_DIR)/$(MACH64)-%/.installed: BITS=64 + +# Tests require dbus python module, which we don't have for python3 yet +TEST_TARGET= $(SKIP_TEST) +include $(WS_MAKE_RULES)/gnome-component.mk + +CONFIGURE_OPTIONS += --disable-static +# Tests require dbus python module, which we don't have for python3 yet +CONFIGURE_OPTIONS += --disable-tests +CONFIGURE_OPTIONS += --with-python=$(PYTHON) + +# Ensure Python modules are installed into vendor package directories. +CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES) +CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES) + +# Make install path match what autopyc transforms look for +COMPONENT_POST_INSTALL_ACTION += \ + case "$(PYTHON_VERSION)" in \ + 3.*) $(SYMLINK) 64/pyatspi $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)/pyatspi ;; \ + esac ; + +REQUIRED_PACKAGES += library/python/pygobject-3 +REQUIRED_PACKAGES += runtime/python-27 +REQUIRED_PACKAGES += runtime/python-34 +REQUIRED_PACKAGES += runtime/python-35 + +# These are needed to build & run tests, but not for distributed packages +# REQUIRED_PACKAGES += library/desktop/atk +# REQUIRED_PACKAGES += library/desktop/gtk2 +# REQUIRED_PACKAGES += library/glib2 +# REQUIRED_PACKAGES += library/libxml2 +# REQUIRED_PACKAGES += library/python/python-dbus +# REQUIRED_PACKAGES += system/library/libdbus +# REQUIRED_PACKAGES += system/library/libdbus-glib diff -r bdf0b42d8cef -r c48eb02e201d components/gnome/pyatspi/pyatspi-PYVER.p5m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/gnome/pyatspi/pyatspi-PYVER.p5m Wed Sep 21 19:51:33 2016 -0700 @@ -0,0 +1,73 @@ +# +# 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) 2016, Oracle and/or its affiliates. All rights reserved. +# + +set name=pkg.fmri \ + value=pkg:/library/python/pyatspi-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.summary value="Python API to AT-SPI on D-Bus" +set name=com.oracle.info.description value="Python API to AT-SPI on D-Bus" +set name=com.oracle.info.tpno value=$(TPNO) +set name=info.classification \ + value="org.opensolaris.category.2008:Applications/Universal Access" +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=LSARC/2007/520 +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + + +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/Accessibility.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/__init__.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/action.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/appevent.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/application.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/collection.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/component.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/constants.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/deviceevent.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/document.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/editabletext.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/enum.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/hypertext.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/image.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/interface.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/registry.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/role.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/selection.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/state.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/table.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/tablecell.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/text.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/utils.py +file path=usr/lib/python$(PYVER)/vendor-packages/pyatspi/value.py + + +license COPYING.GPL license=GPLv2 +license COPYING license=LGPLv2.1 + +# force a dependency on the unversioned package +depend type=require \ + fmri=library/python/pyatspi@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) + +# force a dependency on the Python runtime +depend type=require fmri=runtime/python-$(PYV)