makemaker-defaults.mk: fallback COMPONENT_PROJECT_URL to dist
[oi-userland.git] / components / python / RBTools / Makefile
blob0c684129cae9b5e9ee603e1e7633d5b4e7290540
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 RBTools
17 BUILD_STYLE = setup.py
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME = RBTools
22 HUMAN_VERSION = 5.0
23 COMPONENT_SUMMARY = Command line tools and API for working with code and document reviews on Review Board
24 COMPONENT_PROJECT_URL = https://www.reviewboard.org/downloads/rbtools/
25 COMPONENT_ARCHIVE_HASH = \
26 sha256:beb373100d0f2d707370a6ce449b6f98110dd0081accffd766d955cea16f08bc
27 COMPONENT_LICENSE = MIT
28 COMPONENT_LICENSE_FILE = COPYING
30 TEST_STYLE = pytest
32 # https://hellosplat.com/s/beanbag/tickets/4993/
33 # https://hellosplat.com/s/beanbag/tickets/4995/
34 COMPONENT_SRC_1 = rbtools-release-$(HUMAN_VERSION)
35 COMPONENT_ARCHIVE_1 = release-$(HUMAN_VERSION).tar.gz
36 COMPONENT_ARCHIVE_URL_1 = \
37 https://github.com/reviewboard/rbtools/archive/refs/tags/$(COMPONENT_ARCHIVE_1)
38 COMPONENT_ARCHIVE_HASH_1 = \
39 sha256:7efd4efa3966830532b71f8408ff2ed0d11c7aff9fdf6021f261b9380cfcd37a
40 CLEAN_PATHS += $(COMPONENT_SRC_1)
41 # https://hellosplat.com/s/beanbag/tickets/4993/
42 COMPONENT_POST_UNPACK_ACTION_1 += \
43 $(RM) -r $(COMPONENT_SRC)/rbtools/clients/tests/testdata ; \
44 $(CP) -a $(COMPONENT_SRC_1)/rbtools/clients/tests/testdata $(COMPONENT_SRC)/rbtools/clients/tests/testdata ;
45 # https://hellosplat.com/s/beanbag/tickets/4995/
46 COMPONENT_POST_UNPACK_ACTION_1 += \
47 $(RM) -r $(COMPONENT_SRC)/rbtools/testing/scripts ; \
48 $(CP) -a $(COMPONENT_SRC_1)/rbtools/testing/scripts $(COMPONENT_SRC)/rbtools/testing/scripts ;
50 include $(WS_MAKE_RULES)/common.mk
52 # Tests needs GNU tools
53 COMPONENT_TEST_ENV += PATH=$(PATH.gnu)
55 # Testing needs HOME environment variable (the directory does not need to
56 # exist)
57 COMPONENT_TEST_ENV += HOME="$(@D)/.test_home"
59 # Manually added dependencies
60 TEST_REQUIRED_PACKAGES += developer/versioning/cvs
61 TEST_REQUIRED_PACKAGES += developer/versioning/mercurial
62 TEST_REQUIRED_PACKAGES += developer/versioning/subversion
63 TEST_REQUIRED_PACKAGES += developer/versioning/git
64 # see setup.cfg
65 TEST_REQUIRED_PACKAGES.python += library/python/pytest-env
67 # Auto-generated dependencies
68 PYTHON_REQUIRED_PACKAGES += library/python/certifi
69 PYTHON_REQUIRED_PACKAGES += library/python/colorama
70 PYTHON_REQUIRED_PACKAGES += library/python/housekeeping
71 PYTHON_REQUIRED_PACKAGES += library/python/importlib-metadata
72 PYTHON_REQUIRED_PACKAGES += library/python/importlib-resources
73 PYTHON_REQUIRED_PACKAGES += library/python/packaging
74 PYTHON_REQUIRED_PACKAGES += library/python/pydiffx
75 PYTHON_REQUIRED_PACKAGES += library/python/texttable
76 PYTHON_REQUIRED_PACKAGES += library/python/tqdm
77 PYTHON_REQUIRED_PACKAGES += library/python/typing-extensions
78 PYTHON_REQUIRED_PACKAGES += runtime/python