components/python/ipython/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 09 Jun 2014 10:38:56 -0700
changeset 1941 f0078a0c258e
parent 1907 446472de62e9
child 1948 2d1537e7942d
permissions -rw-r--r--
Close of build 50.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1104
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
1907
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    23
# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
1104
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		ipython
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	0.10
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://ipython.org/
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
    sha256:60d602637dc5f078b083a4ca5ab64364ba816bd72439844012ed11a30f88228c
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://archive.ipython.org/release/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	python-mod/ipython
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
1907
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    38
# Syntax issues: not Python 3 ready.
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    39
PYTHON_VERSIONS = 2.7 2.6
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    40
1104
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
include $(WS_TOP)/make-rules/prep.mk
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
include $(WS_TOP)/make-rules/setup.py.mk
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
include $(WS_TOP)/make-rules/ips.mk
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
COMPONENT_PRE_BUILD_ACTION = \
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
	/usr/bin/find $(SOURCE_DIR) -name *.py \
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
		-exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ;
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
# Unpack the ipython man pages.
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
COMPONENT_POST_UNPACK_ACTION = \
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
	(cd $(SOURCE_DIR)/docs/man; /usr/bin/gunzip * )
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1104
diff changeset
    54
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1104
diff changeset
    55
1104
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
# common targets
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
build:          $(BUILD_32)
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
install:        $(INSTALL_32)
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
test:           $(NO_TESTS)
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
include $(WS_TOP)/make-rules/depend.mk