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
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 # Copyright 2023 Marcel Telka
16 %patch% 01-no-shebang.patch
17 %patch% 03-skip-p4-tests.patch
20 # https://hellosplat.com/s/beanbag/tickets/4993/
21 # https://hellosplat.com/s/beanbag/tickets/4995/
22 COMPONENT_SRC_1 = rbtools-release-$(HUMAN_VERSION)
23 COMPONENT_ARCHIVE_1 = release-$(HUMAN_VERSION).tar.gz
24 COMPONENT_ARCHIVE_URL_1 = \
25 https://github.com/reviewboard/rbtools/archive/refs/tags/$(COMPONENT_ARCHIVE_1)
26 COMPONENT_ARCHIVE_HASH_1 = \
27 sha256:7efd4efa3966830532b71f8408ff2ed0d11c7aff9fdf6021f261b9380cfcd37a
28 CLEAN_PATHS += $(COMPONENT_SRC_1)
29 # https://hellosplat.com/s/beanbag/tickets/4993/
30 COMPONENT_POST_UNPACK_ACTION_1 += \
31 $(RM) -r $(COMPONENT_SRC)/rbtools/clients/tests/testdata ; \
32 $(CP) -a $(COMPONENT_SRC_1)/rbtools/clients/tests/testdata $(COMPONENT_SRC)/rbtools/clients/tests/testdata ;
33 # https://hellosplat.com/s/beanbag/tickets/4995/
34 COMPONENT_POST_UNPACK_ACTION_1 += \
35 $(RM) -r $(COMPONENT_SRC)/rbtools/testing/scripts ; \
36 $(CP) -a $(COMPONENT_SRC_1)/rbtools/testing/scripts $(COMPONENT_SRC)/rbtools/testing/scripts ;
38 # Tests needs GNU tools
39 COMPONENT_TEST_ENV += PATH=$(PATH.gnu)
41 # Testing needs HOME environment variable (the directory does not need to
43 COMPONENT_TEST_ENV += HOME="$(@D)/.test_home"
45 # Manually added dependencies
46 TEST_REQUIRED_PACKAGES += developer/versioning/cvs
47 TEST_REQUIRED_PACKAGES += developer/versioning/mercurial
48 TEST_REQUIRED_PACKAGES += developer/versioning/subversion
49 TEST_REQUIRED_PACKAGES += developer/versioning/git
51 TEST_REQUIRED_PACKAGES.python += library/python/pytest-env
53 # Do not generate dependencies on importlib_metadata for usr/bin files otherwise we would end with duplicate dependencies on importlib-metadata.
54 printf '<transform file path=usr/bin -> add pkg.depend.bypass-generate .*/importlib_metadata.* >\n' >> "$DISTRIBUTION-PYVER.p5m"
55 # Do not generate dependencies on pkg_resources for usr/bin files otherwise we would end with duplicate dependencies on setuptools.
56 printf '<transform file path=usr/bin -> add pkg.depend.bypass-generate .*/pkg_resources.* >\n' >> "$DISTRIBUTION-PYVER.p5m"