setup.py.mk: update pypi url
[unleashed-userland.git] / components / python / m2crypto / Makefile
blobd8b8c49773961f46ccf7b7f16c06b14b407ca29b
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= M2Crypto
29 COMPONENT_VERSION= 0.24.0
30 COMPONENT_PROJECT_URL= http://chandlerproject.org/Projects/MeTooCrypto/
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
33 COMPONENT_ARCHIVE_HASH= \
34 sha256:80a56441a1d2c0cf27e725be7554c92598b938fc8767ee2c71fdbc2fdc055ee8
35 COMPONENT_ARCHIVE_URL= http://pypi.python.org/packages/source/M/M2Crypto/$(COMPONENT_ARCHIVE)
36 COMPONENT_BUGDB= python-mod/m2crypto
38 # Syntax issues: not Python 3 ready.
39 PYTHON_VERSIONS= 2.7
41 include $(WS_MAKE_RULES)/prep.mk
42 include $(WS_MAKE_RULES)/setup.py.mk
43 include $(WS_MAKE_RULES)/ips.mk
45 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
47 COMPONENT_TEST_ARGS = setup.py test
48 COMPONENT_TEST_DIR = $(COMPONENT_SRC)
49 COMPONENT_TEST_ENV= CC=$(CC)
50 COMPONENT_TEST_ENV += PATH=/usr/bin
51 COMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
53 # common targets
54 build: $(BUILD_32_and_64)
56 install: $(INSTALL_32_and_64)
58 # tests.test_x509.X509TestCase fails with
59 # No such file or directory: 'tests/bad_date_cert.crt'
60 test: $(TEST_32_and_64)
62 REQUIRED_PACKAGES += developer/swig
63 REQUIRED_PACKAGES += system/library