components/python/ipython/Makefile
branchs11-update
changeset 3985 6cc44e5834f8
parent 3778 35735ffdda43
child 3996 20c0f21bbe1e
equal deleted inserted replaced
3984:03ec35f09e5b 3985:6cc44e5834f8
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		ipython
    28 COMPONENT_NAME=		ipython
    36 COMPONENT_BUGDB=	python-mod/ipython
    36 COMPONENT_BUGDB=	python-mod/ipython
    37 
    37 
    38 TPNO=			9640
    38 TPNO=			9640
    39 
    39 
    40 # Syntax issues: not Python 3 ready.
    40 # Syntax issues: not Python 3 ready.
    41 PYTHON_VERSIONS = 2.7 2.6
    41 PYTHON_VERSIONS = $(PYTHON2_VERSIONS)
    42 
    42 
    43 include $(WS_TOP)/make-rules/prep.mk
    43 include $(WS_TOP)/make-rules/prep.mk
    44 include $(WS_TOP)/make-rules/setup.py.mk
    44 include $(WS_TOP)/make-rules/setup.py.mk
    45 include $(WS_TOP)/make-rules/ips.mk
    45 include $(WS_TOP)/make-rules/ips.mk
    46 
    46 
    47 # Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
       
    48 COMPONENT_PRE_BUILD_ACTION = \
       
    49 	/usr/bin/find $(SOURCE_DIR) -name *.py \
       
    50 		-exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ;
       
    51 
       
    52 # Unpack the ipython man pages.
    47 # Unpack the ipython man pages.
    53 COMPONENT_POST_UNPACK_ACTION = \
    48 COMPONENT_POST_UNPACK_ACTION = \
    54 	(cd $(SOURCE_DIR)/docs/man; /usr/bin/gunzip * )
    49 	(cd $(SOURCE_DIR)/docs/man; /usr/bin/gunzip * )
    55 
    50 
    56 # common targets
    51 # Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
       
    52 COMPONENT_POST_INSTALL_ACTION = \
       
    53 	/usr/bin/find $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) -name *.py \
       
    54 		-exec $(GSED) -i -e 's|env python|python$(PYTHON_VERSION)|' "{}" \; ;
       
    55 
    57 build:          $(BUILD_32)
    56 build:          $(BUILD_32)
    58 
    57 
    59 install:        $(INSTALL_32)
    58 install:        $(INSTALL_32)
    60 
    59 
    61 test:           $(NO_TESTS)
    60 test:           $(NO_TESTS)