transset: update to 1.0.4
[oi-userland.git] / components / python / pycurl / Makefile
bloba668081ecc1624cb9abe476fd642efa16a3b9822
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.
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.
13 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project pycurl
17 BUILD_STYLE = pyproject
18 # Force setup.py build style because we need to pass additional --openssl-dir
19 # and there seems to be no way how to do that with the default pyproject build
20 # style.
21 BUILD_STYLE = setup.py
23 include ../../../make-rules/shared-macros.mk
25 COMPONENT_NAME = pycurl
26 HUMAN_VERSION = 7.45.4
27 COMPONENT_SUMMARY = PycURL -- A Python Interface To The cURL library
28 COMPONENT_PROJECT_URL = http://pycurl.io/
29 COMPONENT_ARCHIVE_HASH = \
30 sha256:32c8e237069273f4260b6ae13d1e0f99daae938977016021565dc6e11050e803
31 COMPONENT_LICENSE = LGPL-2.1-only
33 TEST_STYLE = pytest
35 # Install common files to /usr
36 PYTHON_DATA = $(USRDIR)
38 include $(WS_MAKE_RULES)/common.mk
40 # Make sure we compile and link with proper openssl version
41 LDFLAGS += -L$(OPENSSL_LIBDIR)
42 LDFLAGS += -R$(OPENSSL_LIBDIR)
43 COMPONENT_BUILD_SETUP_PY_ARGS += --openssl-dir=$(OPENSSL_PREFIX)
45 # Rename pycurl documentation to contain version number
46 COMPONENT_POST_INSTALL_ACTION += \
47 $(MV) $(PROTOUSRSHAREDOCDIR)/pycurl $(PROTOUSRSHAREDOCDIR)/pycurl-$(PYTHON_VERSION) ;
49 # Compile extra libraries for tests
50 COMPONENT_PRE_TEST_ACTION += PATH=$(PATH.gnu) make -C $(@D)/tests/fake-curl/libcurl ;
52 # https://github.com/pycurl/pycurl/issues/876
53 PYTEST_ADDOPTS += --deselect tests/pause_test.py::PauseTest::test_pause_via_call
54 PYTEST_ADDOPTS += --deselect tests/pause_test.py::PauseTest::test_pause_via_return
56 # Replace Python version in pycurl documentation directory name
57 GENERATE_EXTRA_CMD += | \
58 $(GSED) -e 's/\(usr\/share\/doc\/pycurl-\)3\.[0-9]*/\1$$(PYVER)/' | uniq
60 # Auto-generated dependencies
61 PYTHON_REQUIRED_PACKAGES += runtime/python
62 REQUIRED_PACKAGES += $(OPENSSL_PKG)
63 REQUIRED_PACKAGES += system/library
64 REQUIRED_PACKAGES += web/curl