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