2720N/A#
2720N/A# CDDL HEADER START
2720N/A#
2720N/A# The contents of this file are subject to the terms of the
2720N/A# Common Development and Distribution License (the "License").
2720N/A# You may not use this file except in compliance with the License.
2720N/A#
2720N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2720N/A# or http://www.opensolaris.org/os/licensing.
2720N/A# See the License for the specific language governing permissions
2720N/A# and limitations under the License.
2720N/A#
2720N/A# When distributing Covered Code, include this CDDL HEADER in each
2720N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2720N/A# If applicable, add the following below this CDDL HEADER, with the
2720N/A# fields enclosed by brackets "[]" replaced with your own identifying
2720N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2720N/A#
2720N/A# CDDL HEADER END
2720N/A#
2720N/A
2720N/A#
6845N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
2720N/A#
2720N/A
2720N/Ainclude ../../../make-rules/shared-macros.mk
2720N/A
2720N/ACOMPONENT_NAME= xattr
6845N/ACOMPONENT_VERSION= 0.8.0
2720N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2720N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2720N/ACOMPONENT_ARCHIVE_HASH= \
6845N/A sha256:71d08712f78ed543215e4145779a336e42acb4003b97e16d493a680cf08f1d01
2720N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
2720N/ACOMPONENT_PROJECT_URL= http://github.com/xattr/xattr
2720N/ACOMPONENT_BUGDB= python-mod/xattr
2720N/A
6845N/ATPNO= 30241
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
2720N/A
2720N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2720N/A
4892N/ACFFI = $(WS_COMPONENTS)/python/cffi/build/prototype/$(MACH)/$(PYTHON_LIB)
4892N/A
6845N/ACOMPONENT_BUILD_ENV += PYTHONPATH=$(CFFI)
4892N/ACOMPONENT_INSTALL_ENV += PYTHONPATH=$(CFFI):$(PROTO_DIR)/$(PYTHON_LIB)
4892N/ACOMPONENT_TEST_ENV += PYTHONPATH=$(CFFI):$(PROTO_DIR)/$(PYTHON_LIB)
2720N/A# The test suite wants to use some unicode filenames, which don't work in the C
2720N/A# locale.
4892N/ACOMPONENT_TEST_ENV += LC_ALL=en_US.UTF-8
2720N/ACOMPONENT_TEST_DIR = $(@D)/tests
2720N/ACOMPONENT_TEST_CMD = $(PYTHON) setup.py
2720N/ACOMPONENT_TEST_ARGS = test
2720N/A
2720N/ACOMPONENT_POST_INSTALL_ACTION += \
6845N/A (cd $(PROTO_DIR)/usr/bin; $(MV) xattr xattr-$(PYTHON_VERSION))
2720N/A
2720N/A# Tests run under setuptools work very hard to run in the source directory
2720N/A# itself, and will thus blow up with an VerificationError (wrong ELF class)
2720N/A# when running 64-bit tests after 32-bit or vice-versa. So copy the source off
2720N/A# to a target-specific directory and run the tests. Note that this will also
2720N/A# rebuild the package, since it doesn't want to use what it should already be
2720N/A# finding in PYTHONPATH.
2720N/ACOMPONENT_PRE_TEST_ACTION = $(CP) -r $(SOURCE_DIR) $(@D)/tests
2720N/A
2720N/A# common targets
2720N/Abuild: $(BUILD_32_and_64)
2720N/A
2720N/Ainstall: $(INSTALL_32_and_64)
2720N/A
2720N/Atest: $(TEST_32_and_64)
2720N/A
6845N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4337N/A
3817N/AREQUIRED_PACKAGES += library/python/setuptools-27
3817N/AREQUIRED_PACKAGES += library/python/setuptools-34
4910N/AREQUIRED_PACKAGES += library/python/setuptools-35
4424N/AREQUIRED_PACKAGES += library/python/cffi-27
4424N/AREQUIRED_PACKAGES += library/python/cffi-34
4910N/AREQUIRED_PACKAGES += library/python/cffi-35
3817N/AREQUIRED_PACKAGES += system/library