2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2017 Alexander Pyhalov
13 # Copyright 2021 Andreas Wacknitz
16 SINGLE_PYTHON_VERSION
= no
17 USE_DEFAULT_TEST_TRANSFORMS
= yes
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= pyatspi
23 COMPONENT_SUMMARY
= Python wrapper around libatspi
24 COMPONENT_PROJECT_URL
= https
://wiki.gnome.org
/Accessibility
25 COMPONENT_ARCHIVE_HASH
= sha256
:f91f6a57434e9c07d13d5c4bf819dd78e8ee605aac2ae45d8c64c28114fb041b
26 COMPONENT_FMRI
= library
/python
/pyatspi2
27 COMPONENT_CLASSIFICATION
= Applications
/Universal Access
28 COMPONENT_LICENSE
= LGPL-2.0
-only
29 COMPONENT_LICENSE_FILE
= COPYING
31 include $(WS_MAKE_RULES
)/gnome.mk
32 include $(WS_MAKE_RULES
)/common.mk
34 CONFIGURE_OPTIONS
+= --with-python
=$(PYTHON
)
35 CONFIGURE_OPTIONS
+= --enable-tests
37 # Ensure Python modules are installed into vendor package directories:
38 CONFIGURE_ENV
+= am_cv_python_pythondir
="$(PYTHON_VENDOR_PACKAGES)"
39 CONFIGURE_ENV
+= am_cv_python_pyexecdir
="$(PYTHON_VENDOR_PACKAGES)"
41 # Testing needs an X server
42 TEST_REQUIRED_PACKAGES
+= x11
/server
/xvfb
43 COMPONENT_PRE_TEST_ACTION
+= /usr
/bin
/Xvfb
:0 >/dev
/null
2>&1 &
44 COMPONENT_TEST_ENV
+= DISPLAY
=:0
45 COMPONENT_POST_TEST_ACTION
+= /usr
/bin
/pkill
-x Xvfb
;
47 # Manually added build dependencies
48 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
50 # Auto-generated dependencies