libreoffice: update to 24.8.4.2
[oi-userland.git] / components / python / pygobject-27 / Makefile
blobfcee5b12de1fcebb44d5cbc3b7bb8ce3c13cee86
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 2013-2016 Alexander Pyhalov
15 include ../../../make-rules/shared-macros.mk
18 # Warnings!
20 # - This is needed for GIMP 2 only.
21 # - This must stay forever at version 2.28.x.
22 # - GIMP 2 is 64 bit only, so we build this 64 bit only too.
25 COMPONENT_NAME= pygobject
26 COMPONENT_VERSION= 2.28.7
27 COMPONENT_REVISION= 1
28 COMPONENT_PROJECT_URL= https://www.gnome.org
29 COMPONENT_SUMMARY= Python bindings for GObject
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
32 COMPONENT_ARCHIVE_HASH= sha256:bb9d25a3442ca7511385a7c01b057492095c263784ef31231ffe589d83a96a5a
33 COMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/$(COMPONENT_NAME)/2.28/$(COMPONENT_ARCHIVE)
34 COMPONENT_FMRI= library/python/$(COMPONENT_NAME)-27
35 COMPONENT_CLASSIFICATION= Development/Python
36 COMPONENT_LICENSE= LGPL-2.1-only
37 COMPONENT_LICENSE_FILE= COPYING
39 TEST_TARGET= $(NO_TESTS)
41 include $(WS_MAKE_RULES)/common.mk
43 # Python 2.7 paths
44 PYTHON = /usr/bin/amd64/python2.7
45 PYTHON_VENDOR_PACKAGES = /usr/lib/python2.7/vendor-packages
47 # Python settings for configure
48 CONFIGURE_ENV += PYTHON=$(PYTHON)
49 CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
50 CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
52 # Disable libffi support
53 CONFIGURE_OPTIONS += --without-ffi
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) $(PROTO_DIR)/usr/share/pygobject/2.0/codegen/*.py{c,o} ;
66 # Manually added dependencies
67 REQUIRED_PACKAGES += library/desktop/cairo
68 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
69 REQUIRED_PACKAGES += runtime/python-27
70 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
72 # Auto-generated dependencies
73 REQUIRED_PACKAGES += library/glib2
74 REQUIRED_PACKAGES += shell/ksh93
75 REQUIRED_PACKAGES += system/library