Makefile revision 6402
2035N/A#
2035N/A# CDDL HEADER START
2035N/A#
2035N/A# The contents of this file are subject to the terms of the
2035N/A# Common Development and Distribution License (the "License").
2035N/A# You may not use this file except in compliance with the License.
2035N/A#
2035N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2035N/A# or http://www.opensolaris.org/os/licensing.
2035N/A# See the License for the specific language governing permissions
2035N/A# and limitations under the License.
2035N/A#
2035N/A# When distributing Covered Code, include this CDDL HEADER in each
2035N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2035N/A# If applicable, add the following below this CDDL HEADER, with the
2035N/A# fields enclosed by brackets "[]" replaced with your own identifying
2035N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2035N/A#
2035N/A# CDDL HEADER END
2035N/A#
2818N/A
2035N/A#
2035N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
2035N/A#
2035N/Ainclude ../../../make-rules/shared-macros.mk
2035N/A
2035N/ACOMPONENT_NAME= python-ldap
2035N/ACOMPONENT_VERSION= 2.4.10
2035N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2035N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2035N/ACOMPONENT_ARCHIVE_HASH= \
2035N/A sha256:67cc7801bf24c29386ab99966ceb68d6a60fa9e0566cc95a4fbb2c4695a8ce54
2035N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
2035N/ACOMPONENT_PROJECT_URL= http://www.python-ldap.org/
2818N/ACOMPONENT_BUGDB= python-mod/python-ldap
2818N/A
2818N/ATPNO= 14503
2035N/A
2035N/A# This module has syntax issues and thus is not Python 3 ready.
2035N/APYTHON_VERSIONS= $(PYTHON2_VERSIONS)
2035N/A
2035N/Ainclude $(WS_MAKE_RULES)/prep.mk
2035N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
2035N/Ainclude $(WS_MAKE_RULES)/ips.mk
2035N/A
2035N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2035N/A
2035N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)/Tests
2035N/ACOMPONENT_TEST_CMD = $(SHELL)
2035N/ACOMPONENT_TEST_ARGS = runtests.sh
2035N/ACOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
2035N/A# Needed to create a unique temporary directory.
2035N/ACOMPONENT_TEST_ENV += BUILD_DIR=$(BUILD_DIR)
2035N/A
2035N/A# common targets
2035N/Abuild: $(BUILD_32_and_64)
2035N/A
2035N/Ainstall: $(INSTALL_32_and_64)
2035N/A
2035N/A# Two tests are known to fail. These failures are not critical.
2035N/A#
2035N/A# One fails because it says the library does not throw a value error on a
2035N/A# bad URL. This one fails, as the bad url it is trying is an edge case:
2035N/A# ldap:///????? and not that important. The OpenLDAP library doesn't
2035N/A# have the necessary code to check for that case and error out. We (or
2035N/A# someone from the python-ldap team) would have to log an OpenLDAP bug,
2035N/A# propose a fix to the code, see it integrated, wait for a release, and
2035N/A# integrate the new release into Userland.
2035N/A#
2035N/A# The other failure is for a test case that has a comment before the test case:
2035N/A# # these two constants are pointless? XXX
2035N/A# The answer being yes. And the constants are not defined in the latest
2035N/A# version of python-ldap.
2035N/A#
2035N/Atest: $(TEST_32_and_64)
2035N/A
2035N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
2035N/A
2035N/AREQUIRED_PACKAGES += library/openldap
2035N/AREQUIRED_PACKAGES += library/python/pyasn1-27
2035N/AREQUIRED_PACKAGES += library/python/pyasn1-modules-27
2035N/AREQUIRED_PACKAGES += system/library
2035N/AREQUIRED_PACKAGES += system/network/ldap/openldap
2035N/A