diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-12-28 00:49:43 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-01-12 14:47:42 +0100 |
commit | b0411a799ccdaa1242b68b69c33659cc8a6df7d7 (patch) | |
tree | aa6d02f74cd39f2d9017e70969bd8e7301505733 /rules/python3-gi.make | |
parent | cb21bbd4b351fe5cf5b47c8fc9d34d2f67903621 (diff) | |
download | ptxdist-b0411a799ccdaa1242b68b69c33659cc8a6df7d7.tar.gz ptxdist-b0411a799ccdaa1242b68b69c33659cc8a6df7d7.tar.xz |
python3-gi: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/python3-gi.make')
-rw-r--r-- | rules/python3-gi.make | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/rules/python3-gi.make b/rules/python3-gi.make new file mode 100644 index 000000000..5881c47ac --- /dev/null +++ b/rules/python3-gi.make @@ -0,0 +1,76 @@ +# -*-makefile-*- +# +# Copyright (C) 2015 by Michael Olbrich <m.olbrich@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_PYTHON3_GI) += python3-gi + +# +# Paths and names +# +PYTHON3_GI_VERSION := 3.18.2 +PYTHON3_GI_MD5 := 0a956f3e785e23b0f136832f2e57a862 +PYTHON3_GI := pygobject-$(PYTHON3_GI_VERSION) +PYTHON3_GI_SUFFIX := tar.xz +PYTHON3_GI_URL := http://ftp.gnome.org/pub/GNOME/sources/pygobject/$(basename $(PYTHON3_GI_VERSION))/$(PYTHON3_GI).$(PYTHON3_GI_SUFFIX) +PYTHON3_GI_SOURCE := $(SRCDIR)/$(PYTHON3_GI).$(PYTHON3_GI_SUFFIX) +PYTHON3_GI_DIR := $(BUILDDIR)/$(PYTHON3_GI) +PYTHON3_GI_LICENSE := LGPL-2.1+ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +PYTHON3_GI_CONF_TOOL := autoconf +PYTHON3_GI_CONF_OPT = \ + $(CROSS_AUTOCONF_USR) \ + --disable-cairo \ + --disable-iso-c \ + --disable-code-coverage \ + --with-python=$(CROSS_PYTHON3) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/python3-gi.install: + @$(call targetinfo) + @$(call world/install, PYTHON3_GI) + @$(call world/env, PYTHON3_GI) ptxd_make_world_install_python_cleanup + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/python3-gi.targetinstall: + @$(call targetinfo) + + @$(call install_init, python3-gi) + @$(call install_fixup, python3-gi,PRIORITY,optional) + @$(call install_fixup, python3-gi,SECTION,base) + @$(call install_fixup, python3-gi,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup, python3-gi,DESCRIPTION,missing) + + @for file in `find $(PYTHON3_GI_PKGDIR)/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/gi \ + ! -type d ! -name "*.py" -printf "%P\n"`; do \ + $(call install_copy, python3-gi, 0, 0, 0644, -, \ + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/gi/$$file); \ + done + + @$(call install_finish, python3-gi) + + @$(call touch) + +# vim: syntax=make |