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