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
21 COMPONENT_PROJECT_URL
= https
://pypi.python.org
/pypi
/tornado
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
24 COMPONENT_ARCHIVE_HASH
= \
25 sha256
:99abd3aede45c93739346ee7384e710120121c3744da155d5cff1c0101702228
26 COMPONENT_ARCHIVE_URL
= https
://pypi.python.org
/packages
/source
/t
/tornado
/$(COMPONENT_ARCHIVE
)
30 include $(WS_TOP
)/make-rules
/prep.mk
31 include $(WS_TOP
)/make-rules
/setup.py.mk
32 include $(WS_TOP
)/make-rules
/ips.mk
34 COMPONENT_POST_INSTALL_ACTION
= \
35 gfind
$(PROTO_DIR
)$(PYTHON_VENDOR_PACKAGES
.32) -type f \
36 -exec gawk
'/^\#!.*python/{print FILENAME}{nextfile}' {} + \
37 | xargs gsed
-i
-e
'1 s;^.*$$;\#!$(PYTHON.32);'
40 build
: $(BUILD_32_and_64
)
42 install: $(INSTALL_32_and_64
)
46 REQUIRED_PACKAGES
+= library
/python-2
/pycurl-27
47 REQUIRED_PACKAGES
+= library
/python-2
/python-mysql-27
48 REQUIRED_PACKAGES
+= runtime
/python-27
49 REQUIRED_PACKAGES
+= system
/library