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