Marcel Telka
2024-03-30 f9ba3aac090e918abb602b2ce28e58b7dd0f59fa
commit | author | age
c3c523 1 #
MT 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source.  A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # This file was automatically generated using the following command:
14 #   $WS_TOOLS/python-integrate-project lxml
15 #
16
f6322d 17 BUILD_STYLE = pyproject
c3c523 18
MT 19 include ../../../make-rules/shared-macros.mk
20
21 COMPONENT_NAME =        lxml
22b7f5 22 HUMAN_VERSION =            5.1.1
c3c523 23 COMPONENT_SUMMARY =        lxml - Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
MT 24 COMPONENT_PROJECT_URL =        https://lxml.de/
25 COMPONENT_ARCHIVE_HASH =    \
22b7f5 26     sha256:42a8aa957e98bd8b884a8142175ec24ce4ef0a57760e8879f193bfe64b757ca9
c3c523 27 COMPONENT_LICENSE =        BSD-3-Clause
MT 28 COMPONENT_LICENSE_FILE =    LICENSE.txt
29
30 # This project uses custom test style.
31 # See project's Makefile.
32 TEST_STYLE = custom
33
34 include $(WS_MAKE_RULES)/common.mk
35
36 # This project uses custom test style.
37 # See project's Makefile.
38 COMPONENT_TEST_CMD =        $(PYTHON) test.py
39 COMPONENT_TEST_ARGS =        -vv
40 COMPONENT_TEST_TARGETS =
41
42 # The test.py uses modules from the src subdirectory, but compiled dynamic
43 # libraries are not available there.
44 #
45 # To workaround this we copy .so files from proto area back to build dir before
46 # we run tests.
47 COMPONENT_PRE_TEST_ACTION += \
48     $(CP) $(PROTO_DIR)/$(PYTHON_LIB)/$(COMPONENT_NAME)/*.so $(@D)/src/$(COMPONENT_NAME) ;
49
50 # Sort list of tests
51 COMPONENT_TEST_TRANSFORMS += \
52     " | ( \
a5623e 53         $(GSED) -u -e '/^$$/Q' | $(SORT) | $(NAWK) '{print}END{if(NR>0)printf(\"\\\\n\")}' ; \
c3c523 54         $(CAT) \
MT 55     )"
56
57 # Auto-generated dependencies
f6322d 58 PYTHON_REQUIRED_PACKAGES += library/python/cython
MT 59 PYTHON_REQUIRED_PACKAGES += library/python/setuptools
60 PYTHON_REQUIRED_PACKAGES += library/python/wheel
c3c523 61 PYTHON_REQUIRED_PACKAGES += runtime/python
MT 62 REQUIRED_PACKAGES += library/libxml2
63 REQUIRED_PACKAGES += library/libxslt
64 REQUIRED_PACKAGES += system/library