2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2014 Alexander Pyhalov. All rights reserved.
15 include ..
/..
/..
/make-rules
/shared-macros.mk
17 PATH
=/usr
/bin
:/usr
/gnu
/bin
:/usr
/sbin
19 COMPONENT_NAME
= tornado
20 COMPONENT_VERSION
= 4.1
22 COMPONENT_PROJECT_URL
= https
://pypi.python.org
/pypi
/tornado
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
25 COMPONENT_ARCHIVE_HASH
= \
26 sha256
:99abd3aede45c93739346ee7384e710120121c3744da155d5cff1c0101702228
27 COMPONENT_ARCHIVE_URL
= https
://pypi.python.org
/packages
/source
/t
/tornado
/$(COMPONENT_ARCHIVE
)
31 include $(WS_TOP
)/make-rules
/prep.mk
32 include $(WS_TOP
)/make-rules
/setup.py.mk
33 include $(WS_TOP
)/make-rules
/ips.mk
35 COMPONENT_POST_INSTALL_ACTION
= \
36 gfind
$(PROTO_DIR
)$(PYTHON_VENDOR_PACKAGES
.32) -type f \
37 -exec gawk
'/^\#!.*python/{print FILENAME}{nextfile}' {} + \
38 | xargs gsed
-i
-e
'1 s;^.*$$;\#!$(PYTHON.32);'
41 build
: $(BUILD_32_and_64
)
43 install: $(INSTALL_32_and_64
)
47 REQUIRED_PACKAGES
+= library
/python
/backports.ssl_match_hostname-27
48 REQUIRED_PACKAGES
+= library
/python
/certifi-27
49 REQUIRED_PACKAGES
+= library
/python
/pycurl-27
50 REQUIRED_PACKAGES
+= library
/python
/python-mysql-27
51 REQUIRED_PACKAGES
+= runtime
/python-27
52 REQUIRED_PACKAGES
+= system
/library