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% 02-importlib-metadata.patch
18 %patch% 03-skip-p4-tests.patch
21 # https://hellosplat.com/s/beanbag/tickets/4993/
22 # https://hellosplat.com/s/beanbag/tickets/4995/
23 COMPONENT_SRC_1 = rbtools-release-$(HUMAN_VERSION)
24 COMPONENT_ARCHIVE_1 = release-$(HUMAN_VERSION).tar.gz
25 COMPONENT_ARCHIVE_URL_1 = \
26 https://github.com/reviewboard/rbtools/archive/refs/tags/$(COMPONENT_ARCHIVE_1)
27 COMPONENT_ARCHIVE_HASH_1 = \
28 sha256:091fb5ee76ff80bef552a76a810733b14e0579b447c5f5435ead2b41d0efbfee
29 CLEAN_PATHS += $(COMPONENT_SRC_1)
30 # https://hellosplat.com/s/beanbag/tickets/4993/
31 COMPONENT_POST_UNPACK_ACTION_1 += \
32 $(RM) -r $(COMPONENT_SRC)/rbtools/clients/tests/testdata ; \
33 $(CP) -a $(COMPONENT_SRC_1)/rbtools/clients/tests/testdata $(COMPONENT_SRC)/rbtools/clients/tests/testdata ;
34 # https://hellosplat.com/s/beanbag/tickets/4995/
35 COMPONENT_POST_UNPACK_ACTION_1 += \
36 $(RM) -r $(COMPONENT_SRC)/rbtools/testing/scripts ; \
37 $(CP) -a $(COMPONENT_SRC_1)/rbtools/testing/scripts $(COMPONENT_SRC)/rbtools/testing/scripts ;
39 # Tests needs GNU tools
40 COMPONENT_TEST_ENV += PATH=$(PATH.gnu)
42 # Manually added dependencies
43 TEST_REQUIRED_PACKAGES += developer/versioning/cvs
44 TEST_REQUIRED_PACKAGES += developer/versioning/mercurial
45 TEST_REQUIRED_PACKAGES += developer/versioning/subversion
46 TEST_REQUIRED_PACKAGES += developer/versioning/git
48 # usr/bin/rbt-3.7 does not use importlib.metadata. It uses importlib_metadata instead.
49 printf '<transform file path=usr/bin/rbt-3\\.7$ -> add pkg.depend.bypass-generate .*/importlib/(64/)?metadata.* >\n' >> "$DISTRIBUTION-PYVER.p5m"
50 # Do not generate dependencies on importlib_metadata for usr/bin files otherwise we would end with duplicate dependencies on importlib-metadata.
51 printf '<transform file path=usr/bin -> add pkg.depend.bypass-generate .*/importlib_metadata.* >\n' >> "$DISTRIBUTION-PYVER.p5m"
52 # Do not generate dependencies on pkg_resources for usr/bin files otherwise we would end with duplicate dependencies on setuptools.
53 printf '<transform file path=usr/bin -> add pkg.depend.bypass-generate .*/pkg_resources.* >\n' >> "$DISTRIBUTION-PYVER.p5m"