Obsolete VTE pre-2.91 ABI
[oi-userland.git] / components / python / scour / Makefile
blobc68e81f55f73e2a2317fbaa1612006991f2c568b
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
5 # 1.0 of the CDDL.
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 2024 Geoff Weiss
16 BUILD_STYLE=setup.py
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= scour
20 COMPONENT_VERSION= 0.38.2
21 COMPONENT_FMRI= library/python/scour
22 COMPONENT_CLASSIFICATION=Development/Python
23 COMPONENT_SUMMARY= An SVG optimizer/cleaner written in Python that reduces the size of scalable vector graphics by optimizing structure and removing unnecessary data.
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_HASH= \
27 sha256:6881ec26660c130c5ecd996ac6f6b03939dd574198f50773f2508b81a68e0daf
28 COMPONENT_ARCHIVE_URL= $(call pypi_url)
29 COMPONENT_PROJECT_URL= https://pypi.org/project/scour/
30 COMPONENT_LICENSE= APACHE
31 COMPONENT_LICENSE_FILE= scour.license
33 # gmake test fails. Source archive from pypi does not have the test_scour.py file
34 TEST_TARGET= $(NO_TESTS)
36 include $(WS_MAKE_RULES)/common.mk
38 # tox.ini not included with archive from pypi. Manaully add a copy found on scour github.
39 COMPONENT_PRE_INSTALL_ACTION += cp $(COMPONENT_DIR)/files/tox.ini $(COMPONENT_DIR)/build/amd64-$(PYTHON_VERSION)/tox.ini ;
41 # Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
42 COMPONENT_POST_INSTALL_ACTION += \
43 for file in $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION)/vendor-packages/scour/*.py ; do \
44 $(GSED) -i 's/env\ python/python$(PYTHON_VERSION)/' $$file ; \
45 done ;
47 # Auto-generated dependencies
48 PYTHON_REQUIRED_PACKAGES += library/python/importlib-metadata
49 PYTHON_REQUIRED_PACKAGES += library/python/six
50 PYTHON_REQUIRED_PACKAGES += runtime/python
51 TEST_REQUIRED_PACKAGES.python += library/python/coverage
52 TEST_REQUIRED_PACKAGES.python += library/python/six