components/python/netaddr/Makefile
branchs11u2-sru
changeset 4156 4b1def16fe9b
parent 2704 96a400628f41
equal deleted inserted replaced
4146:097063f324c0 4156:4b1def16fe9b
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
    21 
    22 #
    22 #
       
    23 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
    23 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    24 
    27 
    25 COMPONENT_NAME=		netaddr
    28 COMPONENT_NAME=		netaddr
    26 COMPONENT_VERSION=	0.7.10
    29 COMPONENT_VERSION=	0.7.13
    27 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    28 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    29 COMPONENT_ARCHIVE_HASH=	\
    32 COMPONENT_ARCHIVE_HASH=	\
    30     sha256:9b79763141a855079b0589717696a4ccb5c56c0b807b6e584bfe12333399e0b7
    33     sha256:ca42c260b49e5fd74ba9104efa6a4fca6b55316ca42714d20d2b9b8e751e0412
    31 COMPONENT_PROJECT_URL=  http://github.com/drkjam/netaddr/
    34 COMPONENT_ARCHIVE_URL=	$(call pypi_url)
    32 COMPONENT_ARCHIVE_URL=	http://github.com/downloads/drkjam/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    35 COMPONENT_PROJECT_URL=	http://github.com/drkjam/netaddr/
    33 COMPONENT_BUGDB=	python-mod/netaddr
    36 COMPONENT_BUGDB=	python-mod/netaddr
    34 
    37 
    35 include $(WS_TOP)/make-rules/prep.mk
    38 TPNO=			21724
    36 include $(WS_TOP)/make-rules/setup.py.mk
    39 
    37 include $(WS_TOP)/make-rules/ips.mk
    40 include $(WS_MAKE_RULES)/prep.mk
       
    41 include $(WS_MAKE_RULES)/setup.py.mk
       
    42 include $(WS_MAKE_RULES)/ips.mk
    38 
    43 
    39 COMPONENT_POST_INSTALL_ACTION = \
    44 COMPONENT_POST_INSTALL_ACTION = \
    40 	(cd $(PROTOUSRBINDIR) ; $(MV) netaddr netaddr-$(PYTHON_VERSION))
    45 	(cd $(PROTO_DIR)/usr/bin ; $(MV) netaddr netaddr-$(PYTHON_VERSION))
       
    46 
       
    47 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    41 
    48 
    42 # common targets
    49 # common targets
    43 build:		$(BUILD_NO_ARCH)
    50 build:		$(BUILD_NO_ARCH)
    44 
    51 
    45 install:	$(INSTALL_NO_ARCH)
    52 install:	$(INSTALL_NO_ARCH)
    46 
    53 
    47 COMPONENT_TEST_DIR=	$(@D)/lib/netaddr
    54 COMPONENT_TEST_DIR=	$(@D)/lib/netaddr
    48 COMPONENT_TEST_ARGS=	tests/__init__.py
    55 COMPONENT_TEST_ARGS=	tests/__init__.py
    49 COMPONENT_PRE_TEST_ACTION= \
    56 COMPONENT_PRE_TEST_ACTION= \
    50 	( cd $(COMPONENT_TEST_DIR)/tests ; \
    57 	(cd $(COMPONENT_TEST_DIR)/tests ; \
    51 	  ln -s $(SOURCE_DIR)/netaddr/tests/2.x ; \
    58 	 ln -s $(SOURCE_DIR)/netaddr/tests/2.x ; \
    52 	  ln -s $(SOURCE_DIR)/netaddr/tests/3.x )
    59 	 ln -s $(SOURCE_DIR)/netaddr/tests/3.x )
    53 
    60 
    54 test:		$(TEST_NO_ARCH)
    61 test:		$(TEST_NO_ARCH)
    55 
    62 
    56 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    63 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    57 
    64