components/python/ipython/Makefile
author John Beck <John.Beck@Oracle.COM>
Thu, 12 Mar 2015 07:59:21 -0700
changeset 3936 c344422ee38b
parent 3817 30b42c38bbc4
child 4339 6501cf9c29f9
permissions -rw-r--r--
20674483 change Userland Python default version from 2.6 to 2.7
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
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    23
# Copyright (c) 2013, 2015, 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
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=			9640
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.
3936
c344422ee38b 20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    41
PYTHON_VERSIONS = $(PYTHON2_VERSIONS)
1907
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)/setup.py.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)/ips.mk
1104
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
# 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
    48
COMPONENT_POST_UNPACK_ACTION = \
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
	(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
    50
3936
c344422ee38b 20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    51
# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
c344422ee38b 20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    52
COMPONENT_POST_INSTALL_ACTION = \
c344422ee38b 20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    53
	/usr/bin/find $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) -name *.py \
c344422ee38b 20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    54
		-exec $(GSED) -i -e 's|env python|python$(PYTHON_VERSION)|' "{}" \; ;
c344422ee38b 20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    55
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1104
diff changeset
    56
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
    57
1104
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
build:          $(BUILD_32)
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
install:        $(INSTALL_32)
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
test:           $(NO_TESTS)
c62d7e76bc87 15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    64
REQUIRED_PACKAGES += library/python/python-twisted-26
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    65
REQUIRED_PACKAGES += library/python/python-twisted-27
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    66
REQUIRED_PACKAGES += library/python/setuptools-26
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    67
REQUIRED_PACKAGES += library/python/setuptools-27