6762N/A#
6762N/A# CDDL HEADER START
6762N/A#
6762N/A# The contents of this file are subject to the terms of the
6762N/A# Common Development and Distribution License (the "License").
6762N/A# You may not use this file except in compliance with the License.
6762N/A#
6762N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6762N/A# or http://www.opensolaris.org/os/licensing.
6762N/A# See the License for the specific language governing permissions
6762N/A# and limitations under the License.
6762N/A#
6762N/A# When distributing Covered Code, include this CDDL HEADER in each
6762N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6762N/A# If applicable, add the following below this CDDL HEADER, with the
6762N/A# fields enclosed by brackets "[]" replaced with your own identifying
6762N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6762N/A#
6762N/A# CDDL HEADER END
6762N/A#
6762N/A
6762N/A#
6762N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6762N/A#
6762N/A
6762N/Ainclude ../../../make-rules/shared-macros.mk
6762N/A
6762N/ACOMPONENT_NAME= pysmi
6762N/ACOMPONENT_VERSION= 0.0.7
6762N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6762N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6762N/ACOMPONENT_ARCHIVE_HASH= \
6762N/A sha256:999f6db9e16f4cc2804263d825553dbdd188c4313ca5c1244eeb20a3c4a60116
6762N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
6762N/ACOMPONENT_PROJECT_URL= http://pysmi.sf.net
6762N/ACOMPONENT_BUGDB= python-mod/pysmi
6762N/A
6762N/ATPNO= 29887
6762N/A
6762N/Ainclude $(WS_MAKE_RULES)/prep.mk
6762N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
6762N/Ainclude $(WS_MAKE_RULES)/ips.mk
6762N/A
6762N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
6762N/A
6762N/A# Allow pkg to create the mediated link.
6762N/ACOMPONENT_POST_INSTALL_ACTION = \
6762N/A (cd $(PROTO_DIR)/usr/bin; $(MV) mibdump.py mibdump.py-$(PYTHON_VERSION))
6762N/A
6762N/A# common targets
6762N/Abuild: $(BUILD_NO_ARCH)
6762N/A
6762N/Ainstall: $(INSTALL_NO_ARCH)
6762N/A
6762N/A# Run the tests in the build directory so as not to touch the source directory.
6762N/A# Because they're not copied over during the build, we do that now. There are
6762N/A# four test failures due simply to the tests being incompatible with Python 3,
6762N/A# and four other failures that show up in Python 2 as well.
6762N/ACOMPONENT_PRE_TEST_ACTION = \
6762N/A $(CP) -r $(COMPONENT_SRC)/tests $(@D)
6762N/ACOMPONENT_TEST_DIR = $(@D)
6762N/ACOMPONENT_TEST_CMD = py.test-$(PYTHON_VERSION)
6762N/ACOMPONENT_TEST_ARGS = --result-log=$(COMPONENT_TEST_OUTPUT)
6762N/ACOMPONENT_TEST_MASTER = \
6762N/A $(COMPONENT_TEST_RESULTS_DIR)/results-py$(basename $(PYTHON_VERSION)).master
6762N/A
6762N/Atest: $(TEST_NO_ARCH)
6762N/A
6762N/Asystem-test: $(NO_TESTS)