5239N/A#
5239N/A# CDDL HEADER START
5239N/A#
5239N/A# The contents of this file are subject to the terms of the
5239N/A# Common Development and Distribution License (the "License").
5239N/A# You may not use this file except in compliance with the License.
5239N/A#
5239N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5239N/A# or http://www.opensolaris.org/os/licensing.
5239N/A# See the License for the specific language governing permissions
5239N/A# and limitations under the License.
5239N/A#
5239N/A# When distributing Covered Code, include this CDDL HEADER in each
5239N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5239N/A# If applicable, add the following below this CDDL HEADER, with the
5239N/A# fields enclosed by brackets "[]" replaced with your own identifying
5239N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5239N/A#
5239N/A# CDDL HEADER END
5239N/A#
5239N/A
5239N/A#
5239N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5239N/A#
5680N/ABUILD_BITS= 64
5239N/Ainclude ../../make-rules/shared-macros.mk
5239N/A
5239N/ACOMPONENT_NAME= patchutils
5239N/ACOMPONENT_VERSION= 0.3.1
5239N/AIPS_PKG_NAME= text/patchutils
5239N/ACOMPONENT_PROJECT_URL= http://cyberelk.net/tim/patchutils/
5239N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
5239N/ACOMPONENT_ARCHIVE_HASH= \
5239N/A sha256:48d28d4a6fd9922e15ecfd8a152ba5aef6673842c8303337fcaa6b3bb2d129a2
5239N/ACOMPONENT_ARCHIVE_URL= http://cyberelk.net/tim/data/patchutils/stable/$(COMPONENT_ARCHIVE)
5239N/A
5239N/ATPNO= 9269
5239N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5239N/A
5239N/A# A couple of tests dump core, and the message contains the pid
5239N/A# A number of failing tests operate on randomly named files
5239N/A# Remove the make garbage from the test output
5239N/ACOMPONENT_TEST_TRANSFORMS += \
5239N/A '-e "/coredump/s/[0-9]*: Abort/XXXX: Abort/"' \
5239N/A '-e "s,\(/var/tmp//.*diff-1\.\)......,\1XXXXXX,"' \
5239N/A '-e "1,/^for test in/{N;d}"' \
5239N/A '-e "/^===/{N;N;q}"'
5239N/A
5239N/A# Note that the gendiff tests will fail on Solaris, because the gendiff utility
5239N/A# is missing; this is delivered by rpm.
5239N/A
5795N/AREQUIRED_PACKAGES += $(PERL_PKG)
5239N/AREQUIRED_PACKAGES += text/gnu-diffutils
5239N/AREQUIRED_PACKAGES += text/gnu-patch