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) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 include ../../../make-rules/shared-macros.mk |
23 include ../../../make-rules/shared-macros.mk |
24 |
24 |
25 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin |
25 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin |
26 |
26 |
27 COMPONENT_NAME= CherryPy |
27 COMPONENT_NAME= CherryPy |
28 COMPONENT_VERSION= 3.1.2 |
28 COMPONENT_VERSION= 5.1.0 |
29 COMPONENT_PROJECT_URL= http://www.cherrypy.org/ |
29 COMPONENT_PROJECT_URL= http://www.cherrypy.org/ |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
32 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
33 sha256:0dfd65507b047d54c09849e7a4b8bdd3616fa8776a5dbff7697cbf6ea1559bf6 |
33 sha256:5fccc9ad3bf9a1df83bbb934772f34f42571421bdd75f90f74c170b6c0ef13b1 |
34 COMPONENT_ARCHIVE_URL= http://download.cherrypy.org/cherrypy/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
34 COMPONENT_ARCHIVE_URL= http://download.cherrypy.org/cherrypy/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
35 COMPONENT_BUGDB= python-mod/cherrypy |
35 COMPONENT_BUGDB= python-mod/cherrypy |
36 |
36 |
37 TPNO= 5881 |
37 TPNO= 27797 |
38 |
38 |
39 PATCH_LEVEL=0 |
39 PATCH_LEVEL=0 |
40 |
|
41 # This module is not Python 3 ready: syntax issues. |
|
42 PYTHON_VERSIONS = 2.7 2.6 |
|
43 |
40 |
44 include $(WS_MAKE_RULES)/prep.mk |
41 include $(WS_MAKE_RULES)/prep.mk |
45 include $(WS_MAKE_RULES)/setup.py.mk |
42 include $(WS_MAKE_RULES)/setup.py.mk |
46 include $(WS_MAKE_RULES)/ips.mk |
43 include $(WS_MAKE_RULES)/ips.mk |
47 |
44 |
48 COMPONENT_POST_INSTALL_ACTION = \ |
45 COMPONENT_POST_INSTALL_ACTION = \ |
49 (cd $(PROTO_DIR)/usr/bin ; $(MV) cherryd cherryd$(PYTHON_VERSION)) |
46 (cd $(PROTO_DIR)/usr/bin ; $(MV) cherryd cherryd$(PYTHON_VERSION)) |
50 |
47 |
|
48 COMPONENT_TEST_DIR = $(SOURCE_DIR)/cherrypy/test |
|
49 COMPONENT_TEST_CMD = nosetests -s ./ |
|
50 COMPONENT_TEST_ARGS = |
|
51 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
|
52 |
|
53 COMPONENT_TEST_TRANSFORMS += \ |
|
54 '-e "/^cherrypy./d" ' \ |
|
55 '-e "s|\(^Ran [0-9]\+ tests in\).*|\1|" ' |
|
56 |
51 # common targets |
57 # common targets |
52 build: $(BUILD_NO_ARCH) |
58 build: $(BUILD_NO_ARCH) |
53 |
59 |
54 install: $(INSTALL_NO_ARCH) |
60 install: $(INSTALL_NO_ARCH) |
55 |
61 |
56 test: $(NO_TESTS) |
62 # test are not clean, so not appropriate to run at top level |
|
63 $(SKIP_TEST_AT_TOP_LEVEL) |
57 |
64 |
|
65 test: $(TEST_NO_ARCH) |
|
66 |
|
67 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
58 |
68 |
59 REQUIRED_PACKAGES += system/core-os |
69 REQUIRED_PACKAGES += system/core-os |