components/logilab-common/Makefile
author Norm Jacobs <Norm.Jacobs@Sun.COM>
Sun, 15 Feb 2015 19:02:09 -0600
changeset 3817 30b42c38bbc4
parent 1948 2d1537e7942d
child 3918 d8138667d338
permissions -rw-r--r--
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    22
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    23
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		logilab-common
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    29
COMPONENT_VERSION=	0.58.2
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.logilab.org/project/logilab-common/
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 706
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    34
	sha256:c92db7d6bbac880969a439027a8239827a02a90815dbfba6bd4c031d85f4cd61
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://download.logilab.org/pub/common/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1023
diff changeset
    36
COMPONENT_BUGDB=	python-mod/logilab-common
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1907
diff changeset
    38
TPNO=			8268
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1907
diff changeset
    39
1907
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    40
# Syntax issues: not Python 3 ready.
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    41
PYTHON_VERSIONS=	2.7 2.6
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    42
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    43
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    44
include $(WS_MAKE_RULES)/ips.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    45
include $(WS_MAKE_RULES)/setup.py.mk
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    46
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    47
# rename pytest to its versioned name; mediated links (depending on
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    48
# the python version) in the manifest will create the link from pytest
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    49
# to the correct pytest-${PYTHON_VERSION}
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    50
# compile all of the python .py files in the proto area since setup.py doesn't
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    51
# seem to be doing it for this component.
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    52
COMPONENT_POST_INSTALL_ACTION = \
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    53
	(cd $(PROTO_DIR)/usr/bin ; $(MV) -f pytest pytest-$(PYTHON_VERSION)) ; \
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    54
	($(PYTHON) -m compileall $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES))
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    55
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1310
diff changeset
    56
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    57
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    58
# common targets
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    59
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    60
build:		$(BUILD_NO_ARCH)
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    61
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    62
install:	$(INSTALL_NO_ARCH)
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 609
diff changeset
    63
	
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    64
# The tests are run using python 2.7 only and require that the
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    65
# python-27 package is installed (does not have to be the default python). 
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    66
# Testing using python-26 is done manually, since it requires
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    67
# downloading and installing the unittest2 component (not part of Solaris).
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    68
# which provides python 2.7 functionality to the unittest python library
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    69
# in the python2.6 package.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    70
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    71
# Use the python 2.7 libraries (via PYTHONPATH setting) for testing.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    72
test: PYTHON_VERSION=2.7
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    73
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    74
COMPONENT_TEST_CMD = $(PROTOUSRBINDIR)/pytest-2.7
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    75
COMPONENT_TEST_ARGS =
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    76
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    77
# Expected failures for test target:
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    78
# 413 test cases, 1 error, 1 failures, 22 skipped
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    79
# 21 modules OK (2 failed)
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    80
# failures: unittest_shellutils [1/23], unittest_date [1/45]
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents: 181
diff changeset
    81
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    82
test:	$(TEST_NO_ARCH)
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    83
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    84
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    85
REQUIRED_PACKAGES += library/python-2/pyorbit-26