Andrzej Szeszo
2013-06-04 453bf5a3004107204e1858532a38b3e703e32995
commit | author | age
06201d 1 #
AC 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
ad2fa3 23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
06201d 24 #
AC 25
26 include ../../make-rules/shared-macros.mk
27
28 COMPONENT_NAME=        logilab-common
dd7055 29 COMPONENT_VERSION=    0.58.2
60e6e0 30 COMPONENT_PROJECT_URL=    http://www.logilab.org/project/logilab-common/
06201d 31 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
AC 32 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
35e110 33 COMPONENT_ARCHIVE_HASH=    \
dd7055 34     sha256:c92db7d6bbac880969a439027a8239827a02a90815dbfba6bd4c031d85f4cd61
AC 35 COMPONENT_ARCHIVE_URL=    http://download.logilab.org/pub/common/$(COMPONENT_ARCHIVE)
3b89c9 36 COMPONENT_BUGDB=    python-mod/logilab-common
06201d 37
AC 38 include ../../make-rules/prep.mk
39 include ../../make-rules/ips.mk
40 include ../../make-rules/setup.py.mk
dd7055 41
AC 42 # rename pytest to its versioned name; mediated links (depending on
43 # the python version) in the manifest will create the link from pytest
44 # to the correct pytest-${PYTHON_VERSION}
ad2fa3 45 # compile all of the python .py files in the proto area since setup.py doesn't
NJ 46 # seem to be doing it for this component.
dd7055 47 COMPONENT_POST_INSTALL_ACTION = \
ad2fa3 48     (cd $(PROTO_DIR)/usr/bin ; $(MV) -f pytest pytest-$(PYTHON_VERSION)) ; \
NJ 49     ($(PYTHON) -m compileall $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES))
dd7055 50
06201d 51
AC 52 # common targets
53
ad2fa3 54 build:        $(BUILD_NO_ARCH)
06201d 55
ad2fa3 56 install:    $(INSTALL_NO_ARCH)
fa74c0 57     
dd7055 58 # The tests are run using python 2.7 only and require that the
AC 59 # python-27 package is installed (does not have to be the default python). 
60 # Testing using python-26 is done manually, since it requires
61 # downloading and installing the unittest2 component (not part of Solaris).
62 # which provides python 2.7 functionality to the unittest python library
63 # in the python2.6 package.
64
65 # Use the python 2.7 libraries (via PYTHONPATH setting) for testing.
66 test: PYTHON_VERSION=2.7
67
68 COMPONENT_TEST_CMD = $(PROTOUSRBINDIR)/pytest-2.7
69 COMPONENT_TEST_ARGS =
06201d 70
AC 71 # Expected failures for test target:
dd7055 72 # 413 test cases, 1 error, 1 failures, 22 skipped
AC 73 # 21 modules OK (2 failed)
74 # failures: unittest_shellutils [1/23], unittest_date [1/45]
59c102 75
ad2fa3 76 test:    $(TEST_NO_ARCH)
06201d 77
AC 78 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
79
80 include ../../make-rules/depend.mk