2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2013 Alexander Pyhalov. All rights reserved.
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= unittest2
19 COMPONENT_VERSION
= 0.5.1
21 COMPONENT_SUMMARY
= unittest2 is a backport of the new features added to the unittest testing framework in Python
2.7
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
24 COMPONENT_ARCHIVE_HASH
= \
25 sha256
:aa5de8cdf654d843379c97bd1ee240e86356d3355a97b147a6f3f4d149247a71
26 COMPONENT_ARCHIVE_URL
= \
27 https
://pypi.python.org
/packages
/source
/u
/unittest2
/$(COMPONENT_ARCHIVE
)#md5=a0af5cac92bbbfa0c3b0e99571390e0f
28 COMPONENT_PROJECT_URL
= https
://pypi.python.org
/pypi
/unittest2
32 include $(WS_TOP
)/make-rules
/prep.mk
33 include $(WS_TOP
)/make-rules
/setup.py.mk
34 include $(WS_TOP
)/make-rules
/ips.mk
38 install: $(INSTALL_32
)
40 COMPONENT_POST_INSTALL_ACTION
= \
41 (cd
$(PROTO_DIR
)/usr
/bin
; for i in unit2
; do
$(MV
) $$i $$i-$(PYTHON_VERSION
); done
)
43 REQUIRED_PACKAGES
+= library
/python
/setuptools-27
44 REQUIRED_PACKAGES
+= runtime
/python-27