Makefile revision 1874
106N/A#
106N/A# CDDL HEADER START
106N/A#
106N/A# The contents of this file are subject to the terms of the
106N/A# Common Development and Distribution License (the "License").
106N/A# You may not use this file except in compliance with the License.
106N/A#
106N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
106N/A# or http://www.opensolaris.org/os/licensing.
106N/A# See the License for the specific language governing permissions
106N/A# and limitations under the License.
106N/A#
106N/A# When distributing Covered Code, include this CDDL HEADER in each
106N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
106N/A# If applicable, add the following below this CDDL HEADER, with the
106N/A# fields enclosed by brackets "[]" replaced with your own identifying
106N/A# information: Portions Copyright [yyyy] [name of copyright owner]
106N/A#
106N/A# CDDL HEADER END
106N/A#
106N/A
106N/A#
1874N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
106N/A#
106N/A
106N/Ainclude ../../make-rules/shared-macros.mk
106N/A
106N/ACOMPONENT_NAME= logilab-common
1247N/ACOMPONENT_VERSION= 0.58.2
618N/ACOMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-common/
106N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
106N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
1247N/A sha256:c92db7d6bbac880969a439027a8239827a02a90815dbfba6bd4c031d85f4cd61
1247N/ACOMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/common/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= python-mod/logilab-common
106N/A
106N/Ainclude ../../make-rules/prep.mk
106N/Ainclude ../../make-rules/ips.mk
106N/Ainclude ../../make-rules/setup.py.mk
106N/A
1247N/A# rename pytest to its versioned name; mediated links (depending on
1247N/A# the python version) in the manifest will create the link from pytest
1247N/A# to the correct pytest-${PYTHON_VERSION}
1874N/A# compile all of the python .py files in the proto area since setup.py doesn't
1874N/A# seem to be doing it for this component.
1247N/ACOMPONENT_POST_INSTALL_ACTION = \
1874N/A (cd $(PROTO_DIR)/usr/bin ; $(MV) -f pytest pytest-$(PYTHON_VERSION)) ; \
1874N/A ($(PYTHON) -m compileall $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES))
1247N/A
1247N/A
106N/A# common targets
106N/A
1874N/Abuild: $(BUILD_NO_ARCH)
106N/A
1874N/Ainstall: $(INSTALL_NO_ARCH)
727N/A
1247N/A# The tests are run using python 2.7 only and require that the
1247N/A# python-27 package is installed (does not have to be the default python).
1247N/A# Testing using python-26 is done manually, since it requires
1247N/A# downloading and installing the unittest2 component (not part of Solaris).
1247N/A# which provides python 2.7 functionality to the unittest python library
1247N/A# in the python2.6 package.
1247N/A
1247N/A# Use the python 2.7 libraries (via PYTHONPATH setting) for testing.
1247N/Atest: PYTHON_VERSION=2.7
1247N/A
1247N/ACOMPONENT_TEST_CMD = $(PROTOUSRBINDIR)/pytest-2.7
1247N/ACOMPONENT_TEST_ARGS =
106N/A
106N/A# Expected failures for test target:
1247N/A# 413 test cases, 1 error, 1 failures, 22 skipped
1247N/A# 21 modules OK (2 failed)
1247N/A# failures: unittest_shellutils [1/23], unittest_date [1/45]
247N/A
1874N/Atest: $(TEST_NO_ARCH)
106N/A
106N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
106N/A
106N/Ainclude ../../make-rules/depend.mk