6771N/A#
6771N/A# CDDL HEADER START
6771N/A#
6771N/A# The contents of this file are subject to the terms of the
6771N/A# Common Development and Distribution License (the "License").
6771N/A# You may not use this file except in compliance with the License.
6771N/A#
6771N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6771N/A# or http://www.opensolaris.org/os/licensing.
6771N/A# See the License for the specific language governing permissions
6771N/A# and limitations under the License.
6771N/A#
6771N/A# When distributing Covered Code, include this CDDL HEADER in each
6771N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6771N/A# If applicable, add the following below this CDDL HEADER, with the
6771N/A# fields enclosed by brackets "[]" replaced with your own identifying
6771N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6771N/A#
6771N/A# CDDL HEADER END
6771N/A#
6771N/A
6771N/A#
6771N/A# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
6771N/A#
6771N/A
6771N/Ainclude ../../../make-rules/shared-macros.mk
6771N/A
6771N/ACOMPONENT_NAME= pycparser
6771N/ACOMPONENT_VERSION= 2.10
6771N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6771N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6771N/ACOMPONENT_ARCHIVE_HASH= \
6771N/A sha256:957d98b661c0b64b580ab6f94b125e09b6714154ee51de40bca16d3f0076b86c
6771N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
6771N/ACOMPONENT_PROJECT_URL= https://github.com/eliben/pycparser
6771N/ACOMPONENT_BUGDB= python-mod/pycparser
6771N/A
6771N/ATPNO= 16938
6771N/A
6771N/Ainclude $(WS_MAKE_RULES)/prep.mk
6771N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
6771N/Ainclude $(WS_MAKE_RULES)/ips.mk
6771N/A
6771N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
6771N/A
6771N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)
6771N/ACOMPONENT_TEST_CMD = py.test-$(PYTHON_VERSION)
6771N/ACOMPONENT_TEST_ARGS = --resultlog $(@D)/testresults
6771N/ACOMPONENT_TEST_ARGS += -p no:codechecker
6771N/ACOMPONENT_TEST_ENV += PATH=$$PATH:$(BUILD_DIR)/bin
6771N/A
6771N/A$(SOURCE_DIR)/pycparser/ply/lex.py: $(SOURCE_DIR)/.patched
$(BUILD_DIR)/license.ply: $(SOURCE_DIR)/pycparser/ply/lex.py
nawk '/^# Copyright / {p=1} /^# ---/ {p=0} p == 1 {print substr($$0, 3)}' $< > $@
# common targets
build: $(BUILD_NO_ARCH)
install: $(INSTALL_NO_ARCH) $(BUILD_DIR)/license.ply
test: $(TEST_NO_ARCH)