4812N/A#
4812N/A# CDDL HEADER START
4812N/A#
4812N/A# The contents of this file are subject to the terms of the
4812N/A# Common Development and Distribution License (the "License").
4812N/A# You may not use this file except in compliance with the License.
4812N/A#
4812N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4812N/A# or http://www.opensolaris.org/os/licensing.
4812N/A# See the License for the specific language governing permissions
4812N/A# and limitations under the License.
4812N/A#
4812N/A# When distributing Covered Code, include this CDDL HEADER in each
4812N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4812N/A# If applicable, add the following below this CDDL HEADER, with the
4812N/A# fields enclosed by brackets "[]" replaced with your own identifying
4812N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4812N/A#
4812N/A# CDDL HEADER END
5680N/A#
4812N/A
4812N/A#
5425N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4812N/A#
5680N/ABUILD_BITS= NO_ARCH
4812N/Ainclude ../../../make-rules/shared-macros.mk
4812N/A
4812N/ACOMPONENT_NAME= pylint
6936N/ACOMPONENT_VERSION= 1.6.4
4812N/ACOMPONENT_ARCHIVE_HASH= \
6936N/A sha256:ef901a34b62ed7a734370ba5b162d890231ba8822abe88c6dda1268e2575f5f1
4845N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
4812N/ACOMPONENT_PROJECT_URL= https://bitbucket.org/logilab/pylint
4812N/A
6936N/ATPNO= 31351
4812N/A
5680N/ABUILD_STYLE= setup.py
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
4812N/A
6936N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
6936N/A
4812N/A# There are several pylint documentation files that setup.py isn't installing
4812N/A# but are present in the pylint package on other distributions. Copy them into
4812N/A# the proto area "manually", so they can be included in the package.
5680N/APDOC_PYLINT = $(PROTOUSRSHAREDOCDIR)/pylint
4812N/APDOC_PYLINT_EXAMPLES = $(PDOC_PYLINT)/examples
4812N/A
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A $(MKDIR) $(PDOC_PYLINT) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
6936N/A $(CP) $(COMPONENT_SRC)/README.rst $(PDOC_PYLINT) ;
4812N/A
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A $(MKDIR) $(PDOC_PYLINT_EXAMPLES) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A $(CP) $(COMPONENT_SRC)/examples/custom.py $(PDOC_PYLINT_EXAMPLES) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A $(CP) $(COMPONENT_SRC)/examples/custom_raw.py $(PDOC_PYLINT_EXAMPLES) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A $(CP) $(COMPONENT_SRC)/elisp/pylint.el $(PDOC_PYLINT_EXAMPLES) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A $(CP) $(COMPONENT_SRC)/examples/pylintrc_camelcase $(PDOC_PYLINT_EXAMPLES) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A $(CP) $(COMPONENT_SRC)/examples/pylintrc $(PDOC_PYLINT_EXAMPLES) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A (cd $(PROTO_DIR)/usr/bin; $(MV) epylint epylint-$(PYTHON_VERSION)) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A (cd $(PROTO_DIR)/usr/bin; $(MV) pylint pylint-$(PYTHON_VERSION)) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A (cd $(PROTO_DIR)/usr/bin; $(MV) pylint-gui pylint-gui-$(PYTHON_VERSION)) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A (cd $(PROTO_DIR)/usr/bin; $(MV) pyreverse pyreverse-$(PYTHON_VERSION)) ;
4812N/ACOMPONENT_POST_INSTALL_ACTION += \
4812N/A (cd $(PROTO_DIR)/usr/bin; $(MV) symilar symilar-$(PYTHON_VERSION)) ;
4812N/A
5680N/ACOMPONENT_POST_INSTALL_ACTION += \
6936N/A $(PYTHON) -m py_compile $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION)/vendor-packages/pylint/testutils.py
4812N/A
7082N/ACOMPONENT_TEST_ENV = PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
4812N/A
7082N/ACOMPONENT_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION)
6936N/ACOMPONENT_TEST_ARGS =
4812N/A
4812N/A# The test output contains details from each test, in whatever order they
6936N/A# complete. Use nawk to extract just the sections that summarizes the test
6936N/A# result.
4812N/ACOMPONENT_TEST_TRANSFORMER = $(NAWK)
4812N/ACOMPONENT_TEST_TRANSFORMS = "'/Ran (.+) test cases/{ sub(/in(.+)\)/, \"\"); print }/All (.+) modules OK/'"
4812N/A
5105N/ACOMPONENT_SYSTEM_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION)
5105N/ACOMPONENT_SYSTEM_TEST_ARGS =