python/coverage: update to 7.6.5
[oi-userland.git] / components / python / pygtk2 / Makefile
blob13dec15d3b31038e9e197c4c3b61619e10b473b1
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2013 Alexander Pyhalov
15 include ../../../make-rules/shared-macros.mk
18 # Warnings!
20 # - This is needed for GIMP 2 only.
21 # - GIMP 2 is 64 bit only, so we build this 64 bit only too.
24 COMPONENT_NAME= pygtk2
25 COMPONENT_VERSION= 2.24.0
26 COMPONENT_REVISION= 1
27 COMPONENT_PROJECT_URL= https://www.gnome.org
28 COMPONENT_SUMMARY= Python bindings for GTK+
29 COMPONENT_SRC= pygtk-$(COMPONENT_VERSION)
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
31 COMPONENT_ARCHIVE_HASH= sha256:cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912
32 COMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/pygtk/2.24/$(COMPONENT_ARCHIVE)
33 COMPONENT_FMRI= library/python/pygtk2-27
34 COMPONENT_CLASSIFICATION= Development/Python
35 COMPONENT_LICENSE= LGPL-2.1-only
36 COMPONENT_LICENSE_FILE= COPYING
38 TEST_TARGET= $(NO_TESTS)
40 # We build for Python 2.7 so the version cannot be in
41 # PYTHON_VERSIONS_OBSOLETING.
42 PYTHON_VERSIONS_OBSOLETING := $(filter-out 2.7, $(PYTHON_VERSIONS_OBSOLETING))
44 include $(WS_MAKE_RULES)/common.mk
46 # Python 2.7 paths
47 PYTHON = /usr/bin/amd64/python2.7
48 PYTHON_VENDOR_PACKAGES = /usr/lib/python2.7/vendor-packages
50 # Python settings for configure
51 CONFIGURE_ENV += PYTHON=$(PYTHON)
52 CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
53 CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
55 # Move 64 bit libraries to their proper location
56 COMPONENT_POST_INSTALL_ACTION += \
57 for f in $$($(FIND) $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES) -name '*.so') ; do \
58 $(MKDIR) $$(dirname $$f)/64 ; \
59 $(MV) $$f $$(dirname $$f)/64/$$(basename $$f) ; \
60 done ;
62 # Drop compiled files
63 COMPONENT_POST_INSTALL_ACTION += \
64 $(RM) $(PROTOUSRLIBDIR.$(BITS))/pygtk/2.0/demos/*.py{c,o} ; \
65 $(RM) $(PROTOUSRLIBDIR.$(BITS))/pygtk/2.0/*.py{c,o} ;
67 # Build dependencies
68 REQUIRED_PACKAGES += library/python/pygobject-27
70 # Auto-generated dependencies
71 REQUIRED_PACKAGES += library/desktop/atk
72 REQUIRED_PACKAGES += library/desktop/cairo
73 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
74 REQUIRED_PACKAGES += library/desktop/gtk2
75 REQUIRED_PACKAGES += library/desktop/libglade
76 REQUIRED_PACKAGES += library/desktop/pango
77 REQUIRED_PACKAGES += library/glib2
78 REQUIRED_PACKAGES += runtime/python-27
79 REQUIRED_PACKAGES += shell/ksh93
80 REQUIRED_PACKAGES += system/library