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