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 2022 Marcel Telka
16 %patch% 01-load-64-bit-X11.patch
19 # fix abstract we obtained from META.json
20 sed -i -e 's/Tk - Tk -/Tk -/g' Makefile
21 # two more license terms applies for this component
22 sed -i -e $'/^license/a\\\nlicense pTk/license.terms license=\'TCL\'\\\nlicense pTk/Tix.license license=\'MIT-Modern-Variant\'' "$DISTRIBUTION-PERLVER.p5m"
25 # With default "symlink" cloney mode tests fails
26 CLONEY_ARGS = CLONEY_MODE="hardlink"
28 # Testing needs an X server
29 TEST_REQUIRED_PACKAGES += x11/server/xvfb
30 COMPONENT_PRE_TEST_ACTION += /usr/bin/Xvfb :0 >/dev/null 2>&1 &
31 COMPONENT_TEST_ENV += DISPLAY=:0
32 COMPONENT_POST_TEST_ACTION += /usr/bin/pkill -x Xvfb ;
34 # Contains random address
35 COMPONENT_TEST_TRANSFORMS += "-e '/^Stack moved/d'"
37 # Optional test dependencies missing from metadata
38 TEST_REQUIRED_PACKAGES.perl += library/perl-5/test-pod