python/pytest-subtests: update to 0.14.0
[oi-userland.git] / components / text / ggrep / Makefile
blobbf1b777b1574559c0f9340245f1cff71394b6973
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
23 # Copyright (c) 2020, Michal Nowak
24 # Copyright (c) 2020-2021, Nona Hansel
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= grep
30 COMPONENT_VERSION= 3.11
31 COMPONENT_SUMMARY= GNU grep utilities
32 COMPONENT_PROJECT_URL= https://gnu.org/software/grep/
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
35 COMPONENT_ARCHIVE_HASH= sha256:1db2aedde89d0dea42b16d9528f894c8d15dae4e190b59aecc78f5a951276eab
36 COMPONENT_ARCHIVE_URL= https://ftp.gnu.org/gnu/grep/$(COMPONENT_ARCHIVE)
37 COMPONENT_FMRI= text/gnu-grep
38 COMPONENT_CLASSIFICATION= Applications/System Utilities
39 COMPONENT_LICENSE= GPLv3, FDLv1.3
41 include $(WS_MAKE_RULES)/common.mk
43 COMPONENT_PREP_ACTION = ( cd $(@D) && \
44 aclocal -I m4 && \
45 autoheader && \
46 automake --add-missing --copy --force )
48 PATH=$(PATH.gnu)
50 # Needed for "gmake test" to work.
51 # SHELLOPTS is exported via make-rules/shared-macros.mk,
52 # causing the braceexpand option to be set.
53 # This option causes "$1: unbound variable" errors during the check-TESTS,
54 # and the gnulib-tests don't even run at all.
55 # Note that the below unexports SHELLOPTS, even for targets
56 # other than "test."
57 unexport SHELLOPTS
59 # Test transforms retain only relevant results output.
60 COMPONENT_TEST_TRANSFORMS += \
61 '-n ' \
62 '-e "/TOTAL/p" ' \
63 '-e "/SKIP/p" ' \
64 '-e "/PASS/p" ' \
65 '-e "/FAIL/p" ' \
66 '-e "/ERROR/p" '
68 # Testsuite requirements
69 TEST_REQUIRED_PACKAGES += developer/versioning/cvs
70 TEST_REQUIRED_PACKAGES += locale/tr
71 TEST_REQUIRED_PACKAGES += locale/ru-extra
72 TEST_REQUIRED_PACKAGES += locale/zh_cn-extra
74 # Auto-generated dependencies
75 REQUIRED_PACKAGES += library/pcre2
76 REQUIRED_PACKAGES += shell/ksh93
77 REQUIRED_PACKAGES += system/library