rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / python / pycurl / Makefile
blobb33de3f98f9f1ff120b4b6a6a7f9fdbfb50d8e70
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.3
27 COMPONENT_SUMMARY = pycurl - PycURL -- A Python Interface To The cURL library
28 COMPONENT_PROJECT_URL = http://pycurl.io/
29 COMPONENT_ARCHIVE_HASH = \
30 sha256:8c2471af9079ad798e1645ec0b0d3d4223db687379d17dd36a70637449f81d6b
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 # Replace Python version in pycurl documentation directory name
53 GENERATE_EXTRA_CMD += | \
54 $(GSED) -e 's/\(usr\/share\/doc\/pycurl-\)3\.[0-9]*/\1$$(PYVER)/' | uniq
56 # Auto-generated dependencies
57 PYTHON_REQUIRED_PACKAGES += runtime/python
58 REQUIRED_PACKAGES += library/security/openssl-31
59 REQUIRED_PACKAGES += system/library
60 REQUIRED_PACKAGES += web/curl